# Prefix: a comment about what the prefix is for
""" Legacy phone plocking rules """

RESTRICTED_OUTBOUND_PAYING_PREFIXES = {
    "1246": "Barbados",
    "1264": "Anguilla",
    "1268": "Antigua and Barbuda",
    "12845415045": "scammer number",
    "1441": "Bermuda",
    "1473": "Grenada",
    "1649": "Turks and Caicos Islands",
    "1664": "Montserrat",
    "1684": "American Samoa",
    "17022918569": "scammer",
    "1721": "Sint Maarten",
    "1767": "Dominica",
    "211": "South Sudan",

    "216": "Tunisia",
    "218": "Libya",
    "220": "Gambia",
    "2201153726": "Scammer Test Number",
    "221": "Senegal",
    "223": "Mali",

    "225": "Cote d'Ivoire",
    "226": "Burkina Faso",
    "227": "Niger",
    "228": "Togo",

    "231": "Liberia",
    "232": "Sierra Leone",
    "235": "Chad",
    "236": "Central African Republic",
    "237": "Cameroon",
    "238": "Cape Verde",
    "241": "Gabon",

    "242": "Congo",
    "242800": "Congo toll free",
    "3704252": "lithuania",
    "3706": "Lithuania",
    "37077": "Lithuania",
    "37078": "Lithuania",
    "3709": "Lithuania",
    "3703": "Lithuania",
    "37031331": "Lithuania",
    "37031335": "Lithuania",
    "37034379": "Lithuania",
    "37037250": "Lithuania",
    "37037251": "Lithuania",
    "37037252": "Lithuania",
    "37037254": "Lithuania",
    "37037255": "Lithuania",
    "37037256": "Lithuania",
    "37037364": "Lithuania",
    "37037368": "Lithuania",
    "37037369": "Lithuania",
    "37037783": "Lithuania",
    "37038929": "Lithuania",
    "37041721": "Lithuania",
    "37066409": "Lithuania",
    "3706641": "Lithuania",
    "37066420": "Lithuania",
    "37066421": "Lithuania",
    "37066423": "Lithuania",
    "37066424": "Lithuania",
    "37066425": "Lithuania",
    "37066476": "Lithuania",
    "37066727": "Lithuania",
    "37066740": "Lithuania",
    "37066815": "Lithuania",
    "37066816": "Lithuania",
    "37066878": "Lithuania",
    "37066906000": "Lithuania",
    "37066906001": "Lithuania",
    "37066906002": "Lithuania",
    "37066906003": "Lithuania",
    "37066906004": "Lithuania",
    "37066906005": "Lithuania",
    "37066906006": "Lithuania",
    "37066906007": "Lithuania",
    "37066906008": "Lithuania",
    "37066906009": "Lithuania",
    "3706690601": "Lithuania",
    "3706690602": "Lithuania",
    "3706690603": "Lithuania",
    "3706690604": "Lithuania",
    "3706690605": "Lithuania",
    "3706690606": "Lithuania",
    "3706690607": "Lithuania",
    "3706690608": "Lithuania",
    "3706690609": "Lithuania",
    "370669061": "Lithuania",
    "370669062": "Lithuania",
    "370669063": "Lithuania",
    "370669064": "Lithuania",
    "370669065": "Lithuania",
    "370669066": "Lithuania",
    "370669067": "Lithuania",
    "370669068": "Lithuania",
    "370669069": "Lithuania",
    "37066907": "Lithuania",
    "37066908": "Lithuania",
    "37066909": "Lithuania",
    "37066910": "Lithuania",
    "370669110": "Lithuania",
    "3706691110": "Lithuania",
    "37066911110": "Lithuania",
    "37066911112": "Lithuania",
    "37066911113": "Lithuania",
    "37066911114": "Lithuania",
    "37066911115": "Lithuania",
    "37066911116": "Lithuania",
    "37066911117": "Lithuania",
    "37066911118": "Lithuania",
    "37066911119": "Lithuania",
    "3706691112": "Lithuania",
    "3706691113": "Lithuania",
    "3706691114": "Lithuania",
    "3706691115": "Lithuania",
    "3706691116": "Lithuania",
    "3706691117": "Lithuania",
    "3706691118": "Lithuania",
    "3706691119": "Lithuania",
    "370669112": "Lithuania",
    "370669113": "Lithuania",
    "370669114": "Lithuania",
    "370669115": "Lithuania",
    "370669116": "Lithuania",
    "370669117": "Lithuania",
    "370669118": "Lithuania",
    "370669119": "Lithuania",
    "37066912": "Lithuania",
    "370669130": "Lithuania",
    "3706691310": "Lithuania",
    "37066913110": "Lithuania",
    "37066913111": "Lithuania",
    "37069119": "Lithuania",
    "37069120": "Lithuania",
    "37069750": "Lithuania",
    "3707007357": "Lithuania",
    "3707007358": "Lithuania",
    "3707007359": "Lithuania",
    "370700736": "Lithuania",
    "370700737": "Lithuania",
    "370700738": "Lithuania",
    "370700739": "Lithuania",
    "37070074": "Lithuania",
    "370700750": "Lithuania",
    "370700751": "Lithuania",
    "370700752": "Lithuania",
    "370700753": "Lithuania",
    "370700754": "Lithuania",
    "370700755": "Lithuania",
    "3707007560": "Lithuania",
    "3707007561": "Lithuania",
    "3707007562": "Lithuania",
    "3707007563": "Lithuania",
    "3707007564": "Lithuania",
    "3707007565": "Lithuania",
    "37070075660": "Lithuania",
    "37070075661": "Lithuania",
    "37070075662": "Lithuania",
    "370700801": "Lithuania",
    "370700802": "Lithuania",
    "370700803": "Lithuania",
    "370700804": "Lithuania",
    "370700805": "Lithuania",
    "370700806": "Lithuania",
    "370700807": "Lithuania",
    "370700808": "Lithuania",
    "370700809": "Lithuania",
    "37070081": "Lithuania",
    "37070082": "Lithuania",
    "37070083": "Lithuania",
    "37070084": "Lithuania",
    "37070085": "Lithuania",
    "37070086": "Lithuania",
    "37070087": "Lithuania",
    "370701": "Lithuania",
    "370702": "Lithuania",
    "370703": "Lithuania",
    "370704": "Lithuania",
    "370705": "Lithuania",
    "370707": "Lithuania",
    "370708": "Lithuania",
    "370709": "Lithuania",
    "37071": "Lithuania",
    "37072": "Lithuania",
    "37073": "Lithuania",
    "37074": "Lithuania",
    "37075": "Lithuania",
    "37076": "Lithuania",
    "37079": "Lithuania",
    '371222': 'Latvia',
    '3712400': 'Latvia',
    '3712840': 'Latvia',
    '3712859': 'Latvia',
    '3712906': 'Latvia',
    '3712907': 'Latvia',
    '37168501': 'Latvia',
    '37168502': 'Latvia',
    '37168504': 'Latvia',
    '37168509': 'Latvia',
    '37168510': 'Latvia',
    '37168535': 'Latvia',
    '37178501': 'Latvia',
    '37178502': 'Latvia',
    '37178504': 'Latvia',
    '37178509': 'Latvia',
    '37178510': 'Latvia',
    '37178519': 'Latvia',
    '37178535': 'Latvia',
    '37178536': 'Latvia',
    '37178565': 'Latvia',
    '37178580': 'Latvia',
    '37178581': 'Latvia',
    '37178584': 'Latvia',
    '37178585': 'Latvia',
    '37178620': 'Latvia',
    '37178664': 'Latvia',
    '37178666': 'Latvia',
    '37178668': 'Latvia',
    '3717870': 'Latvia',
    '3717872': 'Latvia',
    '37178755': 'Latvia',
    '37178770': 'Latvia',
    '37178773': 'Latvia',
    '37178778': 'Latvia',
    '3717880': 'Latvia',
    '37178814': 'Latvia',
    '37178815': 'Latvia',
    '37178822': 'Latvia',
    '37178890': 'Latvia',
    '37178891': 'Latvia',
    '37178892': 'Latvia',
    '37178893': 'Latvia',
    '37178899': 'Latvia',
    '3717891': 'Latvia',
    '37178988': 'Latvia',
    '37178999': 'Latvia',
    '37180400': 'Latvia',
    '371810': 'Latvia',
    '3718100': 'Latvia',
    '371810346': 'Latvia',
    '371810347': 'Latvia',
    '371810348': 'Latvia',
    '371810349': 'Latvia',
    '3718110': 'Latvia',
    '37181500': 'Latvia',
    '37181501': 'Latvia',
    '37181600': 'Latvia',
    '37181601': 'Latvia',
    '37181809': 'Latvia',
    '37181821': 'Latvia',
    '37181822': 'Latvia',
    '37181910': 'Latvia',
    '37181911': 'Latvia',
    '37190208': 'Latvia',
    '37190212': 'Latvia',
    '37190215': 'Latvia',
    '3719060': 'Latvia',
    '37190701': 'Latvia',
    '37190702': 'Latvia',
    '37190703': 'Latvia',
    '37190704': 'Latvia',
    '37190705': 'Latvia',
    '37190706': 'Latvia',
    '37190707': 'Latvia',
    '37190708': 'Latvia',
    '37190709': 'Latvia',
    '37190807': 'Latvia',
    "3729008134": "scammer",
    "3729008130": "scammer",
    "3729008137": "scammer",
    "3729008058": "scammer",
    "37254149480": "scammer",
    '3725411193': 'Estonia',
    '3725411194': 'Estonia',
    '37257466': 'Estonia',
    '37257469': 'Estonia',
    '37259441982': 'Estonia',
    '37259441983': 'Estonia',
    '37259441984': 'Estonia',
    '37259441985': 'Estonia',
    '37259441986': 'Estonia',
    '37259441987': 'Estonia',
    '37259441988': 'Estonia',
    '37259441989': 'Estonia',
    '3725944199': 'Estonia',
    '3725999568': 'Estonia',
    '3725999569': 'Estonia',
    '372599957': 'Estonia',
    '3725999580': 'Estonia',
    '3725999581': 'Estonia',
    '3725999582': 'Estonia',
    '3725999583': 'Estonia',
    '3725999584': 'Estonia',
    '3725999585': 'Estonia',
    '3725999586': 'Estonia',
    '3725999587': 'Estonia',
    '3725999588': 'Estonia',
    '37281800': 'Estonia',
    '37282200': 'Estonia',
    '37270': 'Estonia',
    '37240': 'Estonia',
    '3725': 'Estonia',
    '3728': 'Estonia',
    "381": "Serbia",
    "382": "Montenegro",
    "383": "Kosovo",
    "387": "Bosnia",
    "389": "Macedonia",
    "40118932": "Romania",
    "4033751": "Romania",
    "4033851": "Romania",
    "4033951": "Romania",
    "4034951": "Romania",
    "439": "Austria Premium Rate",
    "43820": "Austria Service Number Max Tarrif",
    "504": "Honduras",
    "505": "Nicaragua",
    "508": "Saint-Pierre and Miquelon",
    "509": "Haiti",
    "53": "Cuba",
    "56322100140": "scammer",
    "56322553061": "scammer",
    "56431971940": "scammer",
    "584152177637": "scammer",
    "994501622048": "scammer",
    "996": "Kyrgyzstan",
}

