#---------------------------------------------------------------
# ____                   _ _         ____  _
#|  _ \ ___  _   _  __ _| | |_ _   _/ ___|| |__   __ _ _ __ ___
#| |_) / _ \| | | |/ _` | | __| | | \___ \| '_ \ / _` | '__/ _ \
#|  _ < (_) | |_| | (_| | | |_| |_| |___) | | | | (_| | | |  __/
#|_| \_\___/ \__, |\__,_|_|\__|\__, |____/|_| |_|\__,_|_|  \___|
#            |___/             |___/
#
# Copyright (C) 2013 RoyaltyShare, Inc.   All Rights Reserved
#---------------------------------------------------------------

package RPS::Import::Omnifone::v1;

use strict;

use Date::Calc qw(Days_in_Month Decode_Month);

use lib '/app/tools/common/lib';
use Common::Assert;

use lib '/app/tools/rps/lib';
use RPS::Import::ServiceMap;

use base 'RPS::Import::Importer';

sub _fieldMap {
    {
        countryCode => 'C',
        dateBegin   => 'G',
        dateEnd     => 'H',
        formatType  => 'F',
        artistName  => 'J',
        upc         => 'L',
        albumName   => 'N',
        isrc        => 'I',
        trackName   => 'K',
        units       => 'P',
    };
}

sub _headerIdentifier { ( countryCode => 'Territory' ) }

sub currencyCode { 'USD' }
sub productType  { RPS::File::Sale::TYPE_TRACK }
sub formatType   { RPS::File::Sale::FORMAT_STREAM }
sub mediaType    { RPS::DB::Item::MediaType::kMediaTypeAudio }

###
1;    # Play nicely.
###
