Sherlock / constants / emojis.ts
emojis.ts
Raw


/**
 * Takes params and returns the emoji for a particular incident
 * @param {string} incident string
 * @param {string} source number from 1-5
 */
export function getIncidentEmoji(incident:any, source:any, cl:boolean=false):any{
    switch(source){
        case '1':
            // console.log(incident, source)
            let class1: { [key: string]: string } = {
                "C1083":"๐Ÿ‘ซ๐Ÿ™ˆ",
                "FIRE":"๐Ÿ”ฅ",
                "HAZMAT":"โ˜ฃ๏ธ",
                "1049A":"๐Ÿบ๐Ÿš—๐Ÿš“",
                "1085B":"๐ŸŒ€๐Ÿง",
                "TESTF":"๐Ÿง‘โ€๐Ÿš’โœ…",
                "1057S": "๐Ÿซโฐ",
                "1053":"๐Ÿš˜๐Ÿƒ",
                "1053A":"๐Ÿš˜๐Ÿƒ๐Ÿค•",
                "1059": "๐Ÿคผ",
                "1090": "๐Ÿคจ๐Ÿง",
                "1089": "๐Ÿ‘",
                "1042": "๐Ÿšถโ€โ™‚๏ธ๐Ÿšซ",
                "1057A": "โฐ",
                "1085A": "๐ŸŒ€",
                "1085": "๐ŸŒ€",
                "1049": "๐Ÿบ๐Ÿš—",
                "1061": "๐Ÿ’œ",
                "1088":"๐ŸŽ…",
                "1060":"๐Ÿ’œ",
                "1060A":"๐Ÿ’œ",
                "1083A":"๐Ÿ‘ซ๐Ÿ™ˆ",
                "1057":"โฐ",
                "1088A":"๐ŸŽ…",

            };
            let class2: { [key: string]: string } = {
                "C1044":"๐Ÿš—",
                "C1041":"๐Ÿ”Ž๐Ÿง’",
                "1066": "๐Ÿข๐Ÿ’ฐ",
                "1066B": "๐Ÿข๐Ÿ’ฐ",
                "1068": "๐Ÿš—๐Ÿ‘€",
                "1094": "๐Ÿ‘Š",
                "1094A": "๐Ÿ‘Š",
                "1023": "๐Ÿƒโ€โ™‚๏ธ๐Ÿ’จ๐Ÿš“",
                "1041": "๐Ÿ”Ž๐Ÿง’",
                "1044": "๐Ÿš—",
                "1056": "๐Ÿ‘€",
                "1055": "๐Ÿ’ฐ๐Ÿƒโ€โ™‚๏ธ",
                "1055A": "๐Ÿ’ฐ๐Ÿƒโ€โ™‚๏ธโŒš",
                "1068A": "๐Ÿš—๐Ÿ‘€โŒš",
                "1044A": "๐Ÿš—โŒš",
                "1093": "๐Ÿ‘ฅ"
            };
            let class3: { [key: string]: string } = {
                "1065": 'โ›”๐Ÿ‡',
                "1063": '๐Ÿ‘ถ๐Ÿงณ',
                "1072": '๐Ÿšจ',
                "1051": '๐Ÿ’ช๐Ÿ’ฐ',
                '1067': '๐Ÿก๐Ÿšถโ€โ™‚๏ธ',
                '1067A': '๐Ÿก๐Ÿšถโ€โ™‚๏ธ',
                "1067B":'๐Ÿข๐Ÿ’ฐ',
                "1091": "๐Ÿ’€",
                "1066A": "๐Ÿข๐Ÿ’ฐโŒš",
                "1051A": "๐Ÿ’ช๐Ÿ’ฐโŒš",
            };
            let class4: { [key: string]: string } = {
                "1081": '๐Ÿ”ซ',
                "1080": '๐Ÿ”ช',
                '1052': '๐Ÿ”ช๐Ÿ’ฐ',
                "1064": '๐Ÿ‡',
                "1099": '๐Ÿ’ฃ',
                "1040": '๐Ÿ”’๐Ÿ‘ช',
                "1064A": '๐Ÿ‡โŒš',
                "1041A": '๐Ÿ”Ž๐Ÿง’๐Ÿ”',
            };
            let class5: { [key: string]: string } = {
                "1062": '๐Ÿ”ช๐Ÿ’€',
                "1079": '๐ŸŒ‹',
                "1052A": '๐Ÿ”ช๐Ÿ’ฐโŒš',
                "1081A": '๐Ÿ”ซโŒš',
                "1080A": '๐Ÿ”ชโŒš',
            };

            if(incident in class1){
                return class1[incident];
            }else if(class2.hasOwnProperty(incident)){
                return class2[incident];
            }else if(incident in class3){
                return class3[incident];
            }else if(incident in class4){
                return class4[incident];
            }else if(incident in class5){
                return class5[incident];
            }else{
                return 'โ“';
            }
        case '2':
            class1 = {
                "DISTURBANCE IN PROGRESS":"๐Ÿ”Š",
                "FORGERY/FRAUD":"๐Ÿคฅ",
                "HIT AND RUN":"๐Ÿš—๐Ÿ’จ",
                "HIT & RUN W/INJURY":"๐Ÿš—๐Ÿ’จ๐Ÿค•",
                "HIT & RUN":"๐Ÿš—๐Ÿ’จ",
                "SUSPICIOUS PERSON":"๐Ÿคจ๐Ÿงโ€โ™‚๏ธ",
                "DRUNK DRIVER":"๐Ÿบ๐Ÿš—",
                "MISSING PERSON":"๐Ÿ”Ž๐Ÿง’",
                "FORGERY & FRAUD URGENT IN PROGRESS":"๐ŸคฅโŒš",
            };
            class2 = {
                "INDECENT EXPOSURE":"๐Ÿ‘",
                "PROWLER ON PREMISES":"๐Ÿ‘€",
                "THEFT":"๐Ÿ’ฐ๐Ÿƒ",
                "ASSAULT":"๐Ÿ‘Š",
                "BURGLARY/VEHICLE":"๐Ÿš—๐Ÿ‘€",
                "DRUNK DRIVER IN PROGRESS":"๐Ÿบ๐Ÿš—โŒš",
                "STOLEN VEHICLE":"๐Ÿš—",
                "STOLEN VEHICLE IN PROGRESS":"๐Ÿš—โŒš",
                "ASSAULT WHEN MEDICAL ATTENTION REQUIRED":"๐Ÿ‘Š๐Ÿš‘",
                "BURGLARY BUSINESS":"๐Ÿข๐Ÿ’ฐ",
                "BURGLARY BUSINESS ATTEMPT ONLY":"๐Ÿข๐Ÿ’ฐ",
                "BURGLARY RESIDENCE ATTEMPTED":"๐Ÿก",
                "THEFT IN PROGRESS":"๐Ÿ’ฐ๐Ÿƒโ€โ™‚๏ธโŒš",
            }
            class3 = {
                "BURGLARY BUSINESS IN PROGRESS":"๐Ÿข๐Ÿ’ฐโŒš",
                "BURGLARY RESIDENCE":"๐Ÿก๐Ÿšถโ€โ™‚๏ธ"

            }
            class4 = {
                "BURGLARY RESIDENCE IN PROGRESS":"๐Ÿก๐Ÿšถโ€โ™‚๏ธโŒš",
                "SHOOTING SCRAPE":"๐Ÿ”ซ",
                "SHOOTING":"๐Ÿ”ซ",
                "RAPE":"๐Ÿ‡"
            }
            class5 = {
                "SHOOTING SCRAPE IN PROGRESS/SUSPECT ON SCENE":"๐Ÿ”ซโŒš", 
                "CUTTING SCRAPE IN PROGRESS/SUSPECT ON SCENE":"๐Ÿ”ชโŒš",
                "MURDER":"๐Ÿ”ช๐Ÿ’€", 
                "MURDER IN PROGRESS":"๐Ÿ”ช๐Ÿ’€โŒš", 
                "MURDER ATTEMPTED":"๐Ÿ”ช๐Ÿ’€๐Ÿšซ"
            }

            if(incident in class1){
                return class1[incident]
            }else if(incident in class2){
                return class2[incident]
            }else if(incident in class3){
                return class3[incident]
            }else if(incident in class4){
                return class4[incident]
            }else if(incident in class5){
                return class5[incident]
            }else{
                return 'โ“๐Ÿ‘ฎโ€โ™‚๏ธ'
            }
        case '3':
            return '๐ŸŽ“'
        case '4':
            return '๐Ÿถ'
        case '5':
            return '๐Ÿ‘ค'
        case '6':
            let class0: {  [key: string]: string } = {
                "Firecrackers":"๐ŸŽ†" ,
                "Flooded road": "๐ŸŒŠ๐Ÿ›ฃ๏ธ",
                "Fire event": "๐Ÿš’",
                "School bus wreck":"๐Ÿš๐ŸšŒ",
                "Fire": "๐Ÿ”ฅ",
                "Welfare check":"โœ…",
                "Wreck with property damage":"๐Ÿ ๐Ÿ› ๏ธ",
                "Doe drill":"โšก",
                "Lines down":"๐Ÿšซ๐Ÿ’ก",
                "Fire alarm":"๐Ÿ”ฅโฐ",
                "Accident on waterway":"โ›ต๐Ÿ’ฅ",
                "Lost or found property":"๐ŸŽ’",
                "Emergency medical services":"โฑ๏ธ๐Ÿฉบ",
                "Motor vehicle accident":"๐Ÿš—๐Ÿ’ฅ",
                "Noise disturbance":"๐Ÿ”‡",
                "Private pull":"๐Ÿ›ƒ",
                "Property check":"๐Ÿ ๐Ÿ”",
                "Public drunk":"๐Ÿบ",
                "Reposessed vehicle":"โ›“๏ธ๐Ÿš—",
                "Standby":"๐Ÿง",
                "Phone report":"๐Ÿ“ž",
                "Traffic problem":"๐Ÿš—๐Ÿšฆ",
                "Tree down in road":"๐ŸŒณ๐Ÿ›ฃ๏ธ",
                "Unwarranted call information":"๐Ÿ“ž๐Ÿšซ",
                "User request for information":"๐Ÿ“ž๐Ÿ”",
                "Want officer for investigation":"๐Ÿ•ต๏ธ",
                "Wreck injury":"๐Ÿš—๐Ÿ’ฅ๐Ÿค•",
                "Wreck property damage":"๐Ÿš—๐Ÿ’ฅ๐Ÿ ",
                "Humane":"๐Ÿถ",
                "Injured person":"๐Ÿค•",
                "Law enforcement requested":"๐Ÿ‘ฎ",
                "Location detail - only":"๐Ÿ“",
                "Scan unit check":"๐Ÿ”",
                "Be on lookout":"๐Ÿ‘€",
                "Bolo":"๐Ÿ‘€",
                "Pole down":"๐Ÿ”Œโฌ‡๏ธ",
                "Mental transport":"๐Ÿง ๐Ÿš—",
                "Mental transport longhaul":"๐Ÿง ๐Ÿš—",
                "Pick up prisoner":"๐Ÿ‘ฎ๐Ÿš—",
                "Public assist":"๐Ÿ‘ฅ",
                "Unwarranted call utility":"๐Ÿ“ž๐Ÿšซ๐Ÿ”Œ",
                "Convey/escort":"๐Ÿš—๐Ÿ‘ฅ",
                "Injured person (child 5 years old or under)":"๐Ÿ‘ถ๐Ÿค•",
                "Traffic light out":"๐Ÿšซ๐Ÿšฆ",
                "Haz mat":"โ˜ฃ๏ธ",
                "Business check":"๐Ÿข๐Ÿ”",
                "Vandalism progress":"๐Ÿข๐Ÿ–Œ๏ธ๐Ÿ”",
                "Warrant service":"๐Ÿ“œ",
                "Disturbance":"๐Ÿ”Š",
                "Alarm":"๐Ÿšจ",
                "Shoplifter":"๐Ÿ›๏ธ๐Ÿƒ",
                "Business hold up alarm":"๐Ÿข๐Ÿšจ",
                "Unknown overdose":"๐Ÿ’Šโ“",
                "Vandalism":"๐Ÿข๐Ÿ–Œ๏ธ",
                "Fight":"๐Ÿคผ",
            }
            class1 = {
                "Disturbance in progress":"๐Ÿ”Š",
                "Forgery/fraud":"๐Ÿคฅ",
                "Hit and run":"๐Ÿš—๐Ÿ’จ",
                "Hit & run w/injury":"๐Ÿš—๐Ÿ’จ๐Ÿค•",
                "Hit & run":"๐Ÿš—๐Ÿ’จ",
                "Suspicious person":"๐Ÿคจ๐Ÿงโ€โ™‚๏ธ",
                "Drunk driver":"๐Ÿบ๐Ÿš—",
                "Missing person":"๐Ÿ”Ž๐Ÿง’",
                "Urgent forgery & fraud in progress":"๐ŸคฅโŒš",
            };
            class2 = {
                "Indecent exposure":"๐Ÿ‘",
                "Prowler on premises":"๐Ÿ‘€",
                "Theft":"๐Ÿ’ฐ๐Ÿƒ",
                "Assault":"๐Ÿ‘Š",
                "Vehicle burglary":"๐Ÿš—๐Ÿ‘€",
                "Drunk driver in progress":"๐Ÿบ๐Ÿš—โŒš",
                "Stolen vehicle":"๐Ÿš—",
                "Stolen vehicle in progress":"๐Ÿš—โŒš",
                "Assault, medical attention required":"๐Ÿ‘Š๐Ÿš‘",
                "Assault when medical attention required":"๐Ÿ‘Š๐Ÿš‘",
                "Business burglary":"๐Ÿข๐Ÿ’ฐ",
                "Attempted business burglary":"๐Ÿข๐Ÿ’ฐ",
                "Attempted residence burglary in progress":"๐Ÿก",
                "Theft in progress":"๐Ÿ’ฐ๐Ÿƒโ€โ™‚๏ธโŒš",
            }
            class3 = {
                "Business burglary in progress":"๐Ÿข๐Ÿ’ฐโŒš",
                "Residence burglary":"๐Ÿก๐Ÿšถโ€โ™‚๏ธ"

            }
            class4 = {
                "Residence burglary in progress":"๐Ÿก๐Ÿšถโ€โ™‚๏ธโŒš",
                "Shooting scrape":"๐Ÿ”ซ",
                "Shooting":"๐Ÿ”ซ",
                "Rape":"๐Ÿ‡"
            }
            class5 = {
                "Shooting in progress":"๐Ÿ”ซโŒš", 
                "Stabbing in progress":"๐Ÿ”ชโŒš",
                "Murder":"๐Ÿ”ช๐Ÿ’€", 
                "Murder in progress":"๐Ÿ”ช๐Ÿ’€โŒš", 
                "Murder attempted":"๐Ÿ”ช๐Ÿ’€๐Ÿšซ"
            }

            if(incident in class0){
                if(cl){return [class0[incident], 0]}
                return class0[incident]
            }else if(incident in class1){
                if(cl){return [class1[incident], 1]}
                return class1[incident]
            }else if(incident in class2){
                if(cl){return [class2[incident], 2]}
                return class2[incident]
            }else if(incident in class3){
                if(cl){return [class3[incident], 3]}
                return class3[incident]
            }else if(incident in class4){
                if(cl){return [class4[incident], 4]}
                return class4[incident]
            }else if(incident in class5){
                if(cl){return [class5[incident], 5]}
                return class5[incident]
            }else{
                if(cl){return ['โ“๐Ÿ‘ฎโ€โ™‚๏ธ', 6]}
                return 'โ“๐Ÿ‘ฎโ€โ™‚๏ธ'
            }
        default:
            return 'โ“';
    }
}