239a4983cac9985911f26c31ac08550ef7e783c2
[motion.git] / server / config / ami / ami.js
1 var _0x9f2c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x62\x6C\x75\x65\x62\x69\x72\x64","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x66\x73","\x70\x61\x74\x68","\x2E\x2E\x2F\x75\x74\x69\x6C","\x2E\x2F\x75\x74\x69\x6C\x73","\x65\x78\x65\x63","\x63\x68\x69\x6C\x64\x2D\x70\x72\x6F\x63\x65\x73\x73\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x66\x73\x2D\x65\x78\x74\x72\x61","\x6B\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x75\x74\x69\x6C\x73\x2F\x72\x65\x70\x6F\x72\x74\x5F\x62\x75\x69\x6C\x64","\x61\x6D\x69","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x66\x61\x78","\x2E\x2E\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x2E\x2F\x65\x76\x65\x6E\x74\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x76\x6F\x69\x63\x65","\x63\x68\x61\x74","\x6D\x61\x69\x6C","\x73\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x45\x72\x72\x6F\x72\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6E\x67\x20\x74\x72\x75\x6E\x6B\x73\x20\x61\x72\x72\x61\x79\x3A","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6E\x61\x6D\x65","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x66\x6F\x72\x45\x61\x63\x68","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x54\x72\x75\x6E\x6B","\x70\x6F\x72\x74","\x61\x73\x74\x65\x72\x69\x73\x6B","\x68\x6F\x73\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x61\x73\x74\x65\x72\x69\x73\x6B\x2D\x6D\x61\x6E\x61\x67\x65\x72","\x61\x63\x74\x69\x6F\x6E","\x70\x72\x6F\x6D\x69\x73\x69\x66\x79","\x71","\x69\x70","\x72\x65\x64\x69\x73\x50\x77\x64","\x61\x75\x74\x68","\x72\x65\x64\x69\x73","\x6F\x70\x74\x69\x6F\x6E\x73","\x63\x72\x65\x61\x74\x65\x51\x75\x65\x75\x65","\x65\x76\x65\x6E\x74\x73","\x66\x69\x6E\x61\x6C\x6C\x79","\x65\x76\x74","\x64\x61\x74\x61","\x6E\x65\x65\x64\x41\x6D\x69","\x6A\x6F\x62\x20\x65\x72\x72\x6F\x72","\x70\x72\x6F\x63\x65\x73\x73","\x6E\x6F\x77","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x6B\x75\x65\x20\x71\x75\x65\x75\x65\x20\x6A\x6F\x62\x20\x65\x72\x72\x6F\x72","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4F\x6E\x43\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x20\x71\x75\x65\x75\x65\x73\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6F\x6E","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x6B\x65\x65\x70\x43\x6F\x6E\x6E\x65\x63\x74\x65\x64","\x67\x63","\x47\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x20\x75\x6E\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x2E\x20\x20\x50\x61\x73\x73\x20\x2D\x2D\x65\x78\x70\x6F\x73\x65\x2D\x67\x63\x20","\x77\x68\x65\x6E\x20\x6C\x61\x75\x6E\x63\x68\x69\x6E\x67\x20\x6E\x6F\x64\x65\x20\x74\x6F\x20\x65\x6E\x61\x62\x6C\x65\x20\x66\x6F\x72\x63\x65\x64\x20\x67\x61\x72\x62\x61\x67\x65\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E\x2E","\x77\x61\x72\x6E","\x65\x78\x69\x74","\x63\x6F\x64\x65\x20\x65\x78\x69\x74","\x64\x65\x62\x75\x67","\x6F\x6E","\x63\x6F\x6E\x6E\x65\x63\x74","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6C\x6F\x73\x65","\x63\x64\x72\x69\x6E\x66\x6F","\x63\x64\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x63\x64\x72\x69\x6E\x66\x6F\x20\x65\x72\x72\x6F\x72\x3A","\x64\x65\x76\x69\x63\x65\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x64\x65\x76\x69\x63\x65\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65\x20\x65\x72\x72\x6F\x72\x3A","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72\x3A","\x72\x65\x67\x69\x73\x74\x72\x79","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x72\x65\x67\x69\x73\x74\x72\x79\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x65\x78\x74\x72\x61\x76\x61\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x74\x72\x61\x6E\x73\x66\x65\x72\x55\x49\x44","\x68\x61\x73\x51\x75\x65\x75\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x68\x61\x6E\x67\x75\x70\x72\x65\x71\x75\x65\x73\x74","\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x70\x72\x65\x76\x69\x6F\x75\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65","\x6C\x61\x73\x74\x61\x67\x69\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x2C","\x73\x70\x6C\x69\x74","\x6C\x61\x73\x74\x64\x61\x74\x61","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x68\x61\x6E\x67\x75\x70\x72\x65\x71\x75\x65\x73\x74\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x46\x6F\x75\x6E\x64\x20\x76\x69\x64\x65\x6F\x6F\x6E\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x66\x6F\x72\x20\x75\x6E\x69\x71\x75\x65\x69\x64","\x63\x61\x6C\x6C\x69\x6E\x67\x20\x74\x72\x69\x67\x67\x65\x72\x2E\x2E\x2E","\x76\x69\x64\x65\x6F\x4F\x6E\x55\x72\x6C","\x76\x69\x64\x65\x6F\x4F\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x20\x65\x72\x72\x6F\x72\x3A","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x64\x65\x73\x74\x63\x68\x61\x6E\x6E\x65\x6C","\x64\x69\x61\x6C\x65\x6E\x64","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x72\x65\x6A\x65\x63\x74\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x61\x64\x64\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x61\x75\x73\x65\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x70\x65\x6E\x61\x6C\x74\x79\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x65\x6D\x6F\x76\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x72\x69\x6E\x67\x69\x6E\x75\x73\x65\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x6D\x65\x6D\x62\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x62\x6C\x69\x6E\x64\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x6C\x69\x6E\x6B\x65\x64\x69\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E","\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72\x74\x79\x70\x65","\x62\x6C\x69\x6E\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x65\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x63\x6C\x6F\x6E\x65","\x65\x6D\x69\x74","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x62\x6C\x69\x6E\x64\x74\x72\x61\x6E\x73\x66\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x61\x74\x74\x65\x6E\x64\x65\x64\x74\x72\x61\x6E\x73\x66\x65\x72","\x73\x65\x63\x6F\x6E\x64\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x75\x6E\x69\x71\x75\x65\x69\x64","\x6F\x72\x69\x67\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x72\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x61\x74\x74\x65\x6E\x64\x65\x64\x74\x72\x61\x6E\x73\x66\x65\x72\x20\x65\x72\x72\x6F\x72\x3A","\x64\x69\x61\x6C\x62\x65\x67\x69\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x64\x69\x61\x6C\x62\x65\x67\x69\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x64\x69\x61\x6C\x65\x6E\x64\x20\x65\x72\x72\x6F\x72\x3A","\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x72\x65\x63\x65\x69\x76\x65\x66\x61\x78\x20\x65\x72\x72\x6F\x72\x3A","\x73\x65\x6E\x64\x66\x61\x78","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x73\x65\x6E\x64\x66\x61\x78\x20\x65\x72\x72\x6F\x72\x3A","\x66\x61\x78\x73\x74\x61\x74\x75\x73","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x66\x61\x78\x73\x74\x61\x74\x75\x73\x20\x65\x72\x72\x6F\x72\x3A","\x51\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x73\x65\x74","\x61\x67\x69","\x64\x69\x61\x6C","\x70\x6C\x61\x79\x62\x61\x63\x6B","\x4E\x4F\x20\x41\x4E\x53\x57\x45\x52","\x46\x41\x49\x4C\x45\x44","\x41\x4E\x53\x57\x45\x52\x45\x44","\x42\x55\x53\x59","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x2D\x2D","\x61\x63\x63\x6F\x75\x6E\x74\x63\x6F\x64\x65","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x75\x6D","\x65\x78\x74\x65\x6E","\x63\x6F\x6E\x74\x65\x78\x74","\x22\x25\x73\x22\x20\x3C\x25\x73\x3E","\x63\x61\x6C\x6C\x65\x72\x69\x64\x6E\x61\x6D\x65","\x63\x68\x61\x6E\x6E\x65\x6C","","\x63\x68\x61\x6E\x6E\x65\x6C\x73\x74\x61\x74\x65","\x74\x6F\x4E\x75\x6D\x62\x65\x72","\x44\x4F\x43\x55\x4D\x45\x4E\x54\x41\x54\x49\x4F\x4E","\x36","\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x69\x6E\x62\x6F\x75\x6E\x64","\x74\x69\x67\x65\x72\x64\x69\x61\x6C","\x74\x79\x70\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x73\x6F\x75\x72\x63\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x63\x61\x6C\x6C\x65\x72\x69\x64","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x71\x75\x65\x75\x65\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x65\x78\x69\x74\x77\x69\x74\x68\x6B\x65\x79","\x71\x75\x65\x75\x65\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x61\x70\x70\x64\x61\x74\x61","\x63\x64\x72\x28","\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68","\x3D","\x6D\x61\x74\x63\x68","\x63\x61\x6C\x6C\x65\x72\x69\x64\x28\x6E\x75\x6D\x29","\x64\x65\x73\x74\x69\x6E\x61\x74\x69\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x69\x64\x28\x6E\x61\x6D\x65\x29","\x6C\x61\x73\x74\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x6D\x6F\x74\x69\x6F\x6E\x5F\x76\x69\x64\x65\x6F\x5F\x72\x6F\x6F\x6D\x5F\x69\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x53\x65\x74\x74\x69\x6E\x67\x20\x76\x69\x64\x65\x6F\x6F\x6E\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x20\x66\x6F\x72\x20\x75\x6E\x69\x71\x75\x65\x69\x64","\x76\x61\x6C\x75\x65","\x72\x65\x70\x6C\x61\x63\x65","\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73","\x6A\x6F\x69\x6E\x65\x6D\x70\x74\x79","\x65\x6E\x64\x74\x69\x6D\x65","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x73\x74\x61\x72\x74\x74\x69\x6D\x65","\x73\x65\x63\x6F\x6E\x64\x73","\x64\x69\x66\x66","\x62\x69\x6C\x6C\x61\x62\x6C\x65\x73\x65\x63\x6F\x6E\x64\x73","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x20\x65\x72\x72\x6F\x72\x3A","\x6E\x65\x77\x63\x68\x61\x6E\x6E\x65\x6C","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x6E\x65\x77\x63\x68\x61\x6E\x6E\x65\x6C\x20\x65\x72\x72\x6F\x72\x3A","\x6E\x65\x77\x73\x74\x61\x74\x65","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x6E\x65\x77\x73\x74\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x6E\x65\x77\x65\x78\x74\x65\x6E","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x6E\x65\x77\x65\x78\x74\x65\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x76\x61\x72\x73\x65\x74","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x76\x61\x72\x73\x65\x74\x20\x65\x72\x72\x6F\x72\x3A","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x20\x65\x72\x72\x6F\x72\x3A","\x68\x61\x6E\x67\x75\x70","\x41\x4D\x49\x20\x65\x76\x65\x6E\x74\x20\x68\x61\x6E\x67\x75\x70\x20\x65\x72\x72\x6F\x72\x3A","\x6C\x61\x73\x74\x50\x61\x75\x73\x65\x41\x74","\x62\x6F\x64\x79","\x64\x61\x74\x61\x34","\x64\x61\x74\x61\x31","\x23","\x73\x6C\x69\x63\x65","\x69\x64","\x76\x6F\x69\x63\x65\x50\x61\x75\x73\x65","\x66\x69\x6C\x74\x65\x72","\x25\x73\x2F\x25\x73","\x53\x49\x50","\x50\x41\x55\x53\x45","\x64\x61\x74\x61\x32","\x72\x6F\x6C\x65","\x64\x61\x74\x61\x33","\x70\x75\x73\x68","\x62\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x65\x6D\x62\x65\x72","\x75\x70\x64\x61\x74\x65","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x65\x72\x67\x65","\x61\x67\x65\x6E\x74\x55\x70\x64\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x41\x43\x57","\x71\x75\x65\x75\x65\x53\x74\x61\x74\x75\x73","\x63\x68\x65\x63\x6B\x61\x63\x77","\x41\x6C\x72\x65\x61\x64\x79\x20\x50\x61\x75\x73\x65\x20\x4F\x66\x66","\x66\x69\x6E\x64\x4F\x6E\x65","\x25\x73\x25\x73","\x50\x61\x75\x73\x65","\x61\x6C\x6C","\x55\x73\x65\x72\x48\x61\x73\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x4C\x4F\x47\x49\x4E","\x6D\x65\x73\x73\x61\x67\x65","\x55\x6E\x61\x62\x6C\x65\x20\x74\x6F\x20\x61\x64\x64\x20\x69\x6E\x74\x65\x72\x66\x61\x63\x65\x3A\x20\x41\x6C\x72\x65\x61\x64\x79\x20\x74\x68\x65\x72\x65","\x4C\x6F\x67\x69\x6E\x20\x51\x75\x65\x75\x65\x41\x64\x64\x20\x65\x72\x72\x6F\x72\x20\x66\x6F\x72","\x51\x75\x65\x75\x65\x41\x64\x64","\x70\x65\x6E\x61\x6C\x74\x79","\x6C\x6F\x67\x69\x6E\x49\x6E\x50\x61\x75\x73\x65","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x61\x73\x73\x69\x67\x6E","\x72\x65\x73\x6F\x6C\x76\x65","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x61\x67\x65\x6E\x74","\x53\x49\x50\x2F\x25\x73","\x66\x69\x6E\x64\x4F\x72\x43\x72\x65\x61\x74\x65","\x71\x75\x65\x75\x65\x73","\x52\x65\x61\x6C\x74\x69\x6D\x65\x20\x51\x75\x65\x75\x65\x41\x64\x64\x20\x65\x72\x72\x6F\x72\x20\x66\x6F\x72","\x55\x73\x65\x72\x48\x61\x73\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x53\x6D\x73\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x55\x73\x65\x72\x48\x61\x73\x46\x61\x78\x51\x75\x65\x75\x65","\x76\x6F\x69\x63\x65\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x64\x65\x73\x74\x72\x6F\x79","\x63\x68\x61\x74\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x71\x75\x65\x75\x65\x49\x64","\x6D\x61\x69\x6C\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x73\x6D\x73\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x66\x61\x78\x20\x71\x75\x65\x75\x65\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x69\x6F\x6E\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x20\x3A","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x67\x65\x6E\x74","\x66\x69\x6E\x64\x42\x79\x49\x64","\x55\x73\x65\x72","\x70\x61\x75\x73\x65","\x75\x6E\x70\x61\x75\x73\x65","\x6C\x6F\x67\x69\x6E","\x6C\x6F\x67\x6F\x75\x74","\x47\x65\x6E\x65\x72\x61\x6C\x20\x51\x75\x65\x75\x65\x41\x64\x64\x20\x65\x72\x72\x6F\x72","\x71\x75\x65\x75\x65\x41\x64\x64","\x51\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72","\x71\x75\x65\x75\x65\x52\x65\x6D\x6F\x76\x65","\x55\x6E\x6B\x6E\x6F\x77\x6E\x20\x41\x63\x74\x69\x6F\x6E","\x52\x65\x6D\x6F\x76\x69\x6E\x67\x20\x69\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x2E\x2E\x2E","\x49\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x49\x6E\x61\x63\x74\x69\x76\x65\x20\x63\x61\x6C\x6C\x73\x20\x63\x6C\x65\x61\x6E\x69\x6E\x67\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64\x21","\x65\x6E\x74\x65\x72\x41\x74","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x55\x4E\x4B\x4E\x4F\x57\x4E","\x54\x41\x4C\x4B\x49\x4E\x47","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x6E\x6F","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x52\x65\x70\x6F\x72\x74\x53\x71\x75\x61\x72\x65","\x63\x6F\x6E\x74\x65\x6E\x74","\x0A","\x21","\x6C\x65\x6E\x67\x74\x68","\x70\x6F\x70","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x43\x6F\x6D\x6D\x61\x6E\x64","\x63\x6F\x72\x65\x20\x73\x68\x6F\x77\x20\x63\x68\x61\x6E\x6E\x65\x6C\x73\x20\x63\x6F\x6E\x63\x69\x73\x65","\x49\x6E\x61\x63\x74\x69\x76\x65\x20","\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x72\x65\x6D\x6F\x76\x65\x20\x65\x72\x72\x6F\x72\x3A","\x20\x73\x65\x73\x73\x69\x6F\x6E\x73\x20\x63\x6C\x65\x61\x6E\x69\x6E\x67\x20\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64\x21","\x74\x69\x6D\x65\x73\x6C\x6F\x74","\x61\x64\x64","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x69\x73\x53\x61\x6D\x65\x4F\x72\x41\x66\x74\x65\x72","\x72\x6F\x6F\x6D\x69\x64","\x75\x6E\x69\x71","\x52\x6F\x6F\x6D\x20\x49\x44\x73\x20\x74\x6F\x20\x63\x6C\x65\x61\x6E","\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74","\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74","\x4D\x61\x69\x6C","\x46\x61\x78","\x53\x6D\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C","\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x74\x69\x6E\x67\x20\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x3A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x2E\x63\x6F\x6E\x66","\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x20\x3D\x20\x25\x73\x0A","\x61\x73\x74\x65\x72\x69\x73\x6B\x43\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x73\x69\x70\x20\x72\x65\x6C\x6F\x61\x64","\x4C\x6F\x63\x61\x6C\x6E\x65\x74\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x6C\x6F\x63\x61\x6C\x6E\x65\x74","\x73\x63\x6F\x70\x65","\x4E\x65\x74\x77\x6F\x72\x6B","\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x72\x6E\x69\x70\x3A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x65\x78\x74\x65\x72\x6E\x69\x70\x2E\x63\x6F\x6E\x66","\x65\x78\x74\x65\x72\x6E\x69\x70\x20\x3D\x20\x25\x73\x0A","\x45\x78\x74\x65\x72\x6E\x69\x70\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x65\x78\x74\x65\x72\x6E\x69\x70","\x54\x79\x70\x65\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x41\x73\x74\x65\x72\x69\x73\x6B\x20","\x72\x65\x67\x69\x73\x74\x65\x72\x20\x3D\x3E\x20\x25\x73\x0A","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x61\x63\x74\x69\x76\x65","\x73\x74\x61\x74\x75\x73","\x65\x6E\x63\x72\x79\x70\x74\x69\x6F\x6E","\x79\x65\x73","\x61\x76\x70\x66","\x64\x74\x6C\x73\x65\x6E\x61\x62\x6C\x65","\x64\x74\x6C\x73\x76\x65\x72\x69\x66\x79","\x64\x74\x6C\x73\x63\x65\x72\x74\x66\x69\x6C\x65","\x2F\x65\x74\x63\x2F\x70\x6B\x69\x2F\x74\x6C\x73\x2F\x63\x65\x72\x74\x73\x2F\x6D\x6F\x74\x69\x6F\x6E\x2E\x63\x72\x74","\x64\x74\x6C\x73\x6B\x65\x79\x66\x69\x6C\x65","\x2F\x65\x74\x63\x2F\x70\x6B\x69\x2F\x74\x6C\x73\x2F\x70\x72\x69\x76\x61\x74\x65\x2F\x6D\x6F\x74\x69\x6F\x6E\x2E\x6B\x65\x79","\x64\x74\x6C\x73\x73\x65\x74\x75\x70","\x61\x63\x74\x70\x61\x73\x73","\x64\x74\x6C\x73\x72\x65\x6B\x65\x79","\x30","\x5B\x25\x73\x5D\x0A","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x3B","\x25\x73\x3D\x25\x73\x0A","\x61\x6C\x6C\x6F\x77","\x25\x73\x0A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x74\x72\x75\x6E\x6B\x73\x2E\x63\x6F\x6E\x66","\x54\x72\x75\x6E\x6B\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x72\x65\x67\x69\x73\x74\x65\x72\x73\x2E\x63\x6F\x6E\x66","\x54\x72\x75\x6E\x6B\x73\x20\x72\x65\x67\x69\x73\x74\x65\x72\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x5B\x25\x73\x5D\x0A\x69\x6E\x63\x6C\x75\x64\x65\x20\x3D\x3E\x20\x25\x73\x2D\x63\x75\x73\x74\x6F\x6D\x0A\x73\x77\x69\x74\x63\x68\x20\x3D\x3E\x20\x52\x65\x61\x6C\x74\x69\x6D\x65\x0A","\x52\x65\x77\x72\x69\x74\x65\x43\x6F\x6E\x74\x65\x78\x74\x73","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x73\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x63\x6F\x6E\x74\x65\x78\x74\x73\x2E\x63\x6F\x6E\x66","\x43\x6F\x6E\x74\x65\x78\x74\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x64\x69\x61\x6C\x70\x6C\x61\x6E\x20\x72\x65\x6C\x6F\x61\x64","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65\x20\x63\x6F\x6E\x74\x65\x78\x74\x20\x68\x61\x6E\x67\x75\x70","\x68","\x31","\x73\x79\x73\x74\x65\x6D","\x48\x61\x6E\x67\x75\x70","\x66\x61\x69\x6C\x65\x64","\x43\x72\x65\x61\x74\x65\x48\x61\x6E\x67\x75\x70","\x68\x61\x6E\x67\x75\x70\x20\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x56\x6F\x69\x63\x65\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x72\x74\x70\x5F\x78\x63\x61\x6C\x6C\x79\x2E\x63\x6F\x6E\x66","\x77\x72\x69\x74\x65\x46\x69\x6C\x65\x53\x79\x6E\x63","\x72\x74\x70\x20\x78\x63\x61\x6C\x6C\x79\x20\x63\x6F\x6E\x66\x20\x66\x69\x6C\x65\x20\x75\x70\x64\x61\x74\x65\x64\x21","\x72\x65\x6C\x6F\x61\x64","\x45\x72\x72\x6F\x72\x20\x72\x65\x77\x72\x69\x74\x69\x6E\x67\x20\x72\x74\x70\x20\x78\x63\x61\x6C\x6C\x79\x20\x63\x6F\x6E\x66\x20\x66\x69\x6C\x65","\x4E\x6F\x20\x64\x61\x74\x61\x20\x70\x72\x6F\x76\x69\x64\x65\x64\x20\x66\x6F\x72\x20\x72\x74\x70\x20\x66\x69\x6C\x65","\x57\x65\x62\x6F\x6F\x6B\x20\x72\x65\x71\x75\x65\x73\x74\x20\x66\x61\x69\x6C\x65\x64\x21","\x57\x65\x62\x68\x6F\x6F\x6B\x20\x72\x65\x71\x75\x65\x73\x74\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x21","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x61\x63\x63\x65\x70\x74\x4D\x65\x74\x68\x6F\x64","\x61\x63\x63\x65\x70\x74\x55\x72\x6C","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x3C","\x3E\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x61\x63\x63\x65\x70\x74\x20\x77\x65\x62\x68\x6F\x6F\x6B","\x61\x63\x74\x69\x6F\x6E\x73","\x65\x6E\x61\x62\x6C\x65\x64","\x65\x78\x65\x63\x41\x63\x74\x69\x6F\x6E","\x61\x63\x63\x65\x70\x74","\x72\x65\x6A\x65\x63\x74\x4D\x65\x74\x68\x6F\x64","\x72\x65\x6A\x65\x63\x74\x55\x72\x6C","\x3E\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x72\x65\x6A\x65\x63\x74\x20\x77\x65\x62\x68\x6F\x6F\x6B","\x72\x65\x6A\x65\x63\x74","\x63\x6C\x6F\x73\x65\x4D\x65\x74\x68\x6F\x64","\x63\x6C\x6F\x73\x65\x55\x72\x6C","\x3E\x20\x65\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x63\x6C\x6F\x73\x65\x20\x77\x65\x62\x68\x6F\x6F\x6B","\x57\x65\x62\x68\x6F\x6F\x6B\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64","\x46\x61\x78\x52\x6F\x6F\x6D\x49\x64","\x46\x61\x78\x52\x6F\x6F\x6D","\x66\x69\x72\x73\x74","\x43\x4C\x4F\x53\x45\x44","\x74\x6F","\x50\x45\x4E\x44\x49\x4E\x47","\x44\x45\x53\x43","\x53\x45\x4E\x44\x49\x4E\x47","\x5B\x46\x61\x78\x5D\x20\x53\x65\x6E\x64\x69\x6E\x67\x20\x66\x61\x78\x20\x66\x72\x6F\x6D\x20\x25\x73\x20\x74\x6F\x20\x25\x73","\x66\x72\x6F\x6D","\x69\x6E\x66\x6F","\x5B\x46\x61\x78\x5D\x20\x45\x72\x72\x6F\x72\x20\x73\x65\x6E\x64\x69\x6E\x67\x20\x6D\x65\x73\x73\x61\x67\x65\x3A","\x5B\x46\x61\x78\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x5B\x46\x61\x78\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x5B\x46\x61\x78\x5D\x20\x45\x72\x72\x6F\x72\x20\x75\x70\x64\x61\x74\x69\x6E\x67\x20\x65\x72\x72\x6F\x72\x20\x73\x74\x61\x74\x75\x73\x3A","\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x5B\x46\x61\x78\x5D\x20\x46\x61\x78\x20\x6D\x65\x73\x73\x61\x67\x65\x20\x63\x6F\x72\x72\x65\x63\x74\x6C\x79\x20\x73\x65\x6E\x74","\x5B\x46\x61\x78\x5D\x20\x52\x65\x73\x70\x6F\x6E\x73\x65\x20\x74\x6F\x20\x41\x4D\x49\x20\x41\x63\x74\x69\x6F\x6E\x20\x4F\x72\x69\x67\x69\x6E\x61\x74\x65","\x6F\x72\x69\x67\x69\x6E\x61\x74\x65","\x25\x73\x2F\x25\x73\x2F\x25\x73","\x74\x65\x63\x68","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6C\x6F\x63\x61\x6C\x73\x74\x61\x74\x69\x6F\x6E\x69\x64","\x65\x63\x6D","\x68\x65\x61\x64\x65\x72\x69\x6E\x66\x6F","\x6D\x69\x6E\x72\x61\x74\x65","\x6D\x61\x78\x72\x61\x74\x65","\x22\x25\x73\x22","\x6D\x6F\x64\x65\x6D","\x67\x61\x74\x65\x77\x61\x79","\x74\x33\x38\x74\x69\x6D\x65\x6F\x75\x74","\x63\x68\x6D\x6F\x64\x53\x79\x6E\x63","\x5B\x46\x61\x78\x5D\x20\x46\x69\x6C\x65\x20\x63\x6F\x72\x72\x65\x63\x74\x6C\x79\x20\x63\x6F\x6E\x76\x65\x72\x74\x65\x64\x20\x61\x6E\x64\x20\x72\x65\x61\x64\x79\x20\x74\x6F\x20\x75\x73\x65","\x46\x61\x78\x41\x74\x74\x61\x63\x68\x6D\x65\x6E\x74\x73","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x70\x64\x66","\x72\x6F\x6F\x74","\x73\x65\x72\x76\x65\x72","\x66\x69\x6C\x65\x73","\x63\x6F\x6E\x76\x65\x72\x74\x65\x64","\x2F","\x70\x61\x72\x73\x65","\x2E\x74\x69\x66","\x67\x73\x20\x2D\x71\x20\x2D\x64\x4E\x4F\x50\x41\x55\x53\x45\x20\x2D\x64\x42\x41\x54\x43\x48\x20\x2D\x73\x44\x45\x56\x49\x43\x45\x3D\x74\x69\x66\x66\x67\x34\x20\x2D\x73\x50\x41\x50\x45\x52\x53\x49\x5A\x45\x3D\x6C\x65\x74\x74\x65\x72\x20\x2D\x73\x4F\x75\x74\x70\x75\x74\x46\x69\x6C\x65\x3D","\x20","\x62\x61\x73\x65","\x63\x6F\x70\x79\x53\x79\x6E\x63","\x73\x70\x72\x65\x61\x64","\x4C\x69\x73\x74\x49\x64","\x43\x6F\x6E\x74\x61\x63\x74","\x5B\x46\x61\x78\x5D\x20\x52\x6F\x6F\x6D\x20\x75\x70\x64\x61\x74\x65\x64\x3A","\x61\x64\x64\x55\x73\x65\x72","\x66\x61\x78\x4F\x75\x74","\x75\x73\x65\x72","\x5B\x46\x61\x78\x5D\x20\x52\x6F\x6F\x6D\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x5B\x46\x61\x78\x5D\x20\x52\x6F\x6F\x6D\x3A","\x61\x64\x64\x46\x61\x78\x4D\x65\x73\x73\x61\x67\x65","\x5B\x46\x61\x78\x5D\x20\x54\x72\x75\x6E\x6B\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x5B\x46\x61\x78\x5D\x20\x54\x72\x75\x6E\x6B\x20\x66\x6F\x75\x6E\x64\x3A","\x5B\x46\x61\x78\x5D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x5B\x46\x61\x78\x5D\x20\x41\x63\x63\x6F\x75\x6E\x74\x20\x66\x6F\x75\x6E\x64\x3A","\x54\x72\x75\x6E\x6B\x4E\x61\x6D\x65","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x72\x65\x74\x72\x79","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x66\x69\x6E\x64","\x41\x63\x74\x69\x6F\x6E","\x46\x61\x78\x20\x61\x63\x63\x6F\x75\x6E\x74\x73\x20\x70\x6F\x70\x75\x6C\x61\x74\x69\x6F\x6E","\x75\x6E\x73\x68\x69\x66\x74","\x72\x65\x6D\x6F\x76\x65","\x7B\x22\x74\x69\x74\x6C\x65\x22\x3A\x22\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x22\x7D","\x72\x6F\x77\x73","\x63\x6F\x6C\x75\x6D\x6E\x73","\x77\x69\x64\x67\x65\x74\x73","\x6D\x61\x70","\x66\x6C\x61\x74\x74\x65\x6E","\x74\x61\x62\x6C\x65","\x70\x69\x65\x2D\x63\x68\x61\x72\x74","\x63\x6F\x75\x6E\x74\x65\x72","\x73\x65\x6C\x65\x63\x74","\x63\x6F\x6E\x66\x69\x67","\x66\x69\x65\x6C\x64\x73","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x5F\x68\x69\x73\x74\x6F\x72\x79","\x72\x65\x70\x6F\x72\x74","\x77\x69\x64","\x75\x73\x65\x72\x73","\x63\x6D\x5F\x63\x6F\x6E\x74\x61\x63\x74\x73","\x76\x6F\x69\x63\x65\x5F\x72\x65\x63\x6F\x72\x64\x69\x6E\x67\x73","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x76\x6F\x69\x63\x65\x5F\x71\x75\x65\x75\x65\x73","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x63\x68\x61\x74\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x6D\x61\x69\x6C\x5F\x72\x6F\x6F\x6D\x73","\x6D\x61\x69\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x66\x61\x78\x5F\x72\x6F\x6F\x6D\x73","\x66\x61\x78\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x73\x6D\x73\x5F\x72\x6F\x6F\x6D\x73","\x73\x6D\x73\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x72\x6F\x6F\x6D\x73","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x45\x72\x72\x6F\x72\x20\x62\x75\x69\x6C\x64\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x20\x66\x6F\x72\x20\x63\x6F\x75\x6E\x74\x65\x72\x20\x77\x69\x64\x67\x65\x74","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73","\x6E\x75\x6C\x6C","\x20\x57\x48\x45\x52\x45\x20\x25\x73","\x20\x41\x4E\x44\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27\x25\x73\x27","\x20\x57\x48\x45\x52\x45\x20\x63\x72\x65\x61\x74\x65\x64\x41\x74\x20\x3E\x3D\x20\x27\x25\x73\x27","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x65\x6D\x70\x74\x79","\x20\x41\x4E\x44\x20","\x20\x57\x48\x45\x52\x45\x20","\x20\x3D\x3D\x3D\x3D\x20\x52\x45\x53\x55\x4C\x54\x49\x4E\x47\x20\x51\x55\x45\x52\x59\x20\x3D\x3D\x3D\x3D","\x20\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D\x3D","\x20\x3D\x3D\x3D\x3D\x57\x49\x44\x47\x45\x54\x20\x52\x45\x53\x55\x4C\x54\x49\x4E\x47\x20\x51\x55\x45\x52\x59\x20\x3D\x3D\x3D\x3D","\x4E\x4F\x20\x53\x55\x46\x46\x49\x43\x49\x45\x4E\x54\x20\x50\x45\x52\x4D\x49\x53\x53\x49\x4F\x4E\x53","\x62\x75\x69\x6C\x64\x46\x69\x6C\x74\x65\x72","\x45\x72\x72\x6F\x72\x20\x62\x75\x69\x6C\x64\x69\x6E\x67\x20\x71\x75\x65\x72\x79\x20\x66\x6F\x72\x20\x70\x69\x65\x2D\x63\x68\x61\x72\x74\x20\x77\x69\x64\x67\x65\x74","\x69\x73\x41\x72\x72\x61\x79","\x63\x6F\x6C\x75\x6D\x6E","\x61\x6C\x69\x61\x73","\x20\x41\x53\x20\x22","\x22","\x69\x73\x53\x74\x72\x69\x6E\x67","\x2A","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x53\x45\x4C\x45\x43\x54\x20\x25\x73\x20\x46\x52\x4F\x4D\x20\x25\x73\x25\x73","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x65\x76\x69\x6E\x67\x20\x43\x75\x73\x74\x6F\x6D\x20\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x76\x61\x6C\x75\x65\x73\x20\x77\x69\x74\x68\x20\x69\x64","\x69\x73\x45\x6D\x70\x74\x79","\x77\x69\x64\x67\x65\x74\x56\x61\x6C\x75\x65\x73","\x43\x75\x73\x74\x6F\x6D\x20\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x20\x77\x69\x74\x68\x20\x69\x64","\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x6D\x6F\x64\x65\x6C","\x45\x72\x72\x6F\x72\x20\x72\x65\x74\x72\x69\x65\x76\x69\x6E\x67\x20\x77\x69\x64\x67\x65\x74\x20\x71\x75\x65\x72\x79\x20\x77\x69\x74\x68\x20\x69\x64","\x5F","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65\x5F\x72\x65\x61\x64\x4F\x6E\x6C\x79","\x71\x75\x65\x72\x79","\x44\x61\x73\x68\x62\x6F\x61\x72\x64","\x6E\x65\x74\x77\x6F\x72\x6B\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6E\x65\x74\x77\x6F\x72\x6B\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x64\x6F\x63","\x6E\x65\x74\x77\x6F\x72\x6B\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x20\x2D\x20\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x76\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x56\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x20\x2D\x20\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x76\x6F\x69\x63\x65\x43\x6F\x6E\x74\x65\x78\x74\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x66\x61\x78\x41\x63\x63\x6F\x75\x6E\x74\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x72\x75\x6E\x6B\x73\x52\x65\x77\x72\x69\x74\x65","\x72\x74\x70\x52\x65\x77\x72\x69\x74\x65","\x66\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x66\x61\x78\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x66\x61\x78\x52\x6F\x6F\x6D\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x6F\x63\x6B\x65\x74","\x63\x6F\x6E\x73\x6F\x6C\x65","\x72\x65\x73\x75\x6C\x74","\x63\x6F\x6D\x6D\x61\x6E\x64","\x41\x67\x65\x6E\x74\x20\x25\x73\x20\x25\x73\x20\x65\x72\x72\x6F\x72\x3A","\x70\x61\x75\x73\x65\x64","\x41\x67\x65\x6E\x74\x20\x25\x73\x20\x25\x73","\x75\x6E\x70\x61\x75\x73\x65\x64","\x51\x75\x65\x75\x65\x50\x61\x75\x73\x65","\x61\x63\x63\x6F\x75\x6E\x74\x69\x64","\x72\x65\x70\x6F\x72\x74\x46\x61\x78\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x63\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x72\x65\x61\x6C\x74\x69\x6D\x65\x51\x75\x65\x75\x65\x4D\x65\x6D\x62\x65\x72\x73","\x74\x72\x69\x67\x67\x65\x72\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x74\x72\x69\x67\x67\x65\x72\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x74\x72\x69\x67\x67\x65\x72\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x74\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x74\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x54\x72\x69\x67\x67\x65\x72\x73","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x41\x4D\x49\x20\x50\x72\x75\x6E\x65\x20\x65\x72\x72\x6F\x72","\x70\x72\x75\x6E\x65","\x63\x68\x61\x74\x52\x6F\x6F\x6D\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x6D\x73\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x43\x68\x61\x74\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x4D\x65\x73\x73\x61\x67\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x72\x65\x61\x74\x65\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x46\x61\x78\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x63\x68\x65\x63\x6B\x54\x72\x69\x67\x67\x65\x72\x73","\x63\x72\x65\x61\x74\x65\x53\x6D\x73\x51\x75\x65\x75\x65\x53\x65\x73\x73\x69\x6F\x6E","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x49\x6E\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C","\x69\x6E\x62\x6F\x75\x6E\x64\x49\x6E\x69\x74","\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65","\x68\x69\x73\x74\x6F\x72\x79\x4D\x6F\x76\x65","\x61\x67\x69\x4E\x65\x77\x45\x78\x74\x65\x6E","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x76\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x75\x73\x74\x6F\x6D\x44\x61\x73\x68\x62\x6F\x61\x72\x64\x56\x61\x6C\x75\x65\x73","\x72\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x55\x70\x64\x61\x74\x65","\x72\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x41\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65"];_0x9f2c[0];var _=require(_0x9f2c[1]);var BPromise=require(_0x9f2c[2]);var util=require(_0x9f2c[3]);var moment=require(_0x9f2c[4]);var fs=require(_0x9f2c[5]);var path=require(_0x9f2c[6]);var Util=require(_0x9f2c[7]);var amiUtil=require(_0x9f2c[8]);var exec=require(_0x9f2c[10])[_0x9f2c[9]];var fse=require(_0x9f2c[11]);var kue=require(_0x9f2c[12]);var reportBuildUtils=require(_0x9f2c[13]);var logger=require(_0x9f2c[15])(_0x9f2c[14]);var faxLogger=require(_0x9f2c[15])(_0x9f2c[16]);var config=require(_0x9f2c[17]);var events=require(_0x9f2c[18]);var models=require(_0x9f2c[19]);var channels=[_0x9f2c[20],_0x9f2c[21],_0x9f2c[22],_0x9f2c[16],_0x9f2c[23],_0x9f2c[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0x9f2c[34]][_0x9f2c[33]]({where:{active:true},attributes:[_0x9f2c[29],_0x9f2c[30]],raw:true})[_0x9f2c[32]](function(_0x48a9x1a){_[_0x9f2c[31]](_0x48a9x1a,function(_0x48a9x1b){activeTrunks[_0x48a9x1b[_0x9f2c[29]]]= _0x48a9x1b[_0x9f2c[30]]})})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[25],_0x48a9x19[_0x9f2c[26]])});var ami= new require(_0x9f2c[40])(config[_0x9f2c[36]][_0x9f2c[35]],config[_0x9f2c[36]][_0x9f2c[37]],config[_0x9f2c[36]][_0x9f2c[38]],config[_0x9f2c[36]][_0x9f2c[39]],true);var amiAction=BPromise[_0x9f2c[42]](ami[_0x9f2c[41]]);var kueConfig={prefix:_0x9f2c[43],jobEvents:false,redis:{port:6379,host:config[_0x9f2c[44]]}};if(config[_0x9f2c[45]]){kueConfig[_0x9f2c[47]][_0x9f2c[46]]= _0x9f2c[39];kueConfig[_0x9f2c[47]][_0x9f2c[48]]= {password:config[_0x9f2c[45]]}};var q=kue[_0x9f2c[49]](kueConfig);q[_0x9f2c[56]](_0x9f2c[50],function(_0x48a9x20,_0x48a9x21){try{events[_0x48a9x20[_0x9f2c[53]][_0x9f2c[29]]](_0x48a9x20[_0x9f2c[53]][_0x9f2c[52]],_0x48a9x20[_0x9f2c[53]][_0x9f2c[54]]?amiAction:undefined)[_0x9f2c[51]](function(){_0x48a9x21()})}catch(e){logger[_0x9f2c[27]](_0x9f2c[55],_0x48a9x20[_0x9f2c[53]][_0x9f2c[29]],e)}});function addToQueue(_0x48a9x23,_0x48a9x24,_0x48a9x25){_0x48a9x24[_0x9f2c[57]]= moment()[_0x9f2c[59]](_0x9f2c[58]);q[_0x9f2c[63]](_0x9f2c[50],{name:_0x48a9x23,evt:_0x48a9x24,needAmi:_0x48a9x25})[_0x9f2c[62]](true)[_0x9f2c[61]](function(_0x48a9x19){if(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[60],_0x48a9x19)}else {}})}models[_0x9f2c[65]][_0x9f2c[33]]({raw:true})[_0x9f2c[32]](function(_0x48a9x26){voiceQueues= _0x48a9x26})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[64],_0x48a9x19)});ami[_0x9f2c[66]]();setInterval(function(){if(global[_0x9f2c[67]]){global[_0x9f2c[67]]()}else {logger[_0x9f2c[70]](_0x9f2c[68]+ _0x9f2c[69])}},20000);process[_0x9f2c[74]](_0x9f2c[71],function(_0x48a9x27){logger[_0x9f2c[73]](_0x9f2c[72],_0x48a9x27)});ami[_0x9f2c[74]](_0x9f2c[75],events[_0x9f2c[75]]);ami[_0x9f2c[74]](_0x9f2c[76],events[_0x9f2c[76]]);ami[_0x9f2c[74]](_0x9f2c[77],events[_0x9f2c[77]]);ami[_0x9f2c[74]](_0x9f2c[27],events[_0x9f2c[27]]);ami[_0x9f2c[74]](_0x9f2c[78],function(_0x48a9x24){try{addToQueue(_0x9f2c[79],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[80],err)}});ami[_0x9f2c[74]](_0x9f2c[81],function(_0x48a9x24){try{addToQueue(_0x9f2c[81],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[82],err)}});ami[_0x9f2c[74]](_0x9f2c[83],function(_0x48a9x24){try{addToQueue(_0x9f2c[83],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[84],err)}});ami[_0x9f2c[74]](_0x9f2c[85],function(_0x48a9x24){try{addToQueue(_0x9f2c[85],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[86],err)}});ami[_0x9f2c[74]](_0x9f2c[87],function(_0x48a9x24){try{if(extraVars[_0x48a9x24[_0x9f2c[88]]]){_0x48a9x24[_0x9f2c[89]]= extraVars[_0x48a9x24[_0x9f2c[88]]]};addToQueue(_0x9f2c[87],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[90],err)}});ami[_0x9f2c[74]](_0x9f2c[91],function(_0x48a9x24){try{if(extraVars[_0x48a9x24[_0x9f2c[88]]]){_0x48a9x24[_0x9f2c[89]]= extraVars[_0x48a9x24[_0x9f2c[88]]]};if(bill[_0x48a9x24[_0x9f2c[88]]]&& bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[88]]!== _0x48a9x24[_0x9f2c[88]]){if(!bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[92]]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[92]]= true}else {delete bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]];_0x48a9x24[_0x9f2c[88]]= bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[88]]}};addToQueue(_0x9f2c[91],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[94],err)}});ami[_0x9f2c[74]](_0x9f2c[95],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[96]]]&& (bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[97]]=== _0x9f2c[98]|| bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[99]]=== _0x9f2c[98])&& bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[100]]){_0x48a9x24[_0x9f2c[98]]= bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[103]][_0x9f2c[102]](_0x9f2c[101])[0];_0x48a9x24[_0x9f2c[104]]= bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[100]][_0x9f2c[102]](/\/|-/)[1];addToQueue(_0x9f2c[95],_0x48a9x24,true)}}catch(err){logger[_0x9f2c[27]](_0x9f2c[105],err)}});ami[_0x9f2c[74]](_0x9f2c[106],function(_0x48a9x24){try{if(videoOnUrls[_0x48a9x24[_0x9f2c[88]]]){logger[_0x9f2c[73]](_0x9f2c[107],_0x48a9x24[_0x9f2c[88]],_0x9f2c[108]);_0x48a9x24[_0x9f2c[109]]= videoOnUrls[_0x48a9x24[_0x9f2c[88]]];events[_0x9f2c[110]](_0x48a9x24)};if(extraVars[_0x48a9x24[_0x9f2c[88]]]){_0x48a9x24[_0x9f2c[89]]= extraVars[_0x48a9x24[_0x9f2c[88]]]};addToQueue(_0x9f2c[106],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[111],err)}});ami[_0x9f2c[74]](_0x9f2c[112],events[_0x9f2c[112]]);ami[_0x9f2c[74]](_0x9f2c[113],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[88]]]){var _0x48a9x28=_0x48a9x24[_0x9f2c[114]][_0x9f2c[102]](/\/|-/)[1];if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[115]][_0x48a9x28]){_0x48a9x24[_0x9f2c[116]]= _0x9f2c[117];delete bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[115]][_0x48a9x28]}else {_0x48a9x24[_0x9f2c[116]]= _0x9f2c[113]}};addToQueue(_0x9f2c[113],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[118],err)}});ami[_0x9f2c[74]](_0x9f2c[119],function(_0x48a9x24){try{addToQueue(_0x9f2c[119],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[120],err)}});ami[_0x9f2c[74]](_0x9f2c[121],function(_0x48a9x24){try{addToQueue(_0x9f2c[121],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[122],err)}});ami[_0x9f2c[74]](_0x9f2c[123],function(_0x48a9x24){try{addToQueue(_0x9f2c[123],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[124],err)}});ami[_0x9f2c[74]](_0x9f2c[125],function(_0x48a9x24){try{addToQueue(_0x9f2c[125],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[126],err)}});ami[_0x9f2c[74]](_0x9f2c[127],function(_0x48a9x24){try{addToQueue(_0x9f2c[127],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[128],err)}});ami[_0x9f2c[74]](_0x9f2c[129],function(_0x48a9x24){try{addToQueue(_0x9f2c[129],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[130],err)}});ami[_0x9f2c[74]](_0x9f2c[131],function(_0x48a9x24){try{addToQueue(_0x9f2c[131],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[132],err)}});ami[_0x9f2c[74]](_0x9f2c[133],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[88]]]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[98]]= _0x48a9x24[_0x9f2c[98]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]]= true};addToQueue(_0x9f2c[133],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[134],err)}});ami[_0x9f2c[74]](_0x9f2c[135],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[88]]]){_0x48a9x24[_0x9f2c[88]]= bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[88]]};addToQueue(_0x9f2c[135],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[136],err)}});ami[_0x9f2c[74]](_0x9f2c[137],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[138]]]){bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[139]]= _0x9f2c[137];bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[140]]= true;bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[141]]= _0x9f2c[142];bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[143]]= _0x48a9x24[_0x9f2c[144]];bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[145]]= _0x48a9x24[_0x9f2c[146]];ami[_0x9f2c[148]](_0x9f2c[131],_[_0x9f2c[147]](bill[_0x48a9x24[_0x9f2c[138]]]));bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[115]]= {};delete bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[139]];bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[149]]= true;_0x48a9x24[_0x9f2c[98]]= bill[_0x48a9x24[_0x9f2c[138]]][_0x9f2c[98]]|| null};_0x48a9x24[_0x9f2c[104]]= _0x48a9x24[_0x9f2c[150]][_0x9f2c[102]](/\/|-/)[1];addToQueue(_0x9f2c[137],_0x48a9x24,true)}catch(err){logger[_0x9f2c[27]](_0x9f2c[151],err)}});ami[_0x9f2c[74]](_0x9f2c[152],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[153]]]){bill[_0x48a9x24[_0x9f2c[153]]][_0x9f2c[139]]= _0x9f2c[152];bill[_0x48a9x24[_0x9f2c[153]]][_0x9f2c[88]]= _0x48a9x24[_0x9f2c[144]];bill[_0x48a9x24[_0x9f2c[144]]]&& (bill[_0x48a9x24[_0x9f2c[144]]][_0x9f2c[88]]= _0x48a9x24[_0x9f2c[153]]);ami[_0x9f2c[148]](_0x9f2c[131],_[_0x9f2c[147]](bill[_0x48a9x24[_0x9f2c[153]]]));delete bill[_0x48a9x24[_0x9f2c[153]]][_0x9f2c[93]];delete bill[_0x48a9x24[_0x9f2c[153]]][_0x9f2c[139]];_0x48a9x24[_0x9f2c[98]]= bill[_0x48a9x24[_0x9f2c[153]]][_0x9f2c[98]]|| null};_0x48a9x24[_0x9f2c[104]]= _0x48a9x24[_0x9f2c[154]][_0x9f2c[102]](/\/|-/)[1];addToQueue(_0x9f2c[152],_0x48a9x24,true)}catch(err){logger[_0x9f2c[27]](_0x9f2c[155],err)}});ami[_0x9f2c[74]](_0x9f2c[156],function(_0x48a9x24){try{addToQueue(_0x9f2c[156],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[157],err)}});ami[_0x9f2c[74]](_0x9f2c[115],function(_0x48a9x24){try{if(bill[_0x48a9x24[_0x9f2c[88]]]){var _0x48a9x28=_0x48a9x24[_0x9f2c[114]][_0x9f2c[102]](/\/|-/)[1];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[115]][_0x48a9x28]= bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[115]][_0x48a9x28]?false:true};addToQueue(_0x9f2c[115],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[158],err)}});ami[_0x9f2c[74]](_0x9f2c[159],function(_0x48a9x24){try{addToQueue(_0x9f2c[159],_0x48a9x24)}catch(err){faxLogger[_0x9f2c[27]](_0x9f2c[160],err)}});ami[_0x9f2c[74]](_0x9f2c[161],function(_0x48a9x24){try{addToQueue(_0x9f2c[161],_0x48a9x24)}catch(err){faxLogger[_0x9f2c[27]](_0x9f2c[162],err)}});ami[_0x9f2c[74]](_0x9f2c[163],function(_0x48a9x24){try{addToQueue(_0x9f2c[163],_0x48a9x24)}catch(err){faxLogger[_0x9f2c[27]](_0x9f2c[164],err)}});amiAction({action:_0x9f2c[165]});var applications=[_0x9f2c[166],_0x9f2c[98],_0x9f2c[167],_0x9f2c[168],_0x9f2c[169]];var dispositions=[_0x9f2c[170],_0x9f2c[171],_0x9f2c[171],_0x9f2c[170],_0x9f2c[170],_0x9f2c[170],_0x9f2c[172],_0x9f2c[173],_0x9f2c[171],_0x9f2c[171],_0x9f2c[171]];function newchannel(_0x48a9x24){if(!bill[_0x48a9x24[_0x9f2c[88]]]&&  !bill[_0x48a9x24[_0x9f2c[96]]]){bill[_0x48a9x24[_0x9f2c[88]]]= {uniqueid:_0x48a9x24[_0x9f2c[88]],linkedid:_0x48a9x24[_0x9f2c[96]],type:_0x9f2c[174],tag:_0x9f2c[175],accountcode:_0x48a9x24[_0x9f2c[176]],source:_0x48a9x24[_0x9f2c[177]],destination:_0x48a9x24[_0x9f2c[178]],destinationcontext:_0x48a9x24[_0x9f2c[179]],callerid:util[_0x9f2c[59]](_0x9f2c[180],_0x48a9x24[_0x9f2c[181]],_0x48a9x24[_0x9f2c[177]]),channel:_0x48a9x24[_0x9f2c[182]],destinationchannel:_0x9f2c[183],lastapplication:_0x9f2c[183],lastdata:_0x9f2c[183],starttime:moment()[_0x9f2c[59]](_0x9f2c[58]),answertime:_0x9f2c[183],endtime:_0x9f2c[183],duration:0,billableseconds:0,disposition:dispositions[_[_0x9f2c[185]](_0x48a9x24[_0x9f2c[184]])],amaflags:_0x9f2c[186],unmanaged:false,calleridnum:_0x48a9x24[_0x9f2c[177]],calleridname:_0x48a9x24[_0x9f2c[181]],dialend:{}}}}function newstate(_0x48a9x24){if(bill[_0x48a9x24[_0x9f2c[96]]]&& _0x48a9x24[_0x9f2c[88]]!== _0x48a9x24[_0x9f2c[96]]&& _0x48a9x24[_0x9f2c[184]]=== _0x9f2c[187]){bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[188]]= moment()[_0x9f2c[59]](_0x9f2c[58]);delete bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[93]];bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[189]]= dispositions[_[_0x9f2c[185]](_0x48a9x24[_0x9f2c[184]])];if(_[_0x9f2c[193]]([_0x9f2c[190],_0x9f2c[191]],bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[192]])){bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[176]]= _0x48a9x24[_0x9f2c[176]]};if(!_[_0x9f2c[193]]([_0x9f2c[194],_0x9f2c[191]],bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[192]])){bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[195]]= _0x48a9x24[_0x9f2c[196]];bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[197]]= util[_0x9f2c[59]](_0x9f2c[180],_0x48a9x24[_0x9f2c[198]],_0x48a9x24[_0x9f2c[196]])};bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[96]]= _0x48a9x24[_0x9f2c[88]];bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[100]]= _0x48a9x24[_0x9f2c[182]];bill[_0x48a9x24[_0x9f2c[96]]][_0x9f2c[199]]= false}}function newexten(_0x48a9x24,_0x48a9x2e){if(bill[_0x48a9x24[_0x9f2c[88]]]){_0x48a9x24[_0x9f2c[200]]= _0x48a9x24[_0x9f2c[200]][_0x9f2c[201]]();if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[97]]=== _0x9f2c[98]|| bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[99]]=== _0x9f2c[98]){if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]]&&  !bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[149]]){if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[202]]){ami[_0x9f2c[148]](_0x9f2c[203],_[_0x9f2c[147]](bill[_0x48a9x24[_0x9f2c[88]]]))}else {if(!bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]= true;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[139]]= _0x9f2c[204]};ami[_0x9f2c[148]](_0x9f2c[205],_[_0x9f2c[147]](bill[_0x48a9x24[_0x9f2c[88]]]))}};bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[99]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[202]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[139]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[206]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[207]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[208]]= null};delete bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]];if(!_0x48a9x2e){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[97]]= _0x48a9x24[_0x9f2c[200]];if(_[_0x9f2c[193]](applications,_0x48a9x24[_0x9f2c[200]])){if(_0x48a9x24[_0x9f2c[200]]=== _0x9f2c[166]){var _0x48a9x2f=_0x48a9x24[_0x9f2c[209]][_0x9f2c[201]]();if(_[_0x9f2c[211]](_0x48a9x2f,_0x9f2c[210])){_0x48a9x2f= _0x48a9x2f[_0x9f2c[102]](_0x9f2c[212]);var _0x48a9x30=_0x48a9x2f[0][_0x9f2c[213]](/cdr\((.*)\)/);if(_0x48a9x30){bill[_0x48a9x24[_0x9f2c[88]]][_0x48a9x30[1]]= _0x48a9x2f[1];if(_0x48a9x30[1]=== _0x9f2c[192]&& _0x48a9x2f[1]=== _0x9f2c[191]){var _0x48a9x31=bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[182]][_0x9f2c[102]](/\/|-/)[1];activeTrunks[_0x48a9x31]&& (bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[195]]= activeTrunks[_0x48a9x31])}}}else {if(_[_0x9f2c[211]](_0x48a9x2f,_0x9f2c[214])){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[177]]= _0x48a9x2f[_0x9f2c[102]](_0x9f2c[212])[1];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[197]]= util[_0x9f2c[59]](_0x9f2c[180],bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[181]],bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[177]]);bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[192]]=== _0x9f2c[191]&& (bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[215]]= bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[177]])}else {if(_[_0x9f2c[211]](_0x48a9x2f,_0x9f2c[216])){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[181]]= _0x48a9x2f[_0x9f2c[102]](_0x9f2c[212])[1];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[197]]= util[_0x9f2c[59]](_0x9f2c[180],bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[181]],bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[177]])}}}};bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[217]]= _0x48a9x24[_0x9f2c[200]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[103]]= _0x48a9x24[_0x9f2c[209]]};if(_0x48a9x24[_0x9f2c[200]]=== _0x9f2c[98]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[98]]= _0x48a9x24[_0x9f2c[209]][_0x9f2c[102]](_0x9f2c[101])[0];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]]= true}}else {bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[99]]= _0x48a9x24[_0x9f2c[200]][_0x9f2c[201]]();if(_0x48a9x24[_0x9f2c[200]]=== _0x9f2c[98]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[98]]= _0x48a9x24[_0x9f2c[98]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]]= true}}}}function varset(_0x48a9x24){if(_0x48a9x24[_0x9f2c[220]][_0x9f2c[219]](_0x9f2c[218])){logger[_0x9f2c[73]](_0x9f2c[221],_0x48a9x24[_0x9f2c[88]],_0x48a9x24[_0x9f2c[222]]);videoOnUrls[_0x48a9x24[_0x9f2c[88]]]= _0x48a9x24[_0x9f2c[222]][_0x9f2c[223]](/\\/g,_0x9f2c[183])}else {if(_0x48a9x24[_0x9f2c[220]][_0x9f2c[219]](_0x9f2c[89])){extraVars[_0x48a9x24[_0x9f2c[88]]]= _0x48a9x24[_0x9f2c[222]]}};if(bill[_0x48a9x24[_0x9f2c[88]]]){if(_0x48a9x24[_0x9f2c[220]][_0x9f2c[219]](_0x9f2c[224])){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]= true;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[202]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[149]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[139]]= _0x48a9x24[_0x9f2c[222]][_0x9f2c[201]]();if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[139]]=== _0x9f2c[225]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[63]]= true;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[179]]= _0x48a9x24[_0x9f2c[179]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[178]]= _0x48a9x24[_0x9f2c[178]];ami[_0x9f2c[148]](_0x9f2c[205],_[_0x9f2c[147]](bill[_0x48a9x24[_0x9f2c[88]]]));delete bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[63]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[202]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[139]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[206]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[207]]= null;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[208]]= null}}}}function queuecallerabandon(_0x48a9x24){if(bill[_0x48a9x24[_0x9f2c[88]]]&&  !bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[202]]= true;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[149]]= false;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[206]]= _0x48a9x24[_0x9f2c[206]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[207]]= _0x48a9x24[_0x9f2c[207]];bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[208]]= _0x48a9x24[_0x9f2c[208]]}}function hangup(_0x48a9x24){if(bill[_0x48a9x24[_0x9f2c[88]]]){var _0x48a9x35=moment();bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[226]]= _0x48a9x35[_0x9f2c[59]](_0x9f2c[58]);bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[227]]= _0x48a9x35[_0x9f2c[230]](bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[228]],_0x9f2c[229]);if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[188]]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[231]]= _0x48a9x35[_0x9f2c[230]](bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[188]],_0x9f2c[229])};ami[_0x9f2c[148]](_0x9f2c[78],bill[_0x48a9x24[_0x9f2c[88]]]);if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[93]]|| (bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[149]]&&  !bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[188]])){if(bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[202]]){ami[_0x9f2c[148]](_0x9f2c[203],bill[_0x48a9x24[_0x9f2c[88]]])}else {if(!bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]){bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[199]]= true;bill[_0x48a9x24[_0x9f2c[88]]][_0x9f2c[139]]= _0x9f2c[204]};ami[_0x9f2c[148]](_0x9f2c[205],bill[_0x48a9x24[_0x9f2c[88]]])}};delete bill[_0x48a9x24[_0x9f2c[88]]]}}ami[_0x9f2c[74]](_0x9f2c[205],function(_0x48a9x24){try{addToQueue(_0x9f2c[232],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[233],err)}});ami[_0x9f2c[74]](_0x9f2c[203],function(_0x48a9x24){try{addToQueue(_0x9f2c[234],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[235],err)}});ami[_0x9f2c[74]](_0x9f2c[236],function(_0x48a9x24){try{newchannel(_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[237],err)}});ami[_0x9f2c[74]](_0x9f2c[238],function(_0x48a9x24){try{newstate(_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[239],err)}});ami[_0x9f2c[74]](_0x9f2c[240],function(_0x48a9x24){try{newexten(_0x48a9x24,false)}catch(err){logger[_0x9f2c[27]](_0x9f2c[241],err)}});ami[_0x9f2c[74]](_0x9f2c[242],function(_0x48a9x24){try{varset(_0x48a9x24);addToQueue(_0x9f2c[242],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[243],err)}});ami[_0x9f2c[74]](_0x9f2c[234],function(_0x48a9x24){try{queuecallerabandon(_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[244],err)}});ami[_0x9f2c[74]](_0x9f2c[245],function(_0x48a9x24){try{delete videoOnUrls[_0x48a9x24[_0x9f2c[88]]];delete extraVars[_0x48a9x24[_0x9f2c[88]]];hangup(_0x48a9x24);addToQueue(_0x9f2c[245],_0x48a9x24)}catch(err){logger[_0x9f2c[27]](_0x9f2c[246],err)}});function handlePause(_0x48a9x37,_0x48a9x38){return function(_0x48a9x39){var _0x48a9x3a=_0x48a9x39[_0x9f2c[247]];var _0x48a9x3b=false;var _0x48a9x3c,_0x48a9x3d;_0x48a9x3c= _0x48a9x3d= _0x48a9x37[_0x9f2c[248]][_0x9f2c[192]]|| _0x48a9x38[_0x9f2c[249]]|| _0x48a9x38[_0x9f2c[250]];if(_[_0x9f2c[211]](_0x48a9x3d,_0x9f2c[251])){_0x48a9x3d= _0x48a9x3d[_0x9f2c[252]](1);_0x48a9x3b= true};var _0x48a9x3e={id:_0x48a9x39[_0x9f2c[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x48a9x3c,lastPauseAt:moment()[_0x9f2c[59]](_0x9f2c[58])};return _0x48a9x39[_0x9f2c[269]](_0x48a9x3e)[_0x9f2c[32]](function(_0x48a9x44){if(_0x48a9x44){return events[_0x9f2c[268]](_[_0x9f2c[267]]({newValues:_0x48a9x3e},_0x48a9x44[_0x9f2c[266]]))}})[_0x9f2c[32]](function(){var _0x48a9x43=moment()[_0x9f2c[59]](_0x9f2c[58]);return models[_0x9f2c[264]][_0x9f2c[265]]({duration:moment(_0x48a9x43)[_0x9f2c[230]](moment(_0x48a9x3a),_0x9f2c[229]),exitAt:_0x48a9x43},{where:{membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[258],exitAt:null}})})[_0x9f2c[32]](function(){var _0x48a9x3f=(_0x48a9x3e[_0x9f2c[254]]&&  !_0x48a9x3b)?channels:_[_0x9f2c[255]](channels,function(_0x48a9x40){return _0x48a9x40!== _0x9f2c[20]});var _0x48a9x41=[];_0x48a9x3f[_0x9f2c[31]](function(_0x48a9x42){_0x48a9x41[_0x9f2c[262]]({channel:_0x48a9x42,membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[258],enterAt:moment()[_0x9f2c[59]](_0x9f2c[58]),data1:_0x48a9x3d,data2:_0x48a9x38[_0x9f2c[259]],data4:_0x48a9x3d,role:_0x48a9x39[_0x9f2c[260]],internal:_0x48a9x39[_0x9f2c[174]],uniqueid:_0x48a9x38[_0x9f2c[261]]})});return models[_0x9f2c[264]][_0x9f2c[263]](_0x48a9x41,{raw:true,individualHooks:true})})}}function handleUnpause(_0x48a9x37,_0x48a9x38){return function(_0x48a9x39){var _0x48a9x3e;if(!_0x48a9x37[_0x9f2c[248]]){_0x48a9x37[_0x9f2c[248]]= {}};if(_0x48a9x37[_0x9f2c[248]][_0x9f2c[192]]!== _0x9f2c[270]){events[_0x9f2c[272]](_0x48a9x39[_0x9f2c[29]],_0x48a9x39[_0x9f2c[271]],false)};switch(_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]]){case _0x9f2c[20]:_0x48a9x3e= {id:_0x48a9x39[_0x9f2c[253]],voicePause:false};return _0x48a9x39[_0x9f2c[269]](_0x48a9x3e)[_0x9f2c[32]](function(_0x48a9x44){return events[_0x9f2c[268]](_[_0x9f2c[267]]({newValues:_0x48a9x3e},_0x48a9x44[_0x9f2c[266]]))})[_0x9f2c[32]](function(){return models[_0x9f2c[264]][_0x9f2c[274]]({where:{channel:_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]],membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[258],exitAt:null}})})[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[273]}))[_0x9f2c[32]](function(_0x48a9x46){return _0x48a9x46[_0x9f2c[269]]({exitAt:moment()[_0x9f2c[59]](_0x9f2c[58])})})[_0x9f2c[32]](function(){return _0x48a9x39});case _0x9f2c[21]:;case _0x9f2c[22]:;case _0x9f2c[16]:;case _0x9f2c[23]:;case _0x9f2c[24]:var _0x48a9x47={};_0x48a9x47[util[_0x9f2c[59]](_0x9f2c[275],_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]],_0x9f2c[276])]= false;return _0x48a9x39[_0x9f2c[269]](_0x48a9x47)[_0x9f2c[32]](function(_0x48a9x39){_0x48a9x47[_0x9f2c[253]]= _0x48a9x39[_0x9f2c[253]];return events[_0x9f2c[268]](_[_0x9f2c[267]]({newValues:_0x48a9x47},_0x48a9x39[_0x9f2c[266]]))})[_0x9f2c[32]](function(){return models[_0x9f2c[264]][_0x9f2c[274]]({where:{channel:_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]],membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[258],exitAt:null}})})[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[273]}))[_0x9f2c[32]](function(_0x48a9x46){return _0x48a9x46[_0x9f2c[269]]({exitAt:moment()[_0x9f2c[59]](_0x9f2c[58])})})[_0x9f2c[32]](function(){return _0x48a9x39});default:_0x48a9x3e= {id:_0x48a9x39[_0x9f2c[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0x48a9x39[_0x9f2c[269]](_0x48a9x3e)[_0x9f2c[32]](function(_0x48a9x44){return events[_0x9f2c[268]](_[_0x9f2c[267]]({newValues:_0x48a9x3e},_0x48a9x39[_0x9f2c[266]]))})[_0x9f2c[32]](function(){return models[_0x9f2c[264]][_0x9f2c[33]]({where:{membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[258],exitAt:null}})})[_0x9f2c[32]](function(_0x48a9x48){var _0x48a9x49=[];_0x48a9x48[_0x9f2c[31]](function(_0x48a9x4a){_0x48a9x49[_0x9f2c[262]](_0x48a9x4a[_0x9f2c[269]]({exitAt:moment()[_0x9f2c[59]](_0x9f2c[58])}))});return BPromise[_0x9f2c[277]](_0x48a9x49)})[_0x9f2c[32]](function(){return _0x48a9x39})}}}function queueAddUpdate(_0x48a9x4c,_0x48a9x4d){return models[_0x9f2c[278]][_0x9f2c[274]]({where:{queue:_0x48a9x4c,membername:_0x48a9x4d}})[_0x9f2c[32]](function(_0x48a9x4e){if(_0x48a9x4e){return _0x48a9x4e[_0x9f2c[269]]({logged:true,loggedAt:moment()[_0x9f2c[59]](_0x9f2c[58])})}})}function handleLogin(_0x48a9x37,_0x48a9x38){return function(_0x48a9x39){return BPromise[_0x9f2c[288]]()[_0x9f2c[32]](function(){return events[_0x9f2c[268]](_[_0x9f2c[287]]({newValues:_0x48a9x39[_0x9f2c[266]]},_0x48a9x39[_0x9f2c[266]]))})[_0x9f2c[32]](function(){return _0x48a9x39[_0x9f2c[286]]()})[_0x9f2c[32]](function(voiceQueues){var _0x48a9x50=[];voiceQueues[_0x9f2c[31]](function(_0x48a9x51){_0x48a9x50[_0x9f2c[262]](amiAction({action:_0x9f2c[283],queue:_0x48a9x51[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),membername:_0x48a9x39[_0x9f2c[29]],penalty:_0x48a9x51[_0x9f2c[278]][_0x9f2c[284]],paused:_0x48a9x39[_0x9f2c[285]]})[_0x9f2c[28]](function(_0x48a9x19){if(_0x48a9x19[_0x9f2c[280]]=== _0x9f2c[281]){return queueAddUpdate(_0x48a9x51[_0x9f2c[29]],_0x48a9x39[_0x9f2c[29]])};logger[_0x9f2c[27]](_0x9f2c[282],_0x48a9x51[_0x9f2c[29]],_0x48a9x19)}))});return _0x48a9x50})[_0x9f2c[277]]()[_0x9f2c[32]](function(){return models[_0x9f2c[264]][_0x9f2c[33]]({where:{membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[279],exitAt:null}})})[_0x9f2c[32]](function(_0x48a9x48){var _0x48a9x49=[];_0x48a9x48[_0x9f2c[31]](function(_0x48a9x4a){_0x48a9x49[_0x9f2c[262]](_0x48a9x4a[_0x9f2c[269]]({exitAt:moment()[_0x9f2c[59]](_0x9f2c[58])}))});return BPromise[_0x9f2c[277]](_0x48a9x49)})[_0x9f2c[32]](function(){var _0x48a9x41=[];channels[_0x9f2c[31]](function(_0x48a9x42){_0x48a9x41[_0x9f2c[262]]({channel:_0x48a9x42,membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[279],enterAt:moment()[_0x9f2c[59]](_0x9f2c[58]),role:_0x48a9x39[_0x9f2c[260]],internal:_0x48a9x39[_0x9f2c[174]]})});return models[_0x9f2c[264]][_0x9f2c[263]](_0x48a9x41,{raw:true,individualHooks:true})})[_0x9f2c[32]](function(){return _0x48a9x39})}}function logoutAgent(_0x48a9x39){return BPromise[_0x9f2c[288]]()[_0x9f2c[32]](function(){return events[_0x9f2c[268]](_[_0x9f2c[287]]({newValues:{id:_0x48a9x39[_0x9f2c[253]],online:false}},_0x48a9x39[_0x9f2c[266]],{online:false}))})[_0x9f2c[32]](function(){return models[_0x9f2c[65]][_0x9f2c[33]]()})[_0x9f2c[32]](function(voiceQueues){var _0x48a9x50=[];voiceQueues[_0x9f2c[31]](function(_0x48a9x51){_0x48a9x50[_0x9f2c[262]](amiAction({action:_0x9f2c[289],queue:_0x48a9x51[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]])})[_0x9f2c[28]](function(_0x48a9x19){}))});return BPromise[_0x9f2c[277]](_0x48a9x50)})[_0x9f2c[32]](function(_0x48a9x53){return models[_0x9f2c[264]][_0x9f2c[33]]({where:{membername:_0x48a9x39[_0x9f2c[29]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),type:_0x9f2c[279],exitAt:null}})})[_0x9f2c[32]](function(_0x48a9x48){var _0x48a9x49=[];_0x48a9x48[_0x9f2c[31]](function(_0x48a9x4a){_0x48a9x49[_0x9f2c[262]](_0x48a9x4a[_0x9f2c[269]]({exitAt:moment()[_0x9f2c[59]](_0x9f2c[58])}))});return BPromise[_0x9f2c[277]](_0x48a9x49)})}function handleLogout(_0x48a9x37,_0x48a9x38){return function(_0x48a9x39){return BPromise[_0x9f2c[288]]()[_0x9f2c[32]](function(){if(_0x48a9x39[_0x9f2c[260]]=== _0x9f2c[290]){return logoutAgent(_0x48a9x39)}})[_0x9f2c[32]](function(){return _0x48a9x39[_0x9f2c[269]]({online:false})})}}function handleQueueAdd(_0x48a9x37,_0x48a9x38){return function(_0x48a9x39){var _0x48a9x56=[];switch(_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]]){case _0x9f2c[20]:_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x56[_0x9f2c[262]](models[_0x9f2c[278]][_0x9f2c[292]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],queue:_0x48a9x4c},defaults:{queue:_0x48a9x4c,location:util[_0x9f2c[59]](_0x9f2c[291],_0x48a9x39[_0x9f2c[29]]),membername:_0x48a9x39[_0x9f2c[29]],UserId:_0x48a9x39[_0x9f2c[253]],penalty:_0x48a9x38[_0x9f2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0x9f2c[277]](_0x48a9x56)[_0x9f2c[32]](function(){var _0x48a9x50=[];_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x50[_0x9f2c[262]](amiAction({action:_0x9f2c[283],queue:_0x48a9x4c,paused:_0x48a9x39[_0x9f2c[254]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]]),membername:_0x48a9x39[_0x9f2c[29]]})[_0x9f2c[28]](function(_0x48a9x19){if(_0x48a9x19[_0x9f2c[280]]=== _0x9f2c[281]){return queueAddUpdate(_0x48a9x4c,_0x48a9x39[_0x9f2c[29]])};logger[_0x9f2c[27]](_0x9f2c[294],_0x48a9x4c,_0x48a9x19)}))});return BPromise[_0x9f2c[277]](_0x48a9x50)});case _0x9f2c[21]:_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x56[_0x9f2c[262]](models[_0x9f2c[295]][_0x9f2c[292]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],ChatQueueId:_0x48a9x4c[_0x9f2c[253]]},defaults:{ChatQueueId:_0x48a9x4c[_0x9f2c[253]],queue:_0x48a9x4c[_0x9f2c[29]],UserId:_0x48a9x39[_0x9f2c[253]],penalty:_0x48a9x38[_0x9f2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0x9f2c[277]](_0x48a9x56);case _0x9f2c[22]:_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x56[_0x9f2c[262]](models[_0x9f2c[296]][_0x9f2c[292]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],MailQueueId:_0x48a9x4c[_0x9f2c[253]]},defaults:{MailQueueId:_0x48a9x4c[_0x9f2c[253]],queue:_0x48a9x4c[_0x9f2c[29]],UserId:_0x48a9x39[_0x9f2c[253]],penalty:_0x48a9x38[_0x9f2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0x9f2c[277]](_0x48a9x56);case _0x9f2c[23]:_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x56[_0x9f2c[262]](models[_0x9f2c[297]][_0x9f2c[292]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],SmsQueueId:_0x48a9x4c[_0x9f2c[253]]},defaults:{SmsQueueId:_0x48a9x4c[_0x9f2c[253]],queue:_0x48a9x4c[_0x9f2c[29]],UserId:_0x48a9x39[_0x9f2c[253]],penalty:_0x48a9x38[_0x9f2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0x9f2c[277]](_0x48a9x56);case _0x9f2c[24]:_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x56[_0x9f2c[262]](models[_0x9f2c[298]][_0x9f2c[292]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],OpenchannelQueueId:_0x48a9x4c[_0x9f2c[253]]},defaults:{OpenchannelQueueId:_0x48a9x4c[_0x9f2c[253]],queue:_0x48a9x4c[_0x9f2c[29]],UserId:_0x48a9x39[_0x9f2c[253]],penalty:_0x48a9x38[_0x9f2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0x9f2c[277]](_0x48a9x56);case _0x9f2c[16]:_0x48a9x37[_0x9f2c[248]][_0x9f2c[293]][_0x9f2c[31]](function(_0x48a9x4c){_0x48a9x56[_0x9f2c[262]](models[_0x9f2c[299]][_0x9f2c[292]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],FaxQueueId:_0x48a9x4c[_0x9f2c[253]]},defaults:{faxQueueId:_0x48a9x4c[_0x9f2c[253]],queue:_0x48a9x4c[_0x9f2c[29]],UserId:_0x48a9x39[_0x9f2c[253]],penalty:_0x48a9x38[_0x9f2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0x9f2c[277]](_0x48a9x56);default:}}}function handleQueueRemove(_0x48a9x37,_0x48a9x38){return function(_0x48a9x39){switch(_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]]){case _0x9f2c[20]:return models[_0x9f2c[278]][_0x9f2c[301]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],queue:_0x48a9x37[_0x9f2c[248]][_0x9f2c[98]]},individualHooks:true,raw:true})[_0x9f2c[32]](function(){return amiAction({action:_0x9f2c[289],queue:_0x48a9x37[_0x9f2c[248]][_0x9f2c[98]],interface:util[_0x9f2c[59]](_0x9f2c[256],_0x9f2c[257],_0x48a9x39[_0x9f2c[29]])})})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[300],_0x48a9x19[_0x9f2c[26]])});case _0x9f2c[21]:return models[_0x9f2c[295]][_0x9f2c[274]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],ChatQueueId:_0x48a9x37[_0x9f2c[248]][_0x9f2c[303]]}})[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x58){return _0x48a9x58[_0x9f2c[301]]()}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[302],_0x48a9x19)});case _0x9f2c[22]:return models[_0x9f2c[296]][_0x9f2c[274]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],MailQueueId:_0x48a9x37[_0x9f2c[248]][_0x9f2c[303]]}})[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x58){return _0x48a9x58[_0x9f2c[301]]()}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[304],_0x48a9x19)});case _0x9f2c[23]:return models[_0x9f2c[297]][_0x9f2c[274]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],SmsQueueId:_0x48a9x37[_0x9f2c[248]][_0x9f2c[303]]}})[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x58){return _0x48a9x58[_0x9f2c[301]]()}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[305],_0x48a9x19)});case _0x9f2c[24]:return models[_0x9f2c[298]][_0x9f2c[274]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],OpenchannelQueueId:_0x48a9x37[_0x9f2c[248]][_0x9f2c[303]]}})[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x58){return _0x48a9x58[_0x9f2c[301]]()}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[306],_0x48a9x19)});case _0x9f2c[16]:return models[_0x9f2c[299]][_0x9f2c[274]]({where:{UserId:_0x48a9x39[_0x9f2c[253]],FaxQueueId:_0x48a9x37[_0x9f2c[248]][_0x9f2c[303]]}})[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x58){return _0x48a9x58[_0x9f2c[301]]()}})[_0x9f2c[28]](function(_0x48a9x19){faxLogger[_0x9f2c[27]](_0x9f2c[307],_0x48a9x19)});default:}}}function handleEntityNotFound(_0x48a9x5a){return function(_0x48a9x5b){if(!_0x48a9x5b){throw _0x48a9x5a};return _0x48a9x5b}}function onSave(_0x48a9x38,_0x48a9x37){switch(_0x48a9x38[_0x9f2c[29]]){case _0x9f2c[311]:return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x37[_0x9f2c[248]][_0x9f2c[290]])[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[308]}))[_0x9f2c[32]](handlePause(_0x48a9x37,_0x48a9x38));case _0x9f2c[312]:return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x37[_0x9f2c[248]][_0x9f2c[290]])[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[308]}))[_0x9f2c[32]](handleUnpause(_0x48a9x37,_0x48a9x38));case _0x9f2c[313]:return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x38[_0x9f2c[250]])[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[308]}))[_0x9f2c[32]](handleLogin(_0x48a9x37,_0x48a9x38))[_0x9f2c[32]](function(_0x48a9x5d){return _0x48a9x5d});case _0x9f2c[314]:return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x38[_0x9f2c[250]])[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[308]}))[_0x9f2c[32]](handleUnpause(_0x48a9x37,_0x48a9x38))[_0x9f2c[32]](handleLogout(_0x48a9x37,_0x48a9x38));case _0x9f2c[283]:return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x37[_0x9f2c[248]][_0x9f2c[290]])[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[308]}))[_0x9f2c[32]](handleQueueAdd(_0x48a9x37,_0x48a9x38))[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]]!== _0x9f2c[20]){return events[_0x9f2c[316]](_0x48a9x58,_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]])}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[315],_0x48a9x19[_0x9f2c[26]])});case _0x9f2c[289]:return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x37[_0x9f2c[248]][_0x9f2c[290]])[_0x9f2c[32]](handleEntityNotFound({message:_0x9f2c[308]}))[_0x9f2c[32]](handleQueueRemove(_0x48a9x37,_0x48a9x38))[_0x9f2c[32]](function(_0x48a9x58){if(_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]]!== _0x9f2c[20]){return events[_0x9f2c[318]](_0x48a9x58,_0x48a9x37[_0x9f2c[248]][_0x9f2c[182]])}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[317],_0x48a9x19[_0x9f2c[26]])});default:throw {message:_0x9f2c[319]}}}function clean(channels){removeInactiveCalls();_[_0x9f2c[31]](channels,function(_0x48a9x42){removeExpiredApplications(_0x48a9x42)})}function removeInactiveCalls(){logger[_0x9f2c[73]](_0x9f2c[320]);var _0x48a9x60=[],_0x48a9x61=[],_0x48a9x62=moment()[_0x9f2c[59]](_0x9f2c[58]);return amiAction({action:_0x9f2c[337],command:_0x9f2c[338]})[_0x9f2c[32]](function(_0x48a9x6a){var _0x48a9x6b;if(_0x48a9x6a&& _0x48a9x6a[_0x9f2c[331]]){var _0x48a9x58=_0x48a9x6a[_0x9f2c[331]][_0x9f2c[102]](_0x9f2c[332]);_[_0x9f2c[31]](_0x48a9x58,function(_0x48a9x40){if(_0x48a9x40){_0x48a9x6b= _0x48a9x40[_0x9f2c[102]](_0x9f2c[333]);_0x48a9x6b[_0x9f2c[334]]=== 14&& _0x48a9x61[_0x9f2c[262]](_0x48a9x6b[_0x9f2c[335]]())}})};return models[_0x9f2c[336]][_0x9f2c[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0x9f2c[32]](function(_0x48a9x69){_[_0x9f2c[31]](_0x48a9x69,function(_0x48a9x66){if(!_[_0x9f2c[193]](_0x48a9x61,_0x48a9x66[_0x9f2c[88]])){_0x48a9x60[_0x9f2c[262]](_0x48a9x66[_0x9f2c[269]]({queuecallerleaveAt:_0x48a9x62,queuecallerexitAt:_0x48a9x62,queuecallerexit:true,queuecallerexitreason:_0x9f2c[324]}))}});return models[_0x9f2c[330]][_0x9f2c[33]]({where:{leaveAt:null}})})[_0x9f2c[32]](function(_0x48a9x68){_[_0x9f2c[31]](_0x48a9x68,function(_0x48a9x66){if(!_[_0x9f2c[193]](_0x48a9x61,_0x48a9x66[_0x9f2c[88]])){_0x48a9x60[_0x9f2c[262]](_0x48a9x66[_0x9f2c[269]]({leaveAt:_0x48a9x62,network:_0x9f2c[328]}))}});return models[_0x9f2c[329]][_0x9f2c[33]]({where:{endtime:null}})})[_0x9f2c[32]](function(_0x48a9x67){_[_0x9f2c[31]](_0x48a9x67,function(_0x48a9x66){if(!_[_0x9f2c[193]](_0x48a9x61,_0x48a9x66[_0x9f2c[88]])){_0x48a9x60[_0x9f2c[262]](_0x48a9x66[_0x9f2c[269]]({endtime:_0x48a9x62,dialstatus:_0x9f2c[325]}))}});return models[_0x9f2c[327]][_0x9f2c[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0x9f2c[32]](function(_0x48a9x65){_[_0x9f2c[31]](_0x48a9x65,function(_0x48a9x66){if(!_[_0x9f2c[193]](_0x48a9x61,_0x48a9x66[_0x9f2c[88]])){_0x48a9x60[_0x9f2c[262]](_0x48a9x66[_0x9f2c[269]]({lastevent:_0x9f2c[199],agentringnoanswer:true,agentringnoanswerAt:_0x48a9x62,reason:_0x9f2c[325]}))}});return models[_0x9f2c[264]][_0x9f2c[33]]({where:{type:_0x9f2c[326],enterAt:{$ne:null},exitAt:null}})})[_0x9f2c[32]](function(_0x48a9x63){_[_0x9f2c[31]](_0x48a9x63,function(_0x48a9x64){if(!_[_0x9f2c[193]](_0x48a9x61,_0x48a9x64[_0x9f2c[88]])){_0x48a9x60[_0x9f2c[262]](_0x48a9x64[_0x9f2c[269]]({exitAt:_0x48a9x64[_0x9f2c[323]],data4:_0x9f2c[324]}))}});return _0x48a9x60})[_0x9f2c[277]]()[_0x9f2c[32]](function(){logger[_0x9f2c[73]](_0x9f2c[322])})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[321],_0x48a9x19[_0x9f2c[26]])})}function removeExpiredApplications(_0x48a9x42){return models[_0x9f2c[350]+ _0x48a9x42+ _0x9f2c[351]][_0x9f2c[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0x9f2c[32]](function(_0x48a9x6d){var _0x48a9x6e,_0x48a9x6f=[],_0x48a9x70=[];_[_0x9f2c[31]](_0x48a9x6d,function(_0x48a9x71){_0x48a9x6e= moment(_0x48a9x71[_0x9f2c[344]])[_0x9f2c[343]](_0x48a9x71[_0x9f2c[342]],_0x9f2c[229]);if(moment()[_0x9f2c[345]](_0x48a9x6e)){_0x48a9x70[_0x9f2c[262]](_0x48a9x71[_0x9f2c[346]]);_0x48a9x6f[_0x9f2c[262]](_0x48a9x71[_0x9f2c[269]]({timeout:true,leaveAt:moment()[_0x9f2c[59]](_0x9f2c[58])}))}});if(_0x48a9x70[_0x9f2c[334]]> 0){_0x48a9x70= _[_0x9f2c[347]](_0x48a9x70);logger[_0x9f2c[73]](_0x9f2c[348],_0x48a9x70);_0x48a9x6f[_0x9f2c[262]](models[_0x48a9x42+ _0x9f2c[349]][_0x9f2c[265]]({waiting:false},{where:{id:_0x48a9x70},individualHooks:true}))};return _0x48a9x6f})[_0x9f2c[277]]()[_0x9f2c[32]](function(){logger[_0x9f2c[73]](_0x9f2c[339]+ _0x48a9x42+ _0x9f2c[341])})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[339]+ _0x48a9x42+ _0x9f2c[340],_0x48a9x19)})}var channelModels=[_0x9f2c[352],_0x9f2c[353],_0x9f2c[354],_0x9f2c[355],_0x9f2c[356]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0x48a9x74){switch(_0x48a9x74[_0x9f2c[192]]){case _0x9f2c[367]:return models[_0x9f2c[369]][_0x9f2c[368]](_0x9f2c[367])[_0x9f2c[33]]()[_0x9f2c[32]](function(_0x48a9x75){var _0x48a9x76=_0x9f2c[183];var _0x48a9x77=_0x9f2c[358];_0x48a9x75[_0x9f2c[31]](function(_0x48a9x78){_0x48a9x76+= util[_0x9f2c[59]](_0x9f2c[359],_0x48a9x78[_0x9f2c[222]])});fs[_0x9f2c[366]](path[_0x9f2c[361]](config[_0x9f2c[360]],_0x48a9x77),_0x48a9x76,{flags:_0x9f2c[362],mode:parseInt(_0x9f2c[363],8)},function(_0x48a9x19){if(_0x48a9x19){throw _0x48a9x19};amiCommand(_0x9f2c[364]);logger[_0x9f2c[73]](_0x9f2c[365])})})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[357],_0x48a9x19)});case _0x9f2c[374]:return models[_0x9f2c[369]][_0x9f2c[368]](_0x9f2c[374])[_0x9f2c[33]]()[_0x9f2c[32]](function(_0x48a9x79){var _0x48a9x7a=_0x9f2c[183];var _0x48a9x7b=_0x9f2c[371];_0x48a9x79[_0x9f2c[31]](function(_0x48a9x7c){_0x48a9x7a+= util[_0x9f2c[59]](_0x9f2c[372],_0x48a9x7c[_0x9f2c[222]])});fs[_0x9f2c[366]](path[_0x9f2c[361]](config[_0x9f2c[360]],_0x48a9x7b),_0x48a9x7a,{flags:_0x9f2c[362],mode:parseInt(_0x9f2c[363],8)},function(_0x48a9x19){if(_0x48a9x19){throw _0x48a9x19};amiCommand(_0x9f2c[364]);logger[_0x9f2c[73]](_0x9f2c[373])})})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[370],_0x48a9x19)});default:logger[_0x9f2c[27]](_0x9f2c[375],_0x48a9x74[_0x9f2c[192]])}}function amiCommand(_0x48a9x7e){return amiAction({Action:_0x9f2c[337],command:_0x48a9x7e})[_0x9f2c[32]](function(_0x48a9x58){logger[_0x9f2c[73]](_0x9f2c[376],_0x48a9x7e,_0x48a9x58)})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[376],_0x48a9x7e,_0x48a9x19)})}function trunksRewrite(){var _0x48a9x80=_0x9f2c[183];var _0x48a9x81=_0x9f2c[183];var _0x48a9x82=_0x9f2c[377];return models[_0x9f2c[34]][_0x9f2c[33]]({where:{active:true},raw:true})[_0x9f2c[32]](function(_0x48a9x1a){activeTrunks= {};var _0x48a9x83;_0x48a9x1a[_0x9f2c[31]](function(_0x48a9x84){_0x48a9x83= null;activeTrunks[_0x48a9x84[_0x9f2c[29]]]= _0x48a9x84[_0x9f2c[30]];delete _0x48a9x84[_0x9f2c[378]];delete _0x48a9x84[_0x9f2c[344]];delete _0x48a9x84[_0x9f2c[379]];delete _0x48a9x84[_0x9f2c[380]];delete _0x48a9x84[_0x9f2c[83]];if(_0x48a9x84[_0x9f2c[381]]&& _0x48a9x84[_0x9f2c[381]]=== _0x9f2c[382]){_0x48a9x84[_0x9f2c[383]]= _0x9f2c[382];_0x48a9x84[_0x9f2c[384]]= _0x9f2c[382];_0x48a9x84[_0x9f2c[385]]= _0x9f2c[328];_0x48a9x84[_0x9f2c[386]]= _0x9f2c[387];_0x48a9x84[_0x9f2c[388]]= _0x9f2c[389];_0x48a9x84[_0x9f2c[390]]= _0x9f2c[391];_0x48a9x84[_0x9f2c[392]]= _0x9f2c[393]}else {_0x48a9x84[_0x9f2c[381]]= _0x9f2c[328]};if(_0x48a9x84[_0x9f2c[85]]){_0x48a9x81+= util[_0x9f2c[59]](_0x48a9x82,_0x48a9x84[_0x9f2c[85]])};delete _0x48a9x84[_0x9f2c[85]];_0x48a9x80+= util[_0x9f2c[59]](_0x9f2c[394],_0x48a9x84[_0x9f2c[29]]);if(_0x48a9x84[_0x9f2c[395]]){_0x48a9x83= _0x48a9x84[_0x9f2c[395]];delete _0x48a9x84[_0x9f2c[395]]};for(var _0x48a9x30 in _0x48a9x84){if(_0x48a9x84[_0x48a9x30]){switch(_0x48a9x30){case _0x9f2c[398]:var _0x48a9x85=_0x48a9x84[_0x48a9x30][_0x9f2c[102]](_0x9f2c[396]);_0x48a9x85[_0x9f2c[31]](function(_0x48a9x40){_0x48a9x80+= util[_0x9f2c[59]](_0x9f2c[397],_0x48a9x30,_0x48a9x40)});break;default:_0x48a9x80+= util[_0x9f2c[59]](_0x9f2c[397],_0x48a9x30,_0x48a9x84[_0x48a9x30])}}};if(_0x48a9x83){_0x48a9x80+= util[_0x9f2c[59]](_0x9f2c[399],_0x48a9x83)}});fs[_0x9f2c[366]](path[_0x9f2c[361]](config[_0x9f2c[360]],_0x9f2c[400]),_0x48a9x80,{flags:_0x9f2c[362],mode:parseInt(_0x9f2c[363],8)},function(_0x48a9x19){if(_0x48a9x19){throw _0x48a9x19};logger[_0x9f2c[73]](_0x9f2c[401]);fs[_0x9f2c[366]](path[_0x9f2c[361]](config[_0x9f2c[360]],_0x9f2c[402]),_0x48a9x81,{flags:_0x9f2c[362],mode:parseInt(_0x9f2c[363],8)},function(_0x48a9x19){if(_0x48a9x19){throw _0x48a9x19};amiCommand(_0x9f2c[364]);logger[_0x9f2c[73]](_0x9f2c[403])})})})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x48a9x19)})}function rewriteContexts(_0x48a9x74,_0x48a9x87){return function(){var _0x48a9x88=_0x9f2c[183];if(!_0x48a9x87){_0x48a9x88= util[_0x9f2c[59]](_0x9f2c[404],_0x48a9x74[_0x9f2c[29]],_0x48a9x74[_0x9f2c[29]])};return models[_0x9f2c[409]][_0x9f2c[33]]({where:{id:{$ne:_0x48a9x74[_0x9f2c[253]]}}})[_0x9f2c[32]](function(_0x48a9x89){_0x48a9x89[_0x9f2c[31]](function(_0x48a9x84){_0x48a9x88+= util[_0x9f2c[59]](_0x9f2c[404],_0x48a9x84[_0x9f2c[29]],_0x48a9x84[_0x9f2c[29]])});fs[_0x9f2c[366]](path[_0x9f2c[361]](config[_0x9f2c[360]],_0x9f2c[406]),_0x48a9x88,{flags:_0x9f2c[362],mode:parseInt(_0x9f2c[363],8)},function(_0x48a9x19){if(_0x48a9x19){throw _0x48a9x19};logger[_0x9f2c[73]](_0x9f2c[407]);amiCommand(_0x9f2c[408])})})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[405],_0x48a9x19)})}}function createHangup(_0x48a9x74){return function(){logger[_0x9f2c[73]](_0x9f2c[410],_0x48a9x74[_0x9f2c[29]]);var _0x48a9x47=[{context:_0x48a9x74[_0x9f2c[29]],exten:_0x9f2c[411],priority:_0x9f2c[412],VoiceContextId:_0x48a9x74[_0x9f2c[253]],type:_0x9f2c[413],app:_0x9f2c[414]},{context:_0x48a9x74[_0x9f2c[29]],exten:_0x9f2c[415],priority:_0x9f2c[412],VoiceContextId:_0x48a9x74[_0x9f2c[253]],type:_0x9f2c[413],app:_0x9f2c[414]}];return models[_0x9f2c[418]][_0x9f2c[263]](_0x48a9x47)[_0x9f2c[32]](function(){logger[_0x9f2c[73]](_0x9f2c[417])})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[416],_0x48a9x19)})}}function rtpRewrite(_0x48a9x47){if(_0x48a9x47){var _0x48a9x8c=_0x9f2c[183];for(var _0x48a9x30 in _0x48a9x47){_0x48a9x47[_0x48a9x30]&& (_0x48a9x8c+= util[_0x9f2c[59]](_0x9f2c[397],_0x48a9x30,_0x48a9x47[_0x48a9x30]))};try{fs[_0x9f2c[420]](path[_0x9f2c[361]](config[_0x9f2c[360]],_0x9f2c[419]),_0x48a9x8c,{flag:_0x9f2c[362],mode:parseInt(_0x9f2c[363],8)});logger[_0x9f2c[73]](_0x9f2c[421]);amiCommand(_0x9f2c[422])}catch(err){logger[_0x9f2c[27]](_0x9f2c[423],err)}}else {logger[_0x9f2c[27]](_0x9f2c[424])}}function execRequest(_0x48a9x74,_0x48a9x8e,_0x48a9x8f){return Util[_0x9f2c[427]](_0x48a9x74,_0x48a9x8e,_0x48a9x8f)[_0x9f2c[32]](function(_0x48a9x90){faxLogger[_0x9f2c[73]](_0x9f2c[426])})[_0x9f2c[28]](function(_0x48a9x19){faxLogger[_0x9f2c[27]](_0x9f2c[425],_0x48a9x19)})}function webhook(_0x48a9x74,_0x48a9x92,_0x48a9x93){switch(_0x48a9x93){case _0x9f2c[435]:if(_0x48a9x92[_0x9f2c[428]]&& _0x48a9x92[_0x9f2c[429]]){faxLogger[_0x9f2c[73]](_0x9f2c[430]+ _0x48a9x92[_0x9f2c[29]]+ _0x9f2c[431]);execRequest(_0x48a9x74,_0x48a9x92[_0x9f2c[428]],_0x48a9x92[_0x9f2c[429]])};if(_0x48a9x92[_0x9f2c[432]][_0x9f2c[334]]){_[_0x9f2c[31]](_0x48a9x92[_0x9f2c[432]],function(_0x48a9x38){if(_0x48a9x38[_0x9f2c[433]]){Util[_0x9f2c[434]](_0x48a9x38,_0x48a9x74)}})};break;case _0x9f2c[439]:if(_0x48a9x92[_0x9f2c[436]]&& _0x48a9x92[_0x9f2c[437]]){faxLogger[_0x9f2c[73]](_0x9f2c[430]+ _0x48a9x92[_0x9f2c[29]]+ _0x9f2c[438]);execRequest(_0x48a9x74,_0x48a9x92[_0x9f2c[436]],_0x48a9x92[_0x9f2c[437]])};break;case _0x9f2c[77]:if(_0x48a9x92[_0x9f2c[440]]&& _0x48a9x92[_0x9f2c[441]]){faxLogger[_0x9f2c[73]](_0x9f2c[430]+ _0x48a9x92[_0x9f2c[29]]+ _0x9f2c[442]);execRequest(_0x48a9x74,_0x48a9x92[_0x9f2c[440]],_0x48a9x92[_0x9f2c[441]])};break;default:faxLogger[_0x9f2c[27]](_0x9f2c[443])}}function getFaxRoom(){return function(_0x48a9x92,_0x48a9x95){if(_0x48a9x95[_0x9f2c[444]]){return models[_0x9f2c[445]][_0x9f2c[309]](_0x48a9x95.FaxRoomId)}else {return models[_0x9f2c[445]][_0x9f2c[33]]({limit:1,where:{contact:_0x48a9x95[_0x9f2c[448]],FaxAccountId:_0x48a9x92[_0x9f2c[253]]},order:[[_0x9f2c[378],_0x9f2c[450]]]})[_0x9f2c[32]](function(_0x48a9x96){var _0x48a9x97=_[_0x9f2c[446]](_0x48a9x96);if(!_0x48a9x97|| _0x48a9x97[_0x9f2c[380]]=== _0x9f2c[447]){return models[_0x9f2c[445]][_0x9f2c[63]]({contact:_0x48a9x95[_0x9f2c[448]],account:_0x48a9x92[_0x9f2c[29]],status:_0x9f2c[449],FaxAccountId:_0x48a9x92[_0x9f2c[253]]})}else {return _0x48a9x97}})}}}function sendFax(_0x48a9x99,_0x48a9x9a,_0x48a9x9b){if(_0x48a9x99[_0x9f2c[380]]=== _0x9f2c[451]){faxLogger[_0x9f2c[454]](util[_0x9f2c[59]](_0x9f2c[452],_0x48a9x99[_0x9f2c[453]],_0x48a9x99[_0x9f2c[448]]));var _0x48a9x9c;var _0x48a9x9d=_0x48a9x99;var _0x48a9x9e=_0x48a9x99[_0x9f2c[453]];var _0x48a9x9f=_0x48a9x99[_0x9f2c[448]];var _0x48a9xa0;var _0x48a9xa1;var _0x48a9xa2,_0x48a9xa3;return models[_0x9f2c[505]][_0x9f2c[274]]({where:{localstationid:_0x48a9x9d[_0x9f2c[453]]}})[_0x9f2c[32]](function(_0x48a9xa7){if(!_0x48a9xa7){throw  new Error(_0x9f2c[502])};faxLogger[_0x9f2c[73]](_0x9f2c[503],_0x48a9xa7[_0x9f2c[466]]);_0x48a9xa0= _[_0x9f2c[147]](_0x48a9xa7[_0x9f2c[266]]);return models[_0x9f2c[34]][_0x9f2c[274]]({where:{name:_0x48a9xa0[_0x9f2c[504]]},attributes:[_0x9f2c[29]]})})[_0x9f2c[32]](function(_0x48a9x1b){if(!_0x48a9x1b){throw  new Error(_0x9f2c[500])};faxLogger[_0x9f2c[73]](_0x9f2c[501],_0x48a9x1b[_0x9f2c[29]]);_0x48a9xa1= _[_0x9f2c[147]](_0x48a9x1b[_0x9f2c[266]]);return})[_0x9f2c[32]](function(){return [_0x48a9xa0,_0x48a9x9d]})[_0x9f2c[490]](getFaxRoom())[_0x9f2c[32]](function(_0x48a9xa6){if(!_0x48a9xa6){throw  new Error(_0x9f2c[497])};faxLogger[_0x9f2c[73]](_0x9f2c[498],_0x48a9xa6[_0x9f2c[253]]);_0x48a9x9c= _0x48a9xa6;return _0x48a9x9c[_0x9f2c[499]](_0x48a9x9d[_0x9f2c[253]])})[_0x9f2c[32]](function(){return _0x48a9x9c[_0x9f2c[269]]({status:_0x9f2c[449],lastEvent:_0x9f2c[451],lastEventAt:moment()[_0x9f2c[59]](_0x9f2c[58]),faxOut:++_0x48a9x9c[_0x9f2c[495]]},{individualHooks:true,user:_0x48a9x9b[_0x9f2c[496]]})})[_0x9f2c[32]](function(_0x48a9x47){faxLogger[_0x9f2c[73]](_0x9f2c[493],_0x48a9x47[_0x9f2c[253]]);return _0x48a9x9c[_0x9f2c[494]](_0x48a9x9d.UserId)})[_0x9f2c[32]](function(){return models[_0x9f2c[310]][_0x9f2c[309]](_0x48a9x9d.UserId)})[_0x9f2c[32]](function(){if(_0x48a9xa0[_0x9f2c[491]]){return models[_0x9f2c[492]][_0x9f2c[292]]({where:{ListId:_0x48a9xa0[_0x9f2c[491]],$or:[{phone:_0x48a9x9f},{fax:_0x48a9x9f}]},defaults:{fax:_0x48a9x9f,phone:_0x48a9x9f,firstName:_0x48a9x9f,ListId:_0x48a9xa0[_0x9f2c[491]]}})}else {return []}})[_0x9f2c[490]](function(_0x48a9xa4,_0x48a9xa5){if(_0x48a9xa5!== undefined&&  !_0x48a9xa5){return _0x48a9xa4[_0x9f2c[269]]({fax:_0x48a9x9f})};return})[_0x9f2c[32]](function(){_0x48a9xa2= _0x48a9x9d[_0x9f2c[477]][0][_0x9f2c[6]];if(_0x48a9x9d[_0x9f2c[477]][0][_0x9f2c[192]]=== _0x9f2c[478]){_0x48a9xa3= path[_0x9f2c[361]](config[_0x9f2c[479]],_0x9f2c[480],_0x9f2c[481],_0x9f2c[16],_0x9f2c[194],_0x9f2c[482],_0x9f2c[483],path[_0x9f2c[484]](_0x48a9xa2)[_0x9f2c[29]]+ _0x9f2c[485]);return exec(_0x9f2c[486]+ _0x48a9xa3+ _0x9f2c[487]+ _0x48a9xa2)}else {_0x48a9xa3= path[_0x9f2c[361]](config[_0x9f2c[479]],_0x9f2c[480],_0x9f2c[481],_0x9f2c[16],_0x9f2c[194],_0x9f2c[482],_0x9f2c[483],path[_0x9f2c[484]](_0x48a9xa2)[_0x9f2c[488]]);fse[_0x9f2c[489]](_0x48a9xa2,_0x48a9xa3);return}})[_0x9f2c[32]](function(){fs[_0x9f2c[475]](_0x48a9xa3,511);faxLogger[_0x9f2c[73]](_0x9f2c[476]);return models[_0x9f2c[459]][_0x9f2c[265]]({filename:_0x48a9xa3,localstationid:_0x48a9x9d[_0x9f2c[453]],retry:_0x48a9x9a},{where:{id:_0x48a9x9d[_0x9f2c[253]]}})})[_0x9f2c[32]](function(_0x48a9x99){return amiAction({action:_0x9f2c[462],channel:util[_0x9f2c[59]](_0x9f2c[463],_0x48a9xa0[_0x9f2c[464]],_0x48a9xa1[_0x9f2c[29]],_0x48a9x9f),exten:_0x48a9x9f,context:_0x9f2c[465],priority:1,callerid:util[_0x9f2c[59]](_0x9f2c[180],_0x48a9xa0[_0x9f2c[466]],_0x48a9xa0[_0x9f2c[466]]),variable:{FAXNAME:_0x48a9xa0[_0x9f2c[29]],FAXNUMBER:_0x48a9x9f,FAXECM:_0x48a9xa0[_0x9f2c[467]],FAXHEADERINFO:_0x48a9xa0[_0x9f2c[468]],FAXLOCALSTATIONID:_0x48a9xa0[_0x9f2c[466]],FAXMINRATE:_0x48a9xa0[_0x9f2c[469]],FAXMAXRATE:_0x48a9xa0[_0x9f2c[470]],FAXMODEM:util[_0x9f2c[59]](_0x9f2c[471],_0x48a9xa0[_0x9f2c[472]]),FAXGATEWAY:_0x48a9xa0[_0x9f2c[473]],FAXT38TIMEOUT:_0x48a9xa0[_0x9f2c[474]],FAXOUTFILE:_0x48a9xa3},account:_0x48a9xa0[_0x9f2c[466]]})})[_0x9f2c[32]](function(_0x48a9x58){faxLogger[_0x9f2c[454]](_0x9f2c[460]);faxLogger[_0x9f2c[73]](_0x9f2c[461],_0x48a9x58)})[_0x9f2c[28]](function(_0x48a9x19){faxLogger[_0x9f2c[27]](_0x9f2c[455],_0x48a9x19);faxLogger[_0x9f2c[27]](_0x9f2c[456],_0x48a9x19[_0x9f2c[280]]);faxLogger[_0x9f2c[27]](_0x9f2c[457],_0x48a9x19[_0x9f2c[26]]);return models[_0x9f2c[459]][_0x9f2c[265]]({status:_0x9f2c[171]},{where:{id:_0x48a9x9d[_0x9f2c[253]]}})[_0x9f2c[32]](function(_0x48a9x47){if(_0x48a9x9c){return _0x48a9x9c[_0x9f2c[269]]({lastEvent:_0x9f2c[171]})};return})[_0x9f2c[28]](function(_0x48a9x19){faxLogger[_0x9f2c[27]](_0x9f2c[458],_0x48a9x19);faxLogger[_0x9f2c[27]](_0x9f2c[456],_0x48a9x19[_0x9f2c[280]]);faxLogger[_0x9f2c[27]](_0x9f2c[457],_0x48a9x19[_0x9f2c[26]])})})}}models[_0x9f2c[459]][_0x9f2c[506]](function(_0x48a9x74,_0x48a9x37){sendFax(_0x48a9x74[_0x9f2c[266]],0,_0x48a9x37)});models[_0x9f2c[459]][_0x9f2c[509]](function(_0x48a9x74,_0x48a9x37){if(_0x48a9x74[_0x9f2c[507]](_0x9f2c[380])&& _0x48a9x74[_0x9f2c[380]]=== _0x9f2c[451]){sendFax(_0x48a9x74[_0x9f2c[266]],_0x48a9x74[_0x9f2c[508]]+ 1,_0x48a9x37)}});models[_0x9f2c[445]][_0x9f2c[509]](function(_0x48a9x74){var _0x48a9xa8=_[_0x9f2c[511]](faxaccounts,{id:_0x48a9x74[_0x9f2c[510]]});if(_0x48a9xa8&& _0x48a9x74[_0x9f2c[507]](_0x9f2c[380])&& _0x48a9x74[_0x9f2c[380]]=== _0x9f2c[447]){webhook(_0x48a9x74[_0x9f2c[266]],_0x48a9xa8,_0x9f2c[77])}});models[_0x9f2c[512]][_0x9f2c[506]](function(_0x48a9x74,_0x48a9x37){onSave(_0x48a9x74,_0x48a9x37)});models[_0x9f2c[505]][_0x9f2c[33]]({raw:true})[_0x9f2c[32]](function(_0x48a9xa9){faxaccounts= _0x48a9xa9})[_0x9f2c[28]](function(_0x48a9x19){faxLogger[_0x9f2c[27]](_0x9f2c[513],_0x48a9x19)});function addToCollection(_0x48a9xab,_0x48a9xac){_0x48a9xab[_0x9f2c[262]](_0x48a9xac)}function updateCollection(_0x48a9xab,_0x48a9xac){var _0x48a9xae=_[_0x9f2c[511]](_0x48a9xab,{id:_0x48a9xac[_0x9f2c[253]]});if(_0x48a9xae){_[_0x9f2c[267]](_0x48a9xae,_0x48a9xac)}else {_0x48a9xab[_0x9f2c[514]](_0x48a9xac)}}function removeFromCollection(_0x48a9xab,_0x48a9xac){_[_0x9f2c[515]](_0x48a9xab,{id:_0x48a9xac[_0x9f2c[253]]})}function getWidgets(_0x48a9xb1){_0x48a9xb1= JSON[_0x9f2c[484]](_0x48a9xb1|| _0x9f2c[516]);var _0x48a9xb2=[];if(_0x48a9xb1[_0x9f2c[517]]){_[_0x9f2c[31]](_0x48a9xb1[_0x9f2c[517]],function(_0x48a9xb3){_0x48a9xb2[_0x9f2c[262]](_[_0x9f2c[521]](_[_0x9f2c[520]](_0x48a9xb3[_0x9f2c[518]],_0x9f2c[519])))});if(_0x48a9xb2[_0x9f2c[334]]){var _0x48a9xb4=[];_[_0x9f2c[31]](_0x48a9xb2,function(_0x48a9xb5){_[_0x9f2c[31]](_0x48a9xb5,function(_0x48a9xb6){_[_0x9f2c[193]]([_0x9f2c[522],_0x9f2c[523],_0x9f2c[524]],_0x48a9xb6[_0x9f2c[192]])&& _0x48a9xb4[_0x9f2c[262]]({config:{select:_0x48a9xb6[_0x9f2c[526]][_0x9f2c[525]],fields:_0x48a9xb6[_0x9f2c[526]][_0x9f2c[527]],condition:_0x48a9xb6[_0x9f2c[526]][_0x9f2c[528]],table:_0x48a9xb6[_0x9f2c[526]][_0x9f2c[530]][_0x9f2c[223]](_0x9f2c[529],_0x9f2c[183])},id:_0x48a9xb6[_0x9f2c[531]],type:_0x48a9xb6[_0x9f2c[192]]})})});return (_0x48a9xb4[_0x9f2c[334]]?_0x48a9xb4:null)};return null};return null}function toAddDate(_0x48a9xb8){switch(_0x48a9xb8){case _0x9f2c[532]:;case _0x9f2c[533]:;case _0x9f2c[534]:;case _0x9f2c[535]:;case _0x9f2c[536]:;case _0x9f2c[537]:;case _0x9f2c[538]:;case _0x9f2c[539]:;case _0x9f2c[540]:;case _0x9f2c[541]:;case _0x9f2c[542]:;case _0x9f2c[543]:;case _0x9f2c[544]:;case _0x9f2c[545]:return false;default:return true}}function getCounterWidgetQuery(_0x48a9xba,_0x48a9x5d){return Promise[_0x9f2c[288]]()[_0x9f2c[32]](function(){return _0x48a9xba[_0x9f2c[522]]})[_0x9f2c[32]](reportBuildUtils[_0x9f2c[561]](_0x48a9x5d))[_0x9f2c[32]](function(_0x48a9xbb){var _0x48a9xbc=util[_0x9f2c[59]](_0x9f2c[547],_0x48a9xba[_0x9f2c[525]],_0x48a9xba[_0x9f2c[522]]);if(_0x48a9xba[_0x9f2c[528]]&& _0x48a9xba[_0x9f2c[528]]!== _0x9f2c[548]){_0x48a9xbc+= util[_0x9f2c[59]](_0x9f2c[549],decodeURIComponent(_0x48a9xba[_0x9f2c[528]]))};if(toAddDate(_0x48a9xba[_0x9f2c[522]])){_0x48a9xbc+= util[_0x9f2c[59]]((_0x48a9xba[_0x9f2c[528]]&& _0x48a9xba[_0x9f2c[528]]!== _0x9f2c[548])?_0x9f2c[550]:_0x9f2c[551],moment()[_0x9f2c[553]](_0x9f2c[552])[_0x9f2c[59]](_0x9f2c[58]))};if(!_0x48a9xbb|| _0x48a9xbb!== _0x9f2c[554]){if(_0x48a9xbb){_0x48a9xbc+= _0x48a9xba[_0x9f2c[528]]?_0x9f2c[555]+ _0x48a9xbb:_0x9f2c[556]+ _0x48a9xbb};logger[_0x9f2c[73]](_0x9f2c[557]);logger[_0x9f2c[73]](_0x48a9xbc);logger[_0x9f2c[73]](_0x9f2c[558]);return _0x48a9xbc}else {logger[_0x9f2c[27]](_0x9f2c[559]);logger[_0x9f2c[27]](_0x9f2c[560]);logger[_0x9f2c[27]](_0x9f2c[558]);return []}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[546],_0x48a9x19[_0x9f2c[26]])})}function getPieChartWidgetQuery(_0x48a9xba,_0x48a9x5d){return Promise[_0x9f2c[277]]([])[_0x9f2c[32]](function(){return _0x48a9xba[_0x9f2c[522]]})[_0x9f2c[32]](reportBuildUtils[_0x9f2c[561]](_0x48a9x5d))[_0x9f2c[32]](function(_0x48a9xbb){var _0x48a9xbe=[];var _0x48a9x40;if(_0x48a9xba[_0x9f2c[527]]){if(_[_0x9f2c[563]](_0x48a9xba[_0x9f2c[527]])){_0x48a9xba[_0x9f2c[527]][_0x9f2c[31]](function(_0x48a9x84){if(_0x48a9x84[_0x9f2c[564]]&& _0x48a9x84[_0x9f2c[565]]){_0x48a9xbe[_0x9f2c[262]](_0x48a9x84[_0x9f2c[564]]+ _0x9f2c[566]+ _0x48a9x84[_0x9f2c[565]]+ _0x9f2c[567])}})}else {if(_[_0x9f2c[568]](_0x48a9xba[_0x9f2c[527]])){var _0x48a9x84=JSON[_0x9f2c[484]](_0x48a9xba[_0x9f2c[527]]);if(_0x48a9x84[_0x9f2c[564]]&& _0x48a9x84[_0x9f2c[565]]){_0x48a9xbe[_0x9f2c[262]](_0x48a9x84[_0x9f2c[564]]+ _0x9f2c[566]+ _0x48a9x84[_0x9f2c[565]]+ _0x9f2c[567])}}}};var _0x48a9xbf=_0x48a9xbe[_0x9f2c[334]]?_0x48a9xbe[_0x9f2c[361]](_0x9f2c[101]):_0x9f2c[569];var _0x48a9xc0=_0x9f2c[183];if(_0x48a9xba[_0x9f2c[528]]&& _0x48a9xba[_0x9f2c[528]]!== _0x9f2c[570]&& _0x48a9xba[_0x9f2c[528]]!== _0x9f2c[548]){_0x48a9xc0= util[_0x9f2c[59]](_0x9f2c[549],decodeURIComponent(_0x48a9xba[_0x9f2c[528]]))};if(toAddDate(_0x48a9xba[_0x9f2c[522]])){_0x48a9xc0+= util[_0x9f2c[59]]((_0x48a9xba[_0x9f2c[528]]&& _0x48a9xba[_0x9f2c[528]]!== _0x9f2c[548])?_0x9f2c[550]:_0x9f2c[551],moment()[_0x9f2c[553]](_0x9f2c[552])[_0x9f2c[59]](_0x9f2c[58]))};if(!_0x48a9xbb|| _0x48a9xbb!== _0x9f2c[554]){if(_0x48a9xbb){_0x48a9xc0+= _0x48a9xc0?_0x9f2c[555]+ _0x48a9xbb:_0x9f2c[556]+ _0x48a9xbb};var _0x48a9xbc=util[_0x9f2c[59]](_0x9f2c[571],_0x48a9xbf,_0x48a9xba[_0x9f2c[522]],_0x48a9xc0);logger[_0x9f2c[73]](_0x9f2c[557]);logger[_0x9f2c[73]](_0x48a9xbc);logger[_0x9f2c[73]](_0x9f2c[558]);return _0x48a9xbc}else {logger[_0x9f2c[27]](_0x9f2c[559]);logger[_0x9f2c[27]](_0x9f2c[560]);logger[_0x9f2c[27]](_0x9f2c[558]);return []}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[562],_0x48a9x19[_0x9f2c[26]])})}function getWidgetQuery(_0x48a9xba,_0x48a9x5d){switch(_0x48a9xba[_0x9f2c[192]]){case _0x9f2c[524]:return getCounterWidgetQuery(_0x48a9xba[_0x9f2c[526]],_0x48a9x5d);case _0x9f2c[523]:return getPieChartWidgetQuery(_0x48a9xba[_0x9f2c[526]],_0x48a9x5d);default:return Promise[_0x9f2c[288]]()[_0x9f2c[32]](function(){return null})}}function getCustomDashboardValues(_0x48a9xc3,_0x48a9x5d){var _0x48a9xc4={};var _0x48a9xc5=[],_0x48a9xc6=[],_0x48a9xbc;return models[_0x9f2c[584]][_0x9f2c[309]](_0x48a9xc3)[_0x9f2c[32]](function(_0x48a9xc7){if(!_0x48a9xc7){logger[_0x9f2c[27]](_0x9f2c[575],_0x48a9xc3,_0x9f2c[576]);return};var _0x48a9xb4=getWidgets(_0x48a9xc7[_0x9f2c[577]]);if(_0x48a9xb4){_[_0x9f2c[31]](_0x48a9xb4,function(_0x48a9xba){_0x48a9xc5[_0x9f2c[262]](getWidgetQuery(_0x48a9xba,_0x48a9x5d)[_0x9f2c[32]](function(_0x48a9xbc){_0x48a9xc6[_0x9f2c[262]](Promise[_0x9f2c[288]]()[_0x9f2c[32]](function(){if(_0x48a9xbc){return models[_0x9f2c[582]][_0x9f2c[583]](_0x48a9xbc,{type:models[_0x9f2c[582]][_0x9f2c[581]][_0x9f2c[580]]})}else {return []}})[_0x9f2c[32]](function(_0x48a9x58){_0x48a9xc4[_0x48a9xba[_0x9f2c[253]]+ _0x9f2c[579]+ _0x48a9xc7[_0x9f2c[253]]]= _0x48a9x58})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[578],_0x48a9xba[_0x9f2c[253]],_0x48a9x19);_0x48a9xc4[_0x48a9xba[_0x9f2c[253]]+ _0x9f2c[579]+ _0x48a9xc7[_0x9f2c[253]]]= []}))}))});return _0x48a9xc5};return []})[_0x9f2c[277]]()[_0x9f2c[32]](function(){return _0x48a9xc6})[_0x9f2c[277]]()[_0x9f2c[32]](function(){if(!_[_0x9f2c[573]](_0x48a9xc4)){return events[_0x9f2c[574]](_0x48a9xc4,_0x48a9x5d)}})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[572],_0x48a9xc3,_0x48a9x19)})}process[_0x9f2c[74]](_0x9f2c[280],function(_0x48a9xc8){switch(_0x48a9xc8[_0x9f2c[280]]){case _0x9f2c[585]:;case _0x9f2c[586]:;case _0x9f2c[588]:networkRewrite(_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[590]:return BPromise[_0x9f2c[288]]()[_0x9f2c[32]](rewriteContexts(_0x48a9xc8[_0x9f2c[587]],false))[_0x9f2c[32]](createHangup(_0x48a9xc8[_0x9f2c[587]]))[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[589],_0x48a9x19)});case _0x9f2c[592]:return BPromise[_0x9f2c[288]]()[_0x9f2c[32]](rewriteContexts(_0x48a9xc8[_0x9f2c[587]],true))[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[591],_0x48a9x19)});case _0x9f2c[593]:addToCollection(faxaccounts,_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[594]:updateCollection(faxaccounts,_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[595]:removeFromCollection(faxaccounts,_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[596]:trunksRewrite();break;case _0x9f2c[597]:rtpRewrite(_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[598]:;case _0x9f2c[599]:sendFax(_0x48a9xc8[_0x9f2c[587]],0,_0x48a9xc8[_0x9f2c[48]]);break;case _0x9f2c[600]:var _0x48a9xa8=_[_0x9f2c[511]](faxaccounts,{id:_0x48a9xc8[_0x9f2c[587]][_0x9f2c[510]]});if(_0x48a9xa8){webhook(_0x48a9xc8[_0x9f2c[587]],_0x48a9xa8,_0x48a9xc8[_0x9f2c[41]])};break;case _0x9f2c[602]:return amiAction({action:_0x9f2c[337],command:_0x48a9xc8[_0x9f2c[604]]})[_0x9f2c[32]](function(_0x48a9x6a){return events[_0x9f2c[602]]({type:_0x9f2c[603],data:_0x48a9x6a,socket:_0x48a9xc8[_0x9f2c[601]]})})[_0x9f2c[28]](function(_0x48a9x19){events[_0x9f2c[602]]({type:_0x9f2c[27],data:_0x48a9x19,socket:_0x48a9xc8[_0x9f2c[601]]})});case _0x9f2c[609]:return amiAction(_0x48a9xc8[_0x9f2c[41]])[_0x9f2c[32]](function(_0x48a9x6a){events[_0x9f2c[272]](_0x48a9xc8[_0x9f2c[290]],_0x48a9xc8[_0x9f2c[271]],_0x48a9xc8[_0x9f2c[41]][_0x9f2c[606]]);logger[_0x9f2c[454]](util[_0x9f2c[59]](_0x9f2c[607],_0x48a9xc8[_0x9f2c[290]],_0x48a9xc8[_0x9f2c[41]][_0x9f2c[606]]?_0x9f2c[606]:_0x9f2c[608]))})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](util[_0x9f2c[59]](_0x9f2c[605],_0x48a9xc8[_0x9f2c[290]],_0x48a9xc8[_0x9f2c[41]][_0x9f2c[606]]?_0x9f2c[311]:_0x9f2c[312]),_0x48a9x19)});case _0x9f2c[611]:var _0x48a9x92=_[_0x9f2c[511]](faxaccounts,{id:parseInt(_0x48a9xc8[_0x9f2c[587]][_0x9f2c[610]])});if(_0x48a9x92){webhook(_0x48a9xc8[_0x9f2c[587]],_0x48a9x92,_0x48a9xc8[_0x9f2c[41]])};break;case _0x9f2c[612]:return onSave(_0x48a9xc8[_0x9f2c[587]],_0x48a9xc8[_0x9f2c[48]]);case _0x9f2c[613]:return events[_0x9f2c[613]](_0x48a9xc8[_0x9f2c[293]]);case _0x9f2c[614]:;case _0x9f2c[615]:;case _0x9f2c[616]:;case _0x9f2c[617]:;case _0x9f2c[618]:;case _0x9f2c[619]:;case _0x9f2c[620]:;case _0x9f2c[621]:;case _0x9f2c[622]:;case _0x9f2c[623]:;case _0x9f2c[624]:;case _0x9f2c[626]:return events[_0x9f2c[625]](_0x48a9xc8);case _0x9f2c[628]:return BPromise[_0x9f2c[288]]()[_0x9f2c[32]](function(){return amiUtil[_0x9f2c[628]](amiAction,_0x48a9xc8[_0x9f2c[587]])})[_0x9f2c[28]](function(_0x48a9x19){logger[_0x9f2c[27]](_0x9f2c[627],_0x48a9x19)});case _0x9f2c[629]:;case _0x9f2c[630]:;case _0x9f2c[631]:;case _0x9f2c[632]:;case _0x9f2c[633]:;case _0x9f2c[634]:;case _0x9f2c[635]:;case _0x9f2c[636]:;case _0x9f2c[637]:;case _0x9f2c[639]:return events[_0x9f2c[638]](_0x48a9xc8);case _0x9f2c[644]:switch(_0x48a9xc8[_0x9f2c[522]]){case _0x9f2c[641]:return events[_0x9f2c[640]]();case _0x9f2c[643]:return events[_0x9f2c[642]]();default:};break;case _0x9f2c[645]:newexten(_0x48a9xc8[_0x9f2c[52]],true);break;case _0x9f2c[646]:addToCollection(voiceQueues,_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[647]:updateCollection(voiceQueues,_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[648]:removeFromCollection(voiceQueues,_0x48a9xc8[_0x9f2c[587]]);break;case _0x9f2c[649]:getCustomDashboardValues(_0x48a9xc8[_0x9f2c[253]],_0x48a9xc8[_0x9f2c[496]]);break;case _0x9f2c[651]:return events[_0x9f2c[650]](_0x48a9xc8[_0x9f2c[587]]);default:}})