# Represents *most* countries which cost > $0.3/minute
RESTRICTED_OUTBOUND_TRIAL_PREFIXES = {
    "1242": "Bahamas",
    "1246": "Barbados",
    "1264": "Anguilla",
    "1284": "British Virgin Islands",
    "1340": "US Virgin Islands",
    "1441": "Bermuda",
    "1767": "Dominica",
    "1784": "Saint Vincent and the Grenadines",
    "1809": "Dominican Republic",
    "1829": "Dominican Republic",
    "1849": "Dominican Republic",
    "20": "Egypt",
    "211": "South Sudan",

    "212": "Morocco",
    '212526': 'Morocco',
    '212527': 'Morocco',
    '212533': 'Morocco',
    '212534': 'Morocco',
    '212540': 'Morocco',
    '212546': 'Morocco',
    '212547': 'Morocco',
    '212550': 'Morocco',
    '212553': 'Morocco',
    '212600': 'Morocco',
    '212601': 'Morocco',
    '212602': 'Morocco',
    '212603': 'Morocco',
    '212604': 'Morocco',
    '212605': 'Morocco',
    '212606': 'Morocco',
    '212607': 'Morocco',
    '212608': 'Morocco',
    '212610': 'Morocco',
    '212611': 'Morocco',
    '212612': 'Morocco',
    '212613': 'Morocco',
    '212614': 'Morocco',
    '212615': 'Morocco',
    '212616': 'Morocco',
    '212617': 'Morocco',
    '212618': 'Morocco',
    '212619': 'Morocco',
    '212620': 'Morocco',
    '212621': 'Morocco',
    '212622': 'Morocco',
    '212623': 'Morocco',
    '212624': 'Morocco',
    '212625': 'Morocco',
    '212626': 'Morocco',
    '212627': 'Morocco',
    '212628': 'Morocco',
    '212629': 'Morocco',
    '212630': 'Morocco',
    '212631': 'Morocco',
    '212632': 'Morocco',
    '212633': 'Morocco',
    '212634': 'Morocco',
    '212635': 'Morocco',
    '212636': 'Morocco',
    '212637': 'Morocco',
    '212638': 'Morocco',
    '212639': 'Morocco',
    '212640': 'Morocco',
    '212641': 'Morocco',
    '212642': 'Morocco',
    '212643': 'Morocco',
    '212644': 'Morocco',
    '212645': 'Morocco',
    '212646': 'Morocco',
    '212647': 'Morocco',
    '212648': 'Morocco',
    '212649': 'Morocco',
    '212650': 'Morocco',
    '212651': 'Morocco',
    '212652': 'Morocco',
    '212653': 'Morocco',
    '212654': 'Morocco',
    '212655': 'Morocco',
    '212656': 'Morocco',
    '212657': 'Morocco',
    '212658': 'Morocco',
    '212659': 'Morocco',
    '212660': 'Morocco',
    '212661': 'Morocco',
    '212662': 'Morocco',
    '212663': 'Morocco',
    '212664': 'Morocco',
    '212665': 'Morocco',
    '212666': 'Morocco',
    '212667': 'Morocco',
    '212668': 'Morocco',
    '212669': 'Morocco',
    '212670': 'Morocco',
    '212671': 'Morocco',
    '212672': 'Morocco',
    '212673': 'Morocco',
    '212674': 'Morocco',
    '212675': 'Morocco',
    '212676': 'Morocco',
    '212677': 'Morocco',
    '212678': 'Morocco',
    '212679': 'Morocco',
    '212680': 'Morocco',
    '212681': 'Morocco',
    '2126921': 'Morocco',
    '2126922': 'Morocco',
    '212693': 'Morocco',
    '212694': 'Morocco',
    '212695': 'Morocco',
    '212696': 'Morocco',
    '212697': 'Morocco',
    '212698': 'Morocco',
    '212699': 'Morocco',
    '2128920': 'Morocco',

    "213": "Algeria",
    "216": "Tunisia",
    "218": "Libya",
    "220": "Gambia",
    "221": "Senegal",
    "222": "Mauritania",
    "223": "Mali",
    "224": "Guinea",
    "225": "Cote d'Ivoire",
    "226": "Burkina Faso",
    "227": "Niger",
    "228": "Togo",
    "230": "Mauritius",
    "231": "Liberia",
    "232": "Sierra Leone",
    "233": "Ghana",
    "235": "Chad",
    "236": "Central African Republic",
    "237": "Cameroon",
    "238": "Cape Verde",
    "241": "Gabon",
    "242": "Congo",
    "243": "Congo Democratic Republic",
    "245": "Guinea Bissau",
    "248": "Seychelles",
    "251": "Ethiopia",
    "252": "Somalia",
    "253": "Djibouti",
    "255": "Tanzania",
    "261": "Madagascar",
    "262": "Reunion",
    "263": "Zimbabwe",
    "266": "Lesotho",
    "268": "Swaziland",
    "269": "Comoros",
    "291": "Eritrea",
    "297": "Aruba",
    "298": "Faeroe Islands",
    "2995": "Greenland",
    "2994": "Greenland",
    "299": "Greenland",
    "2992": "Greenland",
    "3451820": "Spain",
    "34902": "Spain",
    "3505": "Gibraltar",
    "3506": "Gibraltar",
    "3522": "Luxembourg",
    "3529": "Luxembourg",
    "355": "Albania",
    "359": "Bulgaria",
    "3705": "Lithuania",
    "3707": "Lithuania",
    "3708": "Lithuania",
    "3719": "Latvia",
    "3718": "Latvia",
    "3727": "Estonia",
    "3728": "Estonia",
    "3725": "Estonia",
    "3739": "Moldova",
    "3737": "Moldova",
    "374": "Armenia",
    "3747": "Armenia",
    "3746": "Armenia",
    "3749": "Armenia",
    "375": "Belarus",
    "3756": "Belarus",
    "3751": "Belarus",
    "3763": "Andorra",
    "3764": "Andorra",
    "3766": "Andorra",
    "3776": "Monaco",
    "3774": "Monaco",
    "3811": "Serbia",
    "3812": "Serbia",
    "3816": "Serbia",
    "3827": "Montenegro",
    "3828": "Montenegro",
    "3826": "Montenegro",
    "386": "Slovenia",
    "387": "Bosnia and Herzegovina",
    "389": "Macedonia",
    "401": "Romania",
    "409": "Romania",
    "4238": "Liechtenstein",
    "4239": "Liechtenstein",
    "4237": "Liechtenstein",
    "4236": "Liechtenstein",
    "438": "Austria",
    "437": "Austria",
    "44843": "United Kingdom",
    "44845": "United Kingdom",
    "44870": "United Kingdom",
    "44873": "United Kingdom",
    "44872": "United Kingdom",
    "4478369": "United Kingdom",
    "4478361": "United Kingdom",
    "4478360": "United Kingdom",
    "4470": "United Kingdom",
    "44844": "United Kingdom",
    "44871": "United Kingdom",
    "478": "Norway",
    "470": "Norway",
    "471": "Norway",
    "5016": "Belize",
    "5011": "Belize",
    "504": "Honduras",
    "5041": "Honduras",
    "508": "Saint Pierre and Miquelon",
    "509": "Haiti",
    "51": "Peru",
    "53": "Cuba",
    # "56": "Chile",
    "5632210": "Chile",
    "5632255": "Chile",
    "594": "French Guiana",
    "597": "Suriname",
    "5989": "Uruguay",
    "674": "Nauru",
    "676": "Tonga",
    "678": "Vanuatu",
    "679": "Fiji",
    "680": "Palau",
    "683": "Niue",
    "685": "Samoa",
    "687": "New Caledonia",
    "688": "Tuvalu",
    "6889": "Tuvalu",
    "689": "French Polynesia",
    "690": "Tokelau",
    "691": "Micronesia",
    "692": "Marshall Islands",
    "850": "North Korea ",
    "93": "Afghanistan",
    "95": "Myanmar",
    "960": "Maldives",
    "961": "Lebanon",
    "968": "Oman",
    "9724": "Israel",
    "9728": "Israel",
    "9729": "Israel",
    "992": "Tajikistan",
    "994": "Azerbaijan",
    "996": "Kyrgyzstan",
}
