Built motion from commit 94df3a359.|1.0.33
[motion.git] / server / config / ami / ami.js
index f3fcae8..a846d2f 100644 (file)
@@ -1 +1 @@
-var _0xe812=["\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"];_0xe812[0];var _=require(_0xe812[1]);var BPromise=require(_0xe812[2]);var util=require(_0xe812[3]);var moment=require(_0xe812[4]);var fs=require(_0xe812[5]);var path=require(_0xe812[6]);var Util=require(_0xe812[7]);var amiUtil=require(_0xe812[8]);var exec=require(_0xe812[10])[_0xe812[9]];var fse=require(_0xe812[11]);var kue=require(_0xe812[12]);var reportBuildUtils=require(_0xe812[13]);var logger=require(_0xe812[15])(_0xe812[14]);var faxLogger=require(_0xe812[15])(_0xe812[16]);var config=require(_0xe812[17]);var events=require(_0xe812[18]);var models=require(_0xe812[19]);var channels=[_0xe812[20],_0xe812[21],_0xe812[22],_0xe812[16],_0xe812[23],_0xe812[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0xe812[34]][_0xe812[33]]({where:{active:true},attributes:[_0xe812[29],_0xe812[30]],raw:true})[_0xe812[32]](function(_0x503bx1a){_[_0xe812[31]](_0x503bx1a,function(_0x503bx1b){activeTrunks[_0x503bx1b[_0xe812[29]]]= _0x503bx1b[_0xe812[30]]})})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[25],_0x503bx19[_0xe812[26]])});var ami= new require(_0xe812[40])(config[_0xe812[36]][_0xe812[35]],config[_0xe812[36]][_0xe812[37]],config[_0xe812[36]][_0xe812[38]],config[_0xe812[36]][_0xe812[39]],true);var amiAction=BPromise[_0xe812[42]](ami[_0xe812[41]]);var kueConfig={prefix:_0xe812[43],jobEvents:false,redis:{port:6379,host:config[_0xe812[44]]}};if(config[_0xe812[45]]){kueConfig[_0xe812[47]][_0xe812[46]]= _0xe812[39];kueConfig[_0xe812[47]][_0xe812[48]]= {password:config[_0xe812[45]]}};var q=kue[_0xe812[49]](kueConfig);q[_0xe812[56]](_0xe812[50],function(_0x503bx20,_0x503bx21){try{events[_0x503bx20[_0xe812[53]][_0xe812[29]]](_0x503bx20[_0xe812[53]][_0xe812[52]],_0x503bx20[_0xe812[53]][_0xe812[54]]?amiAction:undefined)[_0xe812[51]](function(){_0x503bx21()})}catch(e){logger[_0xe812[27]](_0xe812[55],_0x503bx20[_0xe812[53]][_0xe812[29]],e)}});function addToQueue(_0x503bx23,_0x503bx24,_0x503bx25){_0x503bx24[_0xe812[57]]= moment()[_0xe812[59]](_0xe812[58]);q[_0xe812[63]](_0xe812[50],{name:_0x503bx23,evt:_0x503bx24,needAmi:_0x503bx25})[_0xe812[62]](true)[_0xe812[61]](function(_0x503bx19){if(_0x503bx19){logger[_0xe812[27]](_0xe812[60],_0x503bx19)}else {}})}models[_0xe812[65]][_0xe812[33]]({raw:true})[_0xe812[32]](function(_0x503bx26){voiceQueues= _0x503bx26})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[64],_0x503bx19)});ami[_0xe812[66]]();setInterval(function(){if(global[_0xe812[67]]){global[_0xe812[67]]()}else {logger[_0xe812[70]](_0xe812[68]+ _0xe812[69])}},20000);process[_0xe812[74]](_0xe812[71],function(_0x503bx27){logger[_0xe812[73]](_0xe812[72],_0x503bx27)});ami[_0xe812[74]](_0xe812[75],events[_0xe812[75]]);ami[_0xe812[74]](_0xe812[76],events[_0xe812[76]]);ami[_0xe812[74]](_0xe812[77],events[_0xe812[77]]);ami[_0xe812[74]](_0xe812[27],events[_0xe812[27]]);ami[_0xe812[74]](_0xe812[78],function(_0x503bx24){try{addToQueue(_0xe812[79],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[80],err)}});ami[_0xe812[74]](_0xe812[81],function(_0x503bx24){try{addToQueue(_0xe812[81],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[82],err)}});ami[_0xe812[74]](_0xe812[83],function(_0x503bx24){try{addToQueue(_0xe812[83],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[84],err)}});ami[_0xe812[74]](_0xe812[85],function(_0x503bx24){try{addToQueue(_0xe812[85],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[86],err)}});ami[_0xe812[74]](_0xe812[87],function(_0x503bx24){try{if(extraVars[_0x503bx24[_0xe812[88]]]){_0x503bx24[_0xe812[89]]= extraVars[_0x503bx24[_0xe812[88]]]};addToQueue(_0xe812[87],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[90],err)}});ami[_0xe812[74]](_0xe812[91],function(_0x503bx24){try{if(extraVars[_0x503bx24[_0xe812[88]]]){_0x503bx24[_0xe812[89]]= extraVars[_0x503bx24[_0xe812[88]]]};if(bill[_0x503bx24[_0xe812[88]]]&& bill[_0x503bx24[_0xe812[88]]][_0xe812[88]]!== _0x503bx24[_0xe812[88]]){if(!bill[_0x503bx24[_0xe812[88]]][_0xe812[92]]){bill[_0x503bx24[_0xe812[88]]][_0xe812[92]]= true}else {delete bill[_0x503bx24[_0xe812[88]]][_0xe812[93]];_0x503bx24[_0xe812[88]]= bill[_0x503bx24[_0xe812[88]]][_0xe812[88]]}};addToQueue(_0xe812[91],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[94],err)}});ami[_0xe812[74]](_0xe812[95],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[96]]]&& (bill[_0x503bx24[_0xe812[96]]][_0xe812[97]]=== _0xe812[98]|| bill[_0x503bx24[_0xe812[96]]][_0xe812[99]]=== _0xe812[98])&& bill[_0x503bx24[_0xe812[96]]][_0xe812[100]]){_0x503bx24[_0xe812[98]]= bill[_0x503bx24[_0xe812[96]]][_0xe812[103]][_0xe812[102]](_0xe812[101])[0];_0x503bx24[_0xe812[104]]= bill[_0x503bx24[_0xe812[96]]][_0xe812[100]][_0xe812[102]](/\/|-/)[1];addToQueue(_0xe812[95],_0x503bx24,true)}}catch(err){logger[_0xe812[27]](_0xe812[105],err)}});ami[_0xe812[74]](_0xe812[106],function(_0x503bx24){try{if(videoOnUrls[_0x503bx24[_0xe812[88]]]){logger[_0xe812[73]](_0xe812[107],_0x503bx24[_0xe812[88]],_0xe812[108]);_0x503bx24[_0xe812[109]]= videoOnUrls[_0x503bx24[_0xe812[88]]];events[_0xe812[110]](_0x503bx24)};if(extraVars[_0x503bx24[_0xe812[88]]]){_0x503bx24[_0xe812[89]]= extraVars[_0x503bx24[_0xe812[88]]]};addToQueue(_0xe812[106],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[111],err)}});ami[_0xe812[74]](_0xe812[112],events[_0xe812[112]]);ami[_0xe812[74]](_0xe812[113],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[88]]]){var _0x503bx28=_0x503bx24[_0xe812[114]][_0xe812[102]](/\/|-/)[1];if(bill[_0x503bx24[_0xe812[88]]][_0xe812[115]][_0x503bx28]){_0x503bx24[_0xe812[116]]= _0xe812[117];delete bill[_0x503bx24[_0xe812[88]]][_0xe812[115]][_0x503bx28]}else {_0x503bx24[_0xe812[116]]= _0xe812[113]}};addToQueue(_0xe812[113],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[118],err)}});ami[_0xe812[74]](_0xe812[119],function(_0x503bx24){try{addToQueue(_0xe812[119],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[120],err)}});ami[_0xe812[74]](_0xe812[121],function(_0x503bx24){try{addToQueue(_0xe812[121],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[122],err)}});ami[_0xe812[74]](_0xe812[123],function(_0x503bx24){try{addToQueue(_0xe812[123],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[124],err)}});ami[_0xe812[74]](_0xe812[125],function(_0x503bx24){try{addToQueue(_0xe812[125],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[126],err)}});ami[_0xe812[74]](_0xe812[127],function(_0x503bx24){try{addToQueue(_0xe812[127],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[128],err)}});ami[_0xe812[74]](_0xe812[129],function(_0x503bx24){try{addToQueue(_0xe812[129],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[130],err)}});ami[_0xe812[74]](_0xe812[131],function(_0x503bx24){try{addToQueue(_0xe812[131],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[132],err)}});ami[_0xe812[74]](_0xe812[133],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[88]]]){bill[_0x503bx24[_0xe812[88]]][_0xe812[98]]= _0x503bx24[_0xe812[98]];bill[_0x503bx24[_0xe812[88]]][_0xe812[93]]= true};addToQueue(_0xe812[133],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[134],err)}});ami[_0xe812[74]](_0xe812[135],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[88]]]){_0x503bx24[_0xe812[88]]= bill[_0x503bx24[_0xe812[88]]][_0xe812[88]]};addToQueue(_0xe812[135],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[136],err)}});ami[_0xe812[74]](_0xe812[137],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[138]]]){bill[_0x503bx24[_0xe812[138]]][_0xe812[139]]= _0xe812[137];bill[_0x503bx24[_0xe812[138]]][_0xe812[140]]= true;bill[_0x503bx24[_0xe812[138]]][_0xe812[141]]= _0xe812[142];bill[_0x503bx24[_0xe812[138]]][_0xe812[143]]= _0x503bx24[_0xe812[144]];bill[_0x503bx24[_0xe812[138]]][_0xe812[145]]= _0x503bx24[_0xe812[146]];ami[_0xe812[148]](_0xe812[131],_[_0xe812[147]](bill[_0x503bx24[_0xe812[138]]]));bill[_0x503bx24[_0xe812[138]]][_0xe812[115]]= {};delete bill[_0x503bx24[_0xe812[138]]][_0xe812[139]];bill[_0x503bx24[_0xe812[138]]][_0xe812[149]]= true;_0x503bx24[_0xe812[98]]= bill[_0x503bx24[_0xe812[138]]][_0xe812[98]]|| null};_0x503bx24[_0xe812[104]]= _0x503bx24[_0xe812[150]][_0xe812[102]](/\/|-/)[1];addToQueue(_0xe812[137],_0x503bx24,true)}catch(err){logger[_0xe812[27]](_0xe812[151],err)}});ami[_0xe812[74]](_0xe812[152],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[153]]]){bill[_0x503bx24[_0xe812[153]]][_0xe812[139]]= _0xe812[152];bill[_0x503bx24[_0xe812[153]]][_0xe812[88]]= _0x503bx24[_0xe812[144]];bill[_0x503bx24[_0xe812[144]]]&& (bill[_0x503bx24[_0xe812[144]]][_0xe812[88]]= _0x503bx24[_0xe812[153]]);ami[_0xe812[148]](_0xe812[131],_[_0xe812[147]](bill[_0x503bx24[_0xe812[153]]]));delete bill[_0x503bx24[_0xe812[153]]][_0xe812[93]];delete bill[_0x503bx24[_0xe812[153]]][_0xe812[139]];_0x503bx24[_0xe812[98]]= bill[_0x503bx24[_0xe812[153]]][_0xe812[98]]|| null};_0x503bx24[_0xe812[104]]= _0x503bx24[_0xe812[154]][_0xe812[102]](/\/|-/)[1];addToQueue(_0xe812[152],_0x503bx24,true)}catch(err){logger[_0xe812[27]](_0xe812[155],err)}});ami[_0xe812[74]](_0xe812[156],function(_0x503bx24){try{addToQueue(_0xe812[156],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[157],err)}});ami[_0xe812[74]](_0xe812[115],function(_0x503bx24){try{if(bill[_0x503bx24[_0xe812[88]]]){var _0x503bx28=_0x503bx24[_0xe812[114]][_0xe812[102]](/\/|-/)[1];bill[_0x503bx24[_0xe812[88]]][_0xe812[115]][_0x503bx28]= bill[_0x503bx24[_0xe812[88]]][_0xe812[115]][_0x503bx28]?false:true};addToQueue(_0xe812[115],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[158],err)}});ami[_0xe812[74]](_0xe812[159],function(_0x503bx24){try{addToQueue(_0xe812[159],_0x503bx24)}catch(err){faxLogger[_0xe812[27]](_0xe812[160],err)}});ami[_0xe812[74]](_0xe812[161],function(_0x503bx24){try{addToQueue(_0xe812[161],_0x503bx24)}catch(err){faxLogger[_0xe812[27]](_0xe812[162],err)}});ami[_0xe812[74]](_0xe812[163],function(_0x503bx24){try{addToQueue(_0xe812[163],_0x503bx24)}catch(err){faxLogger[_0xe812[27]](_0xe812[164],err)}});amiAction({action:_0xe812[165]});var applications=[_0xe812[166],_0xe812[98],_0xe812[167],_0xe812[168],_0xe812[169]];var dispositions=[_0xe812[170],_0xe812[171],_0xe812[171],_0xe812[170],_0xe812[170],_0xe812[170],_0xe812[172],_0xe812[173],_0xe812[171],_0xe812[171],_0xe812[171]];function newchannel(_0x503bx24){if(!bill[_0x503bx24[_0xe812[88]]]&&  !bill[_0x503bx24[_0xe812[96]]]){bill[_0x503bx24[_0xe812[88]]]= {uniqueid:_0x503bx24[_0xe812[88]],linkedid:_0x503bx24[_0xe812[96]],type:_0xe812[174],tag:_0xe812[175],accountcode:_0x503bx24[_0xe812[176]],source:_0x503bx24[_0xe812[177]],destination:_0x503bx24[_0xe812[178]],destinationcontext:_0x503bx24[_0xe812[179]],callerid:util[_0xe812[59]](_0xe812[180],_0x503bx24[_0xe812[181]],_0x503bx24[_0xe812[177]]),channel:_0x503bx24[_0xe812[182]],destinationchannel:_0xe812[183],lastapplication:_0xe812[183],lastdata:_0xe812[183],starttime:moment()[_0xe812[59]](_0xe812[58]),answertime:_0xe812[183],endtime:_0xe812[183],duration:0,billableseconds:0,disposition:dispositions[_[_0xe812[185]](_0x503bx24[_0xe812[184]])],amaflags:_0xe812[186],unmanaged:false,calleridnum:_0x503bx24[_0xe812[177]],calleridname:_0x503bx24[_0xe812[181]],dialend:{}}}}function newstate(_0x503bx24){if(bill[_0x503bx24[_0xe812[96]]]&& _0x503bx24[_0xe812[88]]!== _0x503bx24[_0xe812[96]]&& _0x503bx24[_0xe812[184]]=== _0xe812[187]){bill[_0x503bx24[_0xe812[96]]][_0xe812[188]]= moment()[_0xe812[59]](_0xe812[58]);delete bill[_0x503bx24[_0xe812[96]]][_0xe812[93]];bill[_0x503bx24[_0xe812[96]]][_0xe812[189]]= dispositions[_[_0xe812[185]](_0x503bx24[_0xe812[184]])];if(_[_0xe812[193]]([_0xe812[190],_0xe812[191]],bill[_0x503bx24[_0xe812[96]]][_0xe812[192]])){bill[_0x503bx24[_0xe812[96]]][_0xe812[176]]= _0x503bx24[_0xe812[176]]};if(!_[_0xe812[193]]([_0xe812[194],_0xe812[191]],bill[_0x503bx24[_0xe812[96]]][_0xe812[192]])){bill[_0x503bx24[_0xe812[96]]][_0xe812[195]]= _0x503bx24[_0xe812[196]];bill[_0x503bx24[_0xe812[96]]][_0xe812[197]]= util[_0xe812[59]](_0xe812[180],_0x503bx24[_0xe812[198]],_0x503bx24[_0xe812[196]])};bill[_0x503bx24[_0xe812[96]]][_0xe812[96]]= _0x503bx24[_0xe812[88]];bill[_0x503bx24[_0xe812[96]]][_0xe812[100]]= _0x503bx24[_0xe812[182]];bill[_0x503bx24[_0xe812[96]]][_0xe812[199]]= false}}function newexten(_0x503bx24,_0x503bx2e){if(bill[_0x503bx24[_0xe812[88]]]){_0x503bx24[_0xe812[200]]= _0x503bx24[_0xe812[200]][_0xe812[201]]();if(bill[_0x503bx24[_0xe812[88]]][_0xe812[97]]=== _0xe812[98]|| bill[_0x503bx24[_0xe812[88]]][_0xe812[99]]=== _0xe812[98]){if(bill[_0x503bx24[_0xe812[88]]][_0xe812[93]]&&  !bill[_0x503bx24[_0xe812[88]]][_0xe812[149]]){if(bill[_0x503bx24[_0xe812[88]]][_0xe812[202]]){ami[_0xe812[148]](_0xe812[203],_[_0xe812[147]](bill[_0x503bx24[_0xe812[88]]]))}else {if(!bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]){bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]= true;bill[_0x503bx24[_0xe812[88]]][_0xe812[139]]= _0xe812[204]};ami[_0xe812[148]](_0xe812[205],_[_0xe812[147]](bill[_0x503bx24[_0xe812[88]]]))}};bill[_0x503bx24[_0xe812[88]]][_0xe812[99]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[202]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[139]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[206]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[207]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[208]]= null};delete bill[_0x503bx24[_0xe812[88]]][_0xe812[93]];if(!_0x503bx2e){bill[_0x503bx24[_0xe812[88]]][_0xe812[97]]= _0x503bx24[_0xe812[200]];if(_[_0xe812[193]](applications,_0x503bx24[_0xe812[200]])){if(_0x503bx24[_0xe812[200]]=== _0xe812[166]){var _0x503bx2f=_0x503bx24[_0xe812[209]][_0xe812[201]]();if(_[_0xe812[211]](_0x503bx2f,_0xe812[210])){_0x503bx2f= _0x503bx2f[_0xe812[102]](_0xe812[212]);var _0x503bx30=_0x503bx2f[0][_0xe812[213]](/cdr\((.*)\)/);if(_0x503bx30){bill[_0x503bx24[_0xe812[88]]][_0x503bx30[1]]= _0x503bx2f[1];if(_0x503bx30[1]=== _0xe812[192]&& _0x503bx2f[1]=== _0xe812[191]){var _0x503bx31=bill[_0x503bx24[_0xe812[88]]][_0xe812[182]][_0xe812[102]](/\/|-/)[1];activeTrunks[_0x503bx31]&& (bill[_0x503bx24[_0xe812[88]]][_0xe812[195]]= activeTrunks[_0x503bx31])}}}else {if(_[_0xe812[211]](_0x503bx2f,_0xe812[214])){bill[_0x503bx24[_0xe812[88]]][_0xe812[177]]= _0x503bx2f[_0xe812[102]](_0xe812[212])[1];bill[_0x503bx24[_0xe812[88]]][_0xe812[197]]= util[_0xe812[59]](_0xe812[180],bill[_0x503bx24[_0xe812[88]]][_0xe812[181]],bill[_0x503bx24[_0xe812[88]]][_0xe812[177]]);bill[_0x503bx24[_0xe812[88]]][_0xe812[192]]=== _0xe812[191]&& (bill[_0x503bx24[_0xe812[88]]][_0xe812[215]]= bill[_0x503bx24[_0xe812[88]]][_0xe812[177]])}else {if(_[_0xe812[211]](_0x503bx2f,_0xe812[216])){bill[_0x503bx24[_0xe812[88]]][_0xe812[181]]= _0x503bx2f[_0xe812[102]](_0xe812[212])[1];bill[_0x503bx24[_0xe812[88]]][_0xe812[197]]= util[_0xe812[59]](_0xe812[180],bill[_0x503bx24[_0xe812[88]]][_0xe812[181]],bill[_0x503bx24[_0xe812[88]]][_0xe812[177]])}}}};bill[_0x503bx24[_0xe812[88]]][_0xe812[217]]= _0x503bx24[_0xe812[200]];bill[_0x503bx24[_0xe812[88]]][_0xe812[103]]= _0x503bx24[_0xe812[209]]};if(_0x503bx24[_0xe812[200]]=== _0xe812[98]){bill[_0x503bx24[_0xe812[88]]][_0xe812[98]]= _0x503bx24[_0xe812[209]][_0xe812[102]](_0xe812[101])[0];bill[_0x503bx24[_0xe812[88]]][_0xe812[93]]= true}}else {bill[_0x503bx24[_0xe812[88]]][_0xe812[99]]= _0x503bx24[_0xe812[200]][_0xe812[201]]();if(_0x503bx24[_0xe812[200]]=== _0xe812[98]){bill[_0x503bx24[_0xe812[88]]][_0xe812[98]]= _0x503bx24[_0xe812[98]];bill[_0x503bx24[_0xe812[88]]][_0xe812[93]]= true}}}}function varset(_0x503bx24){if(_0x503bx24[_0xe812[220]][_0xe812[219]](_0xe812[218])){logger[_0xe812[73]](_0xe812[221],_0x503bx24[_0xe812[88]],_0x503bx24[_0xe812[222]]);videoOnUrls[_0x503bx24[_0xe812[88]]]= _0x503bx24[_0xe812[222]][_0xe812[223]](/\\/g,_0xe812[183])}else {if(_0x503bx24[_0xe812[220]][_0xe812[219]](_0xe812[89])){extraVars[_0x503bx24[_0xe812[88]]]= _0x503bx24[_0xe812[222]]}};if(bill[_0x503bx24[_0xe812[88]]]){if(_0x503bx24[_0xe812[220]][_0xe812[219]](_0xe812[224])){bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]= true;bill[_0x503bx24[_0xe812[88]]][_0xe812[202]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[149]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[139]]= _0x503bx24[_0xe812[222]][_0xe812[201]]();if(bill[_0x503bx24[_0xe812[88]]][_0xe812[139]]=== _0xe812[225]){bill[_0x503bx24[_0xe812[88]]][_0xe812[63]]= true;bill[_0x503bx24[_0xe812[88]]][_0xe812[179]]= _0x503bx24[_0xe812[179]];bill[_0x503bx24[_0xe812[88]]][_0xe812[178]]= _0x503bx24[_0xe812[178]];ami[_0xe812[148]](_0xe812[205],_[_0xe812[147]](bill[_0x503bx24[_0xe812[88]]]));delete bill[_0x503bx24[_0xe812[88]]][_0xe812[93]];bill[_0x503bx24[_0xe812[88]]][_0xe812[63]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[202]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[139]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[206]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[207]]= null;bill[_0x503bx24[_0xe812[88]]][_0xe812[208]]= null}}}}function queuecallerabandon(_0x503bx24){if(bill[_0x503bx24[_0xe812[88]]]&&  !bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]){bill[_0x503bx24[_0xe812[88]]][_0xe812[202]]= true;bill[_0x503bx24[_0xe812[88]]][_0xe812[149]]= false;bill[_0x503bx24[_0xe812[88]]][_0xe812[206]]= _0x503bx24[_0xe812[206]];bill[_0x503bx24[_0xe812[88]]][_0xe812[207]]= _0x503bx24[_0xe812[207]];bill[_0x503bx24[_0xe812[88]]][_0xe812[208]]= _0x503bx24[_0xe812[208]]}}function hangup(_0x503bx24){if(bill[_0x503bx24[_0xe812[88]]]){var _0x503bx35=moment();bill[_0x503bx24[_0xe812[88]]][_0xe812[226]]= _0x503bx35[_0xe812[59]](_0xe812[58]);bill[_0x503bx24[_0xe812[88]]][_0xe812[227]]= _0x503bx35[_0xe812[230]](bill[_0x503bx24[_0xe812[88]]][_0xe812[228]],_0xe812[229]);if(bill[_0x503bx24[_0xe812[88]]][_0xe812[188]]){bill[_0x503bx24[_0xe812[88]]][_0xe812[231]]= _0x503bx35[_0xe812[230]](bill[_0x503bx24[_0xe812[88]]][_0xe812[188]],_0xe812[229])};ami[_0xe812[148]](_0xe812[78],bill[_0x503bx24[_0xe812[88]]]);if(bill[_0x503bx24[_0xe812[88]]][_0xe812[93]]|| (bill[_0x503bx24[_0xe812[88]]][_0xe812[149]]&&  !bill[_0x503bx24[_0xe812[88]]][_0xe812[188]])){if(bill[_0x503bx24[_0xe812[88]]][_0xe812[202]]){ami[_0xe812[148]](_0xe812[203],bill[_0x503bx24[_0xe812[88]]])}else {if(!bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]){bill[_0x503bx24[_0xe812[88]]][_0xe812[199]]= true;bill[_0x503bx24[_0xe812[88]]][_0xe812[139]]= _0xe812[204]};ami[_0xe812[148]](_0xe812[205],bill[_0x503bx24[_0xe812[88]]])}};delete bill[_0x503bx24[_0xe812[88]]]}}ami[_0xe812[74]](_0xe812[205],function(_0x503bx24){try{addToQueue(_0xe812[232],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[233],err)}});ami[_0xe812[74]](_0xe812[203],function(_0x503bx24){try{addToQueue(_0xe812[234],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[235],err)}});ami[_0xe812[74]](_0xe812[236],function(_0x503bx24){try{newchannel(_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[237],err)}});ami[_0xe812[74]](_0xe812[238],function(_0x503bx24){try{newstate(_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[239],err)}});ami[_0xe812[74]](_0xe812[240],function(_0x503bx24){try{newexten(_0x503bx24,false)}catch(err){logger[_0xe812[27]](_0xe812[241],err)}});ami[_0xe812[74]](_0xe812[242],function(_0x503bx24){try{varset(_0x503bx24);addToQueue(_0xe812[242],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[243],err)}});ami[_0xe812[74]](_0xe812[234],function(_0x503bx24){try{queuecallerabandon(_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[244],err)}});ami[_0xe812[74]](_0xe812[245],function(_0x503bx24){try{delete videoOnUrls[_0x503bx24[_0xe812[88]]];delete extraVars[_0x503bx24[_0xe812[88]]];hangup(_0x503bx24);addToQueue(_0xe812[245],_0x503bx24)}catch(err){logger[_0xe812[27]](_0xe812[246],err)}});function handlePause(_0x503bx37,_0x503bx38){return function(_0x503bx39){var _0x503bx3a=_0x503bx39[_0xe812[247]];var _0x503bx3b=false;var _0x503bx3c,_0x503bx3d;_0x503bx3c= _0x503bx3d= _0x503bx37[_0xe812[248]][_0xe812[192]]|| _0x503bx38[_0xe812[249]]|| _0x503bx38[_0xe812[250]];if(_[_0xe812[211]](_0x503bx3d,_0xe812[251])){_0x503bx3d= _0x503bx3d[_0xe812[252]](1);_0x503bx3b= true};var _0x503bx3e={id:_0x503bx39[_0xe812[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x503bx3c,lastPauseAt:moment()[_0xe812[59]](_0xe812[58])};return _0x503bx39[_0xe812[269]](_0x503bx3e)[_0xe812[32]](function(_0x503bx44){if(_0x503bx44){return events[_0xe812[268]](_[_0xe812[267]]({newValues:_0x503bx3e},_0x503bx44[_0xe812[266]]))}})[_0xe812[32]](function(){var _0x503bx43=moment()[_0xe812[59]](_0xe812[58]);return models[_0xe812[264]][_0xe812[265]]({duration:moment(_0x503bx43)[_0xe812[230]](moment(_0x503bx3a),_0xe812[229]),exitAt:_0x503bx43},{where:{membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[258],exitAt:null}})})[_0xe812[32]](function(){var _0x503bx3f=(_0x503bx3e[_0xe812[254]]&&  !_0x503bx3b)?channels:_[_0xe812[255]](channels,function(_0x503bx40){return _0x503bx40!== _0xe812[20]});var _0x503bx41=[];_0x503bx3f[_0xe812[31]](function(_0x503bx42){_0x503bx41[_0xe812[262]]({channel:_0x503bx42,membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[258],enterAt:moment()[_0xe812[59]](_0xe812[58]),data1:_0x503bx3d,data2:_0x503bx38[_0xe812[259]],data4:_0x503bx3d,role:_0x503bx39[_0xe812[260]],internal:_0x503bx39[_0xe812[174]],uniqueid:_0x503bx38[_0xe812[261]]})});return models[_0xe812[264]][_0xe812[263]](_0x503bx41,{raw:true,individualHooks:true})})}}function handleUnpause(_0x503bx37,_0x503bx38){return function(_0x503bx39){var _0x503bx3e;if(!_0x503bx37[_0xe812[248]]){_0x503bx37[_0xe812[248]]= {}};if(_0x503bx37[_0xe812[248]][_0xe812[192]]!== _0xe812[270]){events[_0xe812[272]](_0x503bx39[_0xe812[29]],_0x503bx39[_0xe812[271]],false)};switch(_0x503bx37[_0xe812[248]][_0xe812[182]]){case _0xe812[20]:_0x503bx3e= {id:_0x503bx39[_0xe812[253]],voicePause:false};return _0x503bx39[_0xe812[269]](_0x503bx3e)[_0xe812[32]](function(_0x503bx44){return events[_0xe812[268]](_[_0xe812[267]]({newValues:_0x503bx3e},_0x503bx44[_0xe812[266]]))})[_0xe812[32]](function(){return models[_0xe812[264]][_0xe812[274]]({where:{channel:_0x503bx37[_0xe812[248]][_0xe812[182]],membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[258],exitAt:null}})})[_0xe812[32]](handleEntityNotFound({message:_0xe812[273]}))[_0xe812[32]](function(_0x503bx46){return _0x503bx46[_0xe812[269]]({exitAt:moment()[_0xe812[59]](_0xe812[58])})})[_0xe812[32]](function(){return _0x503bx39});case _0xe812[21]:;case _0xe812[22]:;case _0xe812[16]:;case _0xe812[23]:;case _0xe812[24]:var _0x503bx47={};_0x503bx47[util[_0xe812[59]](_0xe812[275],_0x503bx37[_0xe812[248]][_0xe812[182]],_0xe812[276])]= false;return _0x503bx39[_0xe812[269]](_0x503bx47)[_0xe812[32]](function(_0x503bx39){_0x503bx47[_0xe812[253]]= _0x503bx39[_0xe812[253]];return events[_0xe812[268]](_[_0xe812[267]]({newValues:_0x503bx47},_0x503bx39[_0xe812[266]]))})[_0xe812[32]](function(){return models[_0xe812[264]][_0xe812[274]]({where:{channel:_0x503bx37[_0xe812[248]][_0xe812[182]],membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[258],exitAt:null}})})[_0xe812[32]](handleEntityNotFound({message:_0xe812[273]}))[_0xe812[32]](function(_0x503bx46){return _0x503bx46[_0xe812[269]]({exitAt:moment()[_0xe812[59]](_0xe812[58])})})[_0xe812[32]](function(){return _0x503bx39});default:_0x503bx3e= {id:_0x503bx39[_0xe812[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0x503bx39[_0xe812[269]](_0x503bx3e)[_0xe812[32]](function(_0x503bx44){return events[_0xe812[268]](_[_0xe812[267]]({newValues:_0x503bx3e},_0x503bx39[_0xe812[266]]))})[_0xe812[32]](function(){return models[_0xe812[264]][_0xe812[33]]({where:{membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[258],exitAt:null}})})[_0xe812[32]](function(_0x503bx48){var _0x503bx49=[];_0x503bx48[_0xe812[31]](function(_0x503bx4a){_0x503bx49[_0xe812[262]](_0x503bx4a[_0xe812[269]]({exitAt:moment()[_0xe812[59]](_0xe812[58])}))});return BPromise[_0xe812[277]](_0x503bx49)})[_0xe812[32]](function(){return _0x503bx39})}}}function queueAddUpdate(_0x503bx4c,_0x503bx4d){return models[_0xe812[278]][_0xe812[274]]({where:{queue:_0x503bx4c,membername:_0x503bx4d}})[_0xe812[32]](function(_0x503bx4e){if(_0x503bx4e){return _0x503bx4e[_0xe812[269]]({logged:true,loggedAt:moment()[_0xe812[59]](_0xe812[58])})}})}function handleLogin(_0x503bx37,_0x503bx38){return function(_0x503bx39){return BPromise[_0xe812[288]]()[_0xe812[32]](function(){return events[_0xe812[268]](_[_0xe812[287]]({newValues:_0x503bx39[_0xe812[266]]},_0x503bx39[_0xe812[266]]))})[_0xe812[32]](function(){return _0x503bx39[_0xe812[286]]()})[_0xe812[32]](function(voiceQueues){var _0x503bx50=[];voiceQueues[_0xe812[31]](function(_0x503bx51){_0x503bx50[_0xe812[262]](amiAction({action:_0xe812[283],queue:_0x503bx51[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),membername:_0x503bx39[_0xe812[29]],penalty:_0x503bx51[_0xe812[278]][_0xe812[284]],paused:_0x503bx39[_0xe812[285]]})[_0xe812[28]](function(_0x503bx19){if(_0x503bx19[_0xe812[280]]=== _0xe812[281]){return queueAddUpdate(_0x503bx51[_0xe812[29]],_0x503bx39[_0xe812[29]])};logger[_0xe812[27]](_0xe812[282],_0x503bx51[_0xe812[29]],_0x503bx19)}))});return _0x503bx50})[_0xe812[277]]()[_0xe812[32]](function(){return models[_0xe812[264]][_0xe812[33]]({where:{membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[279],exitAt:null}})})[_0xe812[32]](function(_0x503bx48){var _0x503bx49=[];_0x503bx48[_0xe812[31]](function(_0x503bx4a){_0x503bx49[_0xe812[262]](_0x503bx4a[_0xe812[269]]({exitAt:moment()[_0xe812[59]](_0xe812[58])}))});return BPromise[_0xe812[277]](_0x503bx49)})[_0xe812[32]](function(){var _0x503bx41=[];channels[_0xe812[31]](function(_0x503bx42){_0x503bx41[_0xe812[262]]({channel:_0x503bx42,membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[279],enterAt:moment()[_0xe812[59]](_0xe812[58]),role:_0x503bx39[_0xe812[260]],internal:_0x503bx39[_0xe812[174]]})});return models[_0xe812[264]][_0xe812[263]](_0x503bx41,{raw:true,individualHooks:true})})[_0xe812[32]](function(){return _0x503bx39})}}function logoutAgent(_0x503bx39){return BPromise[_0xe812[288]]()[_0xe812[32]](function(){return events[_0xe812[268]](_[_0xe812[287]]({newValues:{id:_0x503bx39[_0xe812[253]],online:false}},_0x503bx39[_0xe812[266]],{online:false}))})[_0xe812[32]](function(){return models[_0xe812[65]][_0xe812[33]]()})[_0xe812[32]](function(voiceQueues){var _0x503bx50=[];voiceQueues[_0xe812[31]](function(_0x503bx51){_0x503bx50[_0xe812[262]](amiAction({action:_0xe812[289],queue:_0x503bx51[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]])})[_0xe812[28]](function(_0x503bx19){}))});return BPromise[_0xe812[277]](_0x503bx50)})[_0xe812[32]](function(_0x503bx53){return models[_0xe812[264]][_0xe812[33]]({where:{membername:_0x503bx39[_0xe812[29]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),type:_0xe812[279],exitAt:null}})})[_0xe812[32]](function(_0x503bx48){var _0x503bx49=[];_0x503bx48[_0xe812[31]](function(_0x503bx4a){_0x503bx49[_0xe812[262]](_0x503bx4a[_0xe812[269]]({exitAt:moment()[_0xe812[59]](_0xe812[58])}))});return BPromise[_0xe812[277]](_0x503bx49)})}function handleLogout(_0x503bx37,_0x503bx38){return function(_0x503bx39){return BPromise[_0xe812[288]]()[_0xe812[32]](function(){if(_0x503bx39[_0xe812[260]]=== _0xe812[290]){return logoutAgent(_0x503bx39)}})[_0xe812[32]](function(){return _0x503bx39[_0xe812[269]]({online:false})})}}function handleQueueAdd(_0x503bx37,_0x503bx38){return function(_0x503bx39){var _0x503bx56=[];switch(_0x503bx37[_0xe812[248]][_0xe812[182]]){case _0xe812[20]:_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx56[_0xe812[262]](models[_0xe812[278]][_0xe812[292]]({where:{UserId:_0x503bx39[_0xe812[253]],queue:_0x503bx4c},defaults:{queue:_0x503bx4c,location:util[_0xe812[59]](_0xe812[291],_0x503bx39[_0xe812[29]]),membername:_0x503bx39[_0xe812[29]],UserId:_0x503bx39[_0xe812[253]],penalty:_0x503bx38[_0xe812[259]]},individualHooks:true,raw:true}))});return BPromise[_0xe812[277]](_0x503bx56)[_0xe812[32]](function(){var _0x503bx50=[];_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx50[_0xe812[262]](amiAction({action:_0xe812[283],queue:_0x503bx4c,paused:_0x503bx39[_0xe812[254]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]]),membername:_0x503bx39[_0xe812[29]]})[_0xe812[28]](function(_0x503bx19){if(_0x503bx19[_0xe812[280]]=== _0xe812[281]){return queueAddUpdate(_0x503bx4c,_0x503bx39[_0xe812[29]])};logger[_0xe812[27]](_0xe812[294],_0x503bx4c,_0x503bx19)}))});return BPromise[_0xe812[277]](_0x503bx50)});case _0xe812[21]:_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx56[_0xe812[262]](models[_0xe812[295]][_0xe812[292]]({where:{UserId:_0x503bx39[_0xe812[253]],ChatQueueId:_0x503bx4c[_0xe812[253]]},defaults:{ChatQueueId:_0x503bx4c[_0xe812[253]],queue:_0x503bx4c[_0xe812[29]],UserId:_0x503bx39[_0xe812[253]],penalty:_0x503bx38[_0xe812[259]]},individualHooks:true,raw:true}))});return BPromise[_0xe812[277]](_0x503bx56);case _0xe812[22]:_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx56[_0xe812[262]](models[_0xe812[296]][_0xe812[292]]({where:{UserId:_0x503bx39[_0xe812[253]],MailQueueId:_0x503bx4c[_0xe812[253]]},defaults:{MailQueueId:_0x503bx4c[_0xe812[253]],queue:_0x503bx4c[_0xe812[29]],UserId:_0x503bx39[_0xe812[253]],penalty:_0x503bx38[_0xe812[259]]},individualHooks:true,raw:true}))});return BPromise[_0xe812[277]](_0x503bx56);case _0xe812[23]:_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx56[_0xe812[262]](models[_0xe812[297]][_0xe812[292]]({where:{UserId:_0x503bx39[_0xe812[253]],SmsQueueId:_0x503bx4c[_0xe812[253]]},defaults:{SmsQueueId:_0x503bx4c[_0xe812[253]],queue:_0x503bx4c[_0xe812[29]],UserId:_0x503bx39[_0xe812[253]],penalty:_0x503bx38[_0xe812[259]]},individualHooks:true,raw:true}))});return BPromise[_0xe812[277]](_0x503bx56);case _0xe812[24]:_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx56[_0xe812[262]](models[_0xe812[298]][_0xe812[292]]({where:{UserId:_0x503bx39[_0xe812[253]],OpenchannelQueueId:_0x503bx4c[_0xe812[253]]},defaults:{OpenchannelQueueId:_0x503bx4c[_0xe812[253]],queue:_0x503bx4c[_0xe812[29]],UserId:_0x503bx39[_0xe812[253]],penalty:_0x503bx38[_0xe812[259]]},individualHooks:true,raw:true}))});return BPromise[_0xe812[277]](_0x503bx56);case _0xe812[16]:_0x503bx37[_0xe812[248]][_0xe812[293]][_0xe812[31]](function(_0x503bx4c){_0x503bx56[_0xe812[262]](models[_0xe812[299]][_0xe812[292]]({where:{UserId:_0x503bx39[_0xe812[253]],FaxQueueId:_0x503bx4c[_0xe812[253]]},defaults:{faxQueueId:_0x503bx4c[_0xe812[253]],queue:_0x503bx4c[_0xe812[29]],UserId:_0x503bx39[_0xe812[253]],penalty:_0x503bx38[_0xe812[259]]},individualHooks:true,raw:true}))});return BPromise[_0xe812[277]](_0x503bx56);default:}}}function handleQueueRemove(_0x503bx37,_0x503bx38){return function(_0x503bx39){switch(_0x503bx37[_0xe812[248]][_0xe812[182]]){case _0xe812[20]:return models[_0xe812[278]][_0xe812[301]]({where:{UserId:_0x503bx39[_0xe812[253]],queue:_0x503bx37[_0xe812[248]][_0xe812[98]]},individualHooks:true,raw:true})[_0xe812[32]](function(){return amiAction({action:_0xe812[289],queue:_0x503bx37[_0xe812[248]][_0xe812[98]],interface:util[_0xe812[59]](_0xe812[256],_0xe812[257],_0x503bx39[_0xe812[29]])})})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[300],_0x503bx19[_0xe812[26]])});case _0xe812[21]:return models[_0xe812[295]][_0xe812[274]]({where:{UserId:_0x503bx39[_0xe812[253]],ChatQueueId:_0x503bx37[_0xe812[248]][_0xe812[303]]}})[_0xe812[32]](function(_0x503bx58){if(_0x503bx58){return _0x503bx58[_0xe812[301]]()}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[302],_0x503bx19)});case _0xe812[22]:return models[_0xe812[296]][_0xe812[274]]({where:{UserId:_0x503bx39[_0xe812[253]],MailQueueId:_0x503bx37[_0xe812[248]][_0xe812[303]]}})[_0xe812[32]](function(_0x503bx58){if(_0x503bx58){return _0x503bx58[_0xe812[301]]()}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[304],_0x503bx19)});case _0xe812[23]:return models[_0xe812[297]][_0xe812[274]]({where:{UserId:_0x503bx39[_0xe812[253]],SmsQueueId:_0x503bx37[_0xe812[248]][_0xe812[303]]}})[_0xe812[32]](function(_0x503bx58){if(_0x503bx58){return _0x503bx58[_0xe812[301]]()}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[305],_0x503bx19)});case _0xe812[24]:return models[_0xe812[298]][_0xe812[274]]({where:{UserId:_0x503bx39[_0xe812[253]],OpenchannelQueueId:_0x503bx37[_0xe812[248]][_0xe812[303]]}})[_0xe812[32]](function(_0x503bx58){if(_0x503bx58){return _0x503bx58[_0xe812[301]]()}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[306],_0x503bx19)});case _0xe812[16]:return models[_0xe812[299]][_0xe812[274]]({where:{UserId:_0x503bx39[_0xe812[253]],FaxQueueId:_0x503bx37[_0xe812[248]][_0xe812[303]]}})[_0xe812[32]](function(_0x503bx58){if(_0x503bx58){return _0x503bx58[_0xe812[301]]()}})[_0xe812[28]](function(_0x503bx19){faxLogger[_0xe812[27]](_0xe812[307],_0x503bx19)});default:}}}function handleEntityNotFound(_0x503bx5a){return function(_0x503bx5b){if(!_0x503bx5b){throw _0x503bx5a};return _0x503bx5b}}function onSave(_0x503bx38,_0x503bx37){switch(_0x503bx38[_0xe812[29]]){case _0xe812[311]:return models[_0xe812[310]][_0xe812[309]](_0x503bx37[_0xe812[248]][_0xe812[290]])[_0xe812[32]](handleEntityNotFound({message:_0xe812[308]}))[_0xe812[32]](handlePause(_0x503bx37,_0x503bx38));case _0xe812[312]:return models[_0xe812[310]][_0xe812[309]](_0x503bx37[_0xe812[248]][_0xe812[290]])[_0xe812[32]](handleEntityNotFound({message:_0xe812[308]}))[_0xe812[32]](handleUnpause(_0x503bx37,_0x503bx38));case _0xe812[313]:return models[_0xe812[310]][_0xe812[309]](_0x503bx38[_0xe812[250]])[_0xe812[32]](handleEntityNotFound({message:_0xe812[308]}))[_0xe812[32]](handleLogin(_0x503bx37,_0x503bx38))[_0xe812[32]](function(_0x503bx5d){return _0x503bx5d});case _0xe812[314]:return models[_0xe812[310]][_0xe812[309]](_0x503bx38[_0xe812[250]])[_0xe812[32]](handleEntityNotFound({message:_0xe812[308]}))[_0xe812[32]](handleUnpause(_0x503bx37,_0x503bx38))[_0xe812[32]](handleLogout(_0x503bx37,_0x503bx38));case _0xe812[283]:return models[_0xe812[310]][_0xe812[309]](_0x503bx37[_0xe812[248]][_0xe812[290]])[_0xe812[32]](handleEntityNotFound({message:_0xe812[308]}))[_0xe812[32]](handleQueueAdd(_0x503bx37,_0x503bx38))[_0xe812[32]](function(_0x503bx58){if(_0x503bx37[_0xe812[248]][_0xe812[182]]!== _0xe812[20]){return events[_0xe812[316]](_0x503bx58,_0x503bx37[_0xe812[248]][_0xe812[182]])}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[315],_0x503bx19[_0xe812[26]])});case _0xe812[289]:return models[_0xe812[310]][_0xe812[309]](_0x503bx37[_0xe812[248]][_0xe812[290]])[_0xe812[32]](handleEntityNotFound({message:_0xe812[308]}))[_0xe812[32]](handleQueueRemove(_0x503bx37,_0x503bx38))[_0xe812[32]](function(_0x503bx58){if(_0x503bx37[_0xe812[248]][_0xe812[182]]!== _0xe812[20]){return events[_0xe812[318]](_0x503bx58,_0x503bx37[_0xe812[248]][_0xe812[182]])}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[317],_0x503bx19[_0xe812[26]])});default:throw {message:_0xe812[319]}}}function clean(channels){removeInactiveCalls();_[_0xe812[31]](channels,function(_0x503bx42){removeExpiredApplications(_0x503bx42)})}function removeInactiveCalls(){logger[_0xe812[73]](_0xe812[320]);var _0x503bx60=[],_0x503bx61=[],_0x503bx62=moment()[_0xe812[59]](_0xe812[58]);return amiAction({action:_0xe812[337],command:_0xe812[338]})[_0xe812[32]](function(_0x503bx6a){var _0x503bx6b;if(_0x503bx6a&& _0x503bx6a[_0xe812[331]]){var _0x503bx58=_0x503bx6a[_0xe812[331]][_0xe812[102]](_0xe812[332]);_[_0xe812[31]](_0x503bx58,function(_0x503bx40){if(_0x503bx40){_0x503bx6b= _0x503bx40[_0xe812[102]](_0xe812[333]);_0x503bx6b[_0xe812[334]]=== 14&& _0x503bx61[_0xe812[262]](_0x503bx6b[_0xe812[335]]())}})};return models[_0xe812[336]][_0xe812[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0xe812[32]](function(_0x503bx69){_[_0xe812[31]](_0x503bx69,function(_0x503bx66){if(!_[_0xe812[193]](_0x503bx61,_0x503bx66[_0xe812[88]])){_0x503bx60[_0xe812[262]](_0x503bx66[_0xe812[269]]({queuecallerleaveAt:_0x503bx62,queuecallerexitAt:_0x503bx62,queuecallerexit:true,queuecallerexitreason:_0xe812[324]}))}});return models[_0xe812[330]][_0xe812[33]]({where:{leaveAt:null}})})[_0xe812[32]](function(_0x503bx68){_[_0xe812[31]](_0x503bx68,function(_0x503bx66){if(!_[_0xe812[193]](_0x503bx61,_0x503bx66[_0xe812[88]])){_0x503bx60[_0xe812[262]](_0x503bx66[_0xe812[269]]({leaveAt:_0x503bx62,network:_0xe812[328]}))}});return models[_0xe812[329]][_0xe812[33]]({where:{endtime:null}})})[_0xe812[32]](function(_0x503bx67){_[_0xe812[31]](_0x503bx67,function(_0x503bx66){if(!_[_0xe812[193]](_0x503bx61,_0x503bx66[_0xe812[88]])){_0x503bx60[_0xe812[262]](_0x503bx66[_0xe812[269]]({endtime:_0x503bx62,dialstatus:_0xe812[325]}))}});return models[_0xe812[327]][_0xe812[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0xe812[32]](function(_0x503bx65){_[_0xe812[31]](_0x503bx65,function(_0x503bx66){if(!_[_0xe812[193]](_0x503bx61,_0x503bx66[_0xe812[88]])){_0x503bx60[_0xe812[262]](_0x503bx66[_0xe812[269]]({lastevent:_0xe812[199],agentringnoanswer:true,agentringnoanswerAt:_0x503bx62,reason:_0xe812[325]}))}});return models[_0xe812[264]][_0xe812[33]]({where:{type:_0xe812[326],enterAt:{$ne:null},exitAt:null}})})[_0xe812[32]](function(_0x503bx63){_[_0xe812[31]](_0x503bx63,function(_0x503bx64){if(!_[_0xe812[193]](_0x503bx61,_0x503bx64[_0xe812[88]])){_0x503bx60[_0xe812[262]](_0x503bx64[_0xe812[269]]({exitAt:_0x503bx64[_0xe812[323]],data4:_0xe812[324]}))}});return _0x503bx60})[_0xe812[277]]()[_0xe812[32]](function(){logger[_0xe812[73]](_0xe812[322])})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[321],_0x503bx19[_0xe812[26]])})}function removeExpiredApplications(_0x503bx42){return models[_0xe812[350]+ _0x503bx42+ _0xe812[351]][_0xe812[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0xe812[32]](function(_0x503bx6d){var _0x503bx6e,_0x503bx6f=[],_0x503bx70=[];_[_0xe812[31]](_0x503bx6d,function(_0x503bx71){_0x503bx6e= moment(_0x503bx71[_0xe812[344]])[_0xe812[343]](_0x503bx71[_0xe812[342]],_0xe812[229]);if(moment()[_0xe812[345]](_0x503bx6e)){_0x503bx70[_0xe812[262]](_0x503bx71[_0xe812[346]]);_0x503bx6f[_0xe812[262]](_0x503bx71[_0xe812[269]]({timeout:true,leaveAt:moment()[_0xe812[59]](_0xe812[58])}))}});if(_0x503bx70[_0xe812[334]]> 0){_0x503bx70= _[_0xe812[347]](_0x503bx70);logger[_0xe812[73]](_0xe812[348],_0x503bx70);_0x503bx6f[_0xe812[262]](models[_0x503bx42+ _0xe812[349]][_0xe812[265]]({waiting:false},{where:{id:_0x503bx70},individualHooks:true}))};return _0x503bx6f})[_0xe812[277]]()[_0xe812[32]](function(){logger[_0xe812[73]](_0xe812[339]+ _0x503bx42+ _0xe812[341])})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[339]+ _0x503bx42+ _0xe812[340],_0x503bx19)})}var channelModels=[_0xe812[352],_0xe812[353],_0xe812[354],_0xe812[355],_0xe812[356]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0x503bx74){switch(_0x503bx74[_0xe812[192]]){case _0xe812[367]:return models[_0xe812[369]][_0xe812[368]](_0xe812[367])[_0xe812[33]]()[_0xe812[32]](function(_0x503bx75){var _0x503bx76=_0xe812[183];var _0x503bx77=_0xe812[358];_0x503bx75[_0xe812[31]](function(_0x503bx78){_0x503bx76+= util[_0xe812[59]](_0xe812[359],_0x503bx78[_0xe812[222]])});fs[_0xe812[366]](path[_0xe812[361]](config[_0xe812[360]],_0x503bx77),_0x503bx76,{flags:_0xe812[362],mode:parseInt(_0xe812[363],8)},function(_0x503bx19){if(_0x503bx19){throw _0x503bx19};amiCommand(_0xe812[364]);logger[_0xe812[73]](_0xe812[365])})})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[357],_0x503bx19)});case _0xe812[374]:return models[_0xe812[369]][_0xe812[368]](_0xe812[374])[_0xe812[33]]()[_0xe812[32]](function(_0x503bx79){var _0x503bx7a=_0xe812[183];var _0x503bx7b=_0xe812[371];_0x503bx79[_0xe812[31]](function(_0x503bx7c){_0x503bx7a+= util[_0xe812[59]](_0xe812[372],_0x503bx7c[_0xe812[222]])});fs[_0xe812[366]](path[_0xe812[361]](config[_0xe812[360]],_0x503bx7b),_0x503bx7a,{flags:_0xe812[362],mode:parseInt(_0xe812[363],8)},function(_0x503bx19){if(_0x503bx19){throw _0x503bx19};amiCommand(_0xe812[364]);logger[_0xe812[73]](_0xe812[373])})})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[370],_0x503bx19)});default:logger[_0xe812[27]](_0xe812[375],_0x503bx74[_0xe812[192]])}}function amiCommand(_0x503bx7e){return amiAction({Action:_0xe812[337],command:_0x503bx7e})[_0xe812[32]](function(_0x503bx58){logger[_0xe812[73]](_0xe812[376],_0x503bx7e,_0x503bx58)})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[376],_0x503bx7e,_0x503bx19)})}function trunksRewrite(){var _0x503bx80=_0xe812[183];var _0x503bx81=_0xe812[183];var _0x503bx82=_0xe812[377];return models[_0xe812[34]][_0xe812[33]]({where:{active:true},raw:true})[_0xe812[32]](function(_0x503bx1a){activeTrunks= {};var _0x503bx83;_0x503bx1a[_0xe812[31]](function(_0x503bx84){_0x503bx83= null;activeTrunks[_0x503bx84[_0xe812[29]]]= _0x503bx84[_0xe812[30]];delete _0x503bx84[_0xe812[378]];delete _0x503bx84[_0xe812[344]];delete _0x503bx84[_0xe812[379]];delete _0x503bx84[_0xe812[380]];delete _0x503bx84[_0xe812[83]];if(_0x503bx84[_0xe812[381]]&& _0x503bx84[_0xe812[381]]=== _0xe812[382]){_0x503bx84[_0xe812[383]]= _0xe812[382];_0x503bx84[_0xe812[384]]= _0xe812[382];_0x503bx84[_0xe812[385]]= _0xe812[328];_0x503bx84[_0xe812[386]]= _0xe812[387];_0x503bx84[_0xe812[388]]= _0xe812[389];_0x503bx84[_0xe812[390]]= _0xe812[391];_0x503bx84[_0xe812[392]]= _0xe812[393]}else {_0x503bx84[_0xe812[381]]= _0xe812[328]};if(_0x503bx84[_0xe812[85]]){_0x503bx81+= util[_0xe812[59]](_0x503bx82,_0x503bx84[_0xe812[85]])};delete _0x503bx84[_0xe812[85]];_0x503bx80+= util[_0xe812[59]](_0xe812[394],_0x503bx84[_0xe812[29]]);if(_0x503bx84[_0xe812[395]]){_0x503bx83= _0x503bx84[_0xe812[395]];delete _0x503bx84[_0xe812[395]]};for(var _0x503bx30 in _0x503bx84){if(_0x503bx84[_0x503bx30]){switch(_0x503bx30){case _0xe812[398]:var _0x503bx85=_0x503bx84[_0x503bx30][_0xe812[102]](_0xe812[396]);_0x503bx85[_0xe812[31]](function(_0x503bx40){_0x503bx80+= util[_0xe812[59]](_0xe812[397],_0x503bx30,_0x503bx40)});break;default:_0x503bx80+= util[_0xe812[59]](_0xe812[397],_0x503bx30,_0x503bx84[_0x503bx30])}}};if(_0x503bx83){_0x503bx80+= util[_0xe812[59]](_0xe812[399],_0x503bx83)}});fs[_0xe812[366]](path[_0xe812[361]](config[_0xe812[360]],_0xe812[400]),_0x503bx80,{flags:_0xe812[362],mode:parseInt(_0xe812[363],8)},function(_0x503bx19){if(_0x503bx19){throw _0x503bx19};logger[_0xe812[73]](_0xe812[401]);fs[_0xe812[366]](path[_0xe812[361]](config[_0xe812[360]],_0xe812[402]),_0x503bx81,{flags:_0xe812[362],mode:parseInt(_0xe812[363],8)},function(_0x503bx19){if(_0x503bx19){throw _0x503bx19};amiCommand(_0xe812[364]);logger[_0xe812[73]](_0xe812[403])})})})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0x503bx19)})}function rewriteContexts(_0x503bx74,_0x503bx87){return function(){var _0x503bx88=_0xe812[183];if(!_0x503bx87){_0x503bx88= util[_0xe812[59]](_0xe812[404],_0x503bx74[_0xe812[29]],_0x503bx74[_0xe812[29]])};return models[_0xe812[409]][_0xe812[33]]({where:{id:{$ne:_0x503bx74[_0xe812[253]]}}})[_0xe812[32]](function(_0x503bx89){_0x503bx89[_0xe812[31]](function(_0x503bx84){_0x503bx88+= util[_0xe812[59]](_0xe812[404],_0x503bx84[_0xe812[29]],_0x503bx84[_0xe812[29]])});fs[_0xe812[366]](path[_0xe812[361]](config[_0xe812[360]],_0xe812[406]),_0x503bx88,{flags:_0xe812[362],mode:parseInt(_0xe812[363],8)},function(_0x503bx19){if(_0x503bx19){throw _0x503bx19};logger[_0xe812[73]](_0xe812[407]);amiCommand(_0xe812[408])})})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[405],_0x503bx19)})}}function createHangup(_0x503bx74){return function(){logger[_0xe812[73]](_0xe812[410],_0x503bx74[_0xe812[29]]);var _0x503bx47=[{context:_0x503bx74[_0xe812[29]],exten:_0xe812[411],priority:_0xe812[412],VoiceContextId:_0x503bx74[_0xe812[253]],type:_0xe812[413],app:_0xe812[414]},{context:_0x503bx74[_0xe812[29]],exten:_0xe812[415],priority:_0xe812[412],VoiceContextId:_0x503bx74[_0xe812[253]],type:_0xe812[413],app:_0xe812[414]}];return models[_0xe812[418]][_0xe812[263]](_0x503bx47)[_0xe812[32]](function(){logger[_0xe812[73]](_0xe812[417])})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[416],_0x503bx19)})}}function rtpRewrite(_0x503bx47){if(_0x503bx47){var _0x503bx8c=_0xe812[183];for(var _0x503bx30 in _0x503bx47){_0x503bx47[_0x503bx30]&& (_0x503bx8c+= util[_0xe812[59]](_0xe812[397],_0x503bx30,_0x503bx47[_0x503bx30]))};try{fs[_0xe812[420]](path[_0xe812[361]](config[_0xe812[360]],_0xe812[419]),_0x503bx8c,{flag:_0xe812[362],mode:parseInt(_0xe812[363],8)});logger[_0xe812[73]](_0xe812[421]);amiCommand(_0xe812[422])}catch(err){logger[_0xe812[27]](_0xe812[423],err)}}else {logger[_0xe812[27]](_0xe812[424])}}function execRequest(_0x503bx74,_0x503bx8e,_0x503bx8f){return Util[_0xe812[427]](_0x503bx74,_0x503bx8e,_0x503bx8f)[_0xe812[32]](function(_0x503bx90){faxLogger[_0xe812[73]](_0xe812[426])})[_0xe812[28]](function(_0x503bx19){faxLogger[_0xe812[27]](_0xe812[425],_0x503bx19)})}function webhook(_0x503bx74,_0x503bx92,_0x503bx93){switch(_0x503bx93){case _0xe812[435]:if(_0x503bx92[_0xe812[428]]&& _0x503bx92[_0xe812[429]]){faxLogger[_0xe812[73]](_0xe812[430]+ _0x503bx92[_0xe812[29]]+ _0xe812[431]);execRequest(_0x503bx74,_0x503bx92[_0xe812[428]],_0x503bx92[_0xe812[429]])};if(_0x503bx92[_0xe812[432]][_0xe812[334]]){_[_0xe812[31]](_0x503bx92[_0xe812[432]],function(_0x503bx38){if(_0x503bx38[_0xe812[433]]){Util[_0xe812[434]](_0x503bx38,_0x503bx74)}})};break;case _0xe812[439]:if(_0x503bx92[_0xe812[436]]&& _0x503bx92[_0xe812[437]]){faxLogger[_0xe812[73]](_0xe812[430]+ _0x503bx92[_0xe812[29]]+ _0xe812[438]);execRequest(_0x503bx74,_0x503bx92[_0xe812[436]],_0x503bx92[_0xe812[437]])};break;case _0xe812[77]:if(_0x503bx92[_0xe812[440]]&& _0x503bx92[_0xe812[441]]){faxLogger[_0xe812[73]](_0xe812[430]+ _0x503bx92[_0xe812[29]]+ _0xe812[442]);execRequest(_0x503bx74,_0x503bx92[_0xe812[440]],_0x503bx92[_0xe812[441]])};break;default:faxLogger[_0xe812[27]](_0xe812[443])}}function getFaxRoom(){return function(_0x503bx92,_0x503bx95){if(_0x503bx95[_0xe812[444]]){return models[_0xe812[445]][_0xe812[309]](_0x503bx95.FaxRoomId)}else {return models[_0xe812[445]][_0xe812[33]]({limit:1,where:{contact:_0x503bx95[_0xe812[448]],FaxAccountId:_0x503bx92[_0xe812[253]]},order:[[_0xe812[378],_0xe812[450]]]})[_0xe812[32]](function(_0x503bx96){var _0x503bx97=_[_0xe812[446]](_0x503bx96);if(!_0x503bx97|| _0x503bx97[_0xe812[380]]=== _0xe812[447]){return models[_0xe812[445]][_0xe812[63]]({contact:_0x503bx95[_0xe812[448]],account:_0x503bx92[_0xe812[29]],status:_0xe812[449],FaxAccountId:_0x503bx92[_0xe812[253]]})}else {return _0x503bx97}})}}}function sendFax(_0x503bx99,_0x503bx9a,_0x503bx9b){if(_0x503bx99[_0xe812[380]]=== _0xe812[451]){faxLogger[_0xe812[454]](util[_0xe812[59]](_0xe812[452],_0x503bx99[_0xe812[453]],_0x503bx99[_0xe812[448]]));var _0x503bx9c;var _0x503bx9d=_0x503bx99;var _0x503bx9e=_0x503bx99[_0xe812[453]];var _0x503bx9f=_0x503bx99[_0xe812[448]];var _0x503bxa0;var _0x503bxa1;var _0x503bxa2,_0x503bxa3;return models[_0xe812[505]][_0xe812[274]]({where:{localstationid:_0x503bx9d[_0xe812[453]]}})[_0xe812[32]](function(_0x503bxa7){if(!_0x503bxa7){throw  new Error(_0xe812[502])};faxLogger[_0xe812[73]](_0xe812[503],_0x503bxa7[_0xe812[466]]);_0x503bxa0= _[_0xe812[147]](_0x503bxa7[_0xe812[266]]);return models[_0xe812[34]][_0xe812[274]]({where:{name:_0x503bxa0[_0xe812[504]]},attributes:[_0xe812[29]]})})[_0xe812[32]](function(_0x503bx1b){if(!_0x503bx1b){throw  new Error(_0xe812[500])};faxLogger[_0xe812[73]](_0xe812[501],_0x503bx1b[_0xe812[29]]);_0x503bxa1= _[_0xe812[147]](_0x503bx1b[_0xe812[266]]);return})[_0xe812[32]](function(){return [_0x503bxa0,_0x503bx9d]})[_0xe812[490]](getFaxRoom())[_0xe812[32]](function(_0x503bxa6){if(!_0x503bxa6){throw  new Error(_0xe812[497])};faxLogger[_0xe812[73]](_0xe812[498],_0x503bxa6[_0xe812[253]]);_0x503bx9c= _0x503bxa6;return _0x503bx9c[_0xe812[499]](_0x503bx9d[_0xe812[253]])})[_0xe812[32]](function(){return _0x503bx9c[_0xe812[269]]({status:_0xe812[449],lastEvent:_0xe812[451],lastEventAt:moment()[_0xe812[59]](_0xe812[58]),faxOut:++_0x503bx9c[_0xe812[495]]},{individualHooks:true,user:_0x503bx9b[_0xe812[496]]})})[_0xe812[32]](function(_0x503bx47){faxLogger[_0xe812[73]](_0xe812[493],_0x503bx47[_0xe812[253]]);return _0x503bx9c[_0xe812[494]](_0x503bx9d.UserId)})[_0xe812[32]](function(){return models[_0xe812[310]][_0xe812[309]](_0x503bx9d.UserId)})[_0xe812[32]](function(){if(_0x503bxa0[_0xe812[491]]){return models[_0xe812[492]][_0xe812[292]]({where:{ListId:_0x503bxa0[_0xe812[491]],$or:[{phone:_0x503bx9f},{fax:_0x503bx9f}]},defaults:{fax:_0x503bx9f,phone:_0x503bx9f,firstName:_0x503bx9f,ListId:_0x503bxa0[_0xe812[491]]}})}else {return []}})[_0xe812[490]](function(_0x503bxa4,_0x503bxa5){if(_0x503bxa5!== undefined&&  !_0x503bxa5){return _0x503bxa4[_0xe812[269]]({fax:_0x503bx9f})};return})[_0xe812[32]](function(){_0x503bxa2= _0x503bx9d[_0xe812[477]][0][_0xe812[6]];if(_0x503bx9d[_0xe812[477]][0][_0xe812[192]]=== _0xe812[478]){_0x503bxa3= path[_0xe812[361]](config[_0xe812[479]],_0xe812[480],_0xe812[481],_0xe812[16],_0xe812[194],_0xe812[482],_0xe812[483],path[_0xe812[484]](_0x503bxa2)[_0xe812[29]]+ _0xe812[485]);return exec(_0xe812[486]+ _0x503bxa3+ _0xe812[487]+ _0x503bxa2)}else {_0x503bxa3= path[_0xe812[361]](config[_0xe812[479]],_0xe812[480],_0xe812[481],_0xe812[16],_0xe812[194],_0xe812[482],_0xe812[483],path[_0xe812[484]](_0x503bxa2)[_0xe812[488]]);fse[_0xe812[489]](_0x503bxa2,_0x503bxa3);return}})[_0xe812[32]](function(){fs[_0xe812[475]](_0x503bxa3,511);faxLogger[_0xe812[73]](_0xe812[476]);return models[_0xe812[459]][_0xe812[265]]({filename:_0x503bxa3,localstationid:_0x503bx9d[_0xe812[453]],retry:_0x503bx9a},{where:{id:_0x503bx9d[_0xe812[253]]}})})[_0xe812[32]](function(_0x503bx99){return amiAction({action:_0xe812[462],channel:util[_0xe812[59]](_0xe812[463],_0x503bxa0[_0xe812[464]],_0x503bxa1[_0xe812[29]],_0x503bx9f),exten:_0x503bx9f,context:_0xe812[465],priority:1,callerid:util[_0xe812[59]](_0xe812[180],_0x503bxa0[_0xe812[466]],_0x503bxa0[_0xe812[466]]),variable:{FAXNAME:_0x503bxa0[_0xe812[29]],FAXNUMBER:_0x503bx9f,FAXECM:_0x503bxa0[_0xe812[467]],FAXHEADERINFO:_0x503bxa0[_0xe812[468]],FAXLOCALSTATIONID:_0x503bxa0[_0xe812[466]],FAXMINRATE:_0x503bxa0[_0xe812[469]],FAXMAXRATE:_0x503bxa0[_0xe812[470]],FAXMODEM:util[_0xe812[59]](_0xe812[471],_0x503bxa0[_0xe812[472]]),FAXGATEWAY:_0x503bxa0[_0xe812[473]],FAXT38TIMEOUT:_0x503bxa0[_0xe812[474]],FAXOUTFILE:_0x503bxa3},account:_0x503bxa0[_0xe812[466]]})})[_0xe812[32]](function(_0x503bx58){faxLogger[_0xe812[454]](_0xe812[460]);faxLogger[_0xe812[73]](_0xe812[461],_0x503bx58)})[_0xe812[28]](function(_0x503bx19){faxLogger[_0xe812[27]](_0xe812[455],_0x503bx19);faxLogger[_0xe812[27]](_0xe812[456],_0x503bx19[_0xe812[280]]);faxLogger[_0xe812[27]](_0xe812[457],_0x503bx19[_0xe812[26]]);return models[_0xe812[459]][_0xe812[265]]({status:_0xe812[171]},{where:{id:_0x503bx9d[_0xe812[253]]}})[_0xe812[32]](function(_0x503bx47){if(_0x503bx9c){return _0x503bx9c[_0xe812[269]]({lastEvent:_0xe812[171]})};return})[_0xe812[28]](function(_0x503bx19){faxLogger[_0xe812[27]](_0xe812[458],_0x503bx19);faxLogger[_0xe812[27]](_0xe812[456],_0x503bx19[_0xe812[280]]);faxLogger[_0xe812[27]](_0xe812[457],_0x503bx19[_0xe812[26]])})})}}models[_0xe812[459]][_0xe812[506]](function(_0x503bx74,_0x503bx37){sendFax(_0x503bx74[_0xe812[266]],0,_0x503bx37)});models[_0xe812[459]][_0xe812[509]](function(_0x503bx74,_0x503bx37){if(_0x503bx74[_0xe812[507]](_0xe812[380])&& _0x503bx74[_0xe812[380]]=== _0xe812[451]){sendFax(_0x503bx74[_0xe812[266]],_0x503bx74[_0xe812[508]]+ 1,_0x503bx37)}});models[_0xe812[445]][_0xe812[509]](function(_0x503bx74){var _0x503bxa8=_[_0xe812[511]](faxaccounts,{id:_0x503bx74[_0xe812[510]]});if(_0x503bxa8&& _0x503bx74[_0xe812[507]](_0xe812[380])&& _0x503bx74[_0xe812[380]]=== _0xe812[447]){webhook(_0x503bx74[_0xe812[266]],_0x503bxa8,_0xe812[77])}});models[_0xe812[512]][_0xe812[506]](function(_0x503bx74,_0x503bx37){onSave(_0x503bx74,_0x503bx37)});models[_0xe812[505]][_0xe812[33]]({raw:true})[_0xe812[32]](function(_0x503bxa9){faxaccounts= _0x503bxa9})[_0xe812[28]](function(_0x503bx19){faxLogger[_0xe812[27]](_0xe812[513],_0x503bx19)});function addToCollection(_0x503bxab,_0x503bxac){_0x503bxab[_0xe812[262]](_0x503bxac)}function updateCollection(_0x503bxab,_0x503bxac){var _0x503bxae=_[_0xe812[511]](_0x503bxab,{id:_0x503bxac[_0xe812[253]]});if(_0x503bxae){_[_0xe812[267]](_0x503bxae,_0x503bxac)}else {_0x503bxab[_0xe812[514]](_0x503bxac)}}function removeFromCollection(_0x503bxab,_0x503bxac){_[_0xe812[515]](_0x503bxab,{id:_0x503bxac[_0xe812[253]]})}function getWidgets(_0x503bxb1){_0x503bxb1= JSON[_0xe812[484]](_0x503bxb1|| _0xe812[516]);var _0x503bxb2=[];if(_0x503bxb1[_0xe812[517]]){_[_0xe812[31]](_0x503bxb1[_0xe812[517]],function(_0x503bxb3){_0x503bxb2[_0xe812[262]](_[_0xe812[521]](_[_0xe812[520]](_0x503bxb3[_0xe812[518]],_0xe812[519])))});if(_0x503bxb2[_0xe812[334]]){var _0x503bxb4=[];_[_0xe812[31]](_0x503bxb2,function(_0x503bxb5){_[_0xe812[31]](_0x503bxb5,function(_0x503bxb6){_[_0xe812[193]]([_0xe812[522],_0xe812[523],_0xe812[524]],_0x503bxb6[_0xe812[192]])&& _0x503bxb4[_0xe812[262]]({config:{select:_0x503bxb6[_0xe812[526]][_0xe812[525]],fields:_0x503bxb6[_0xe812[526]][_0xe812[527]],condition:_0x503bxb6[_0xe812[526]][_0xe812[528]],table:_0x503bxb6[_0xe812[526]][_0xe812[530]][_0xe812[223]](_0xe812[529],_0xe812[183])},id:_0x503bxb6[_0xe812[531]],type:_0x503bxb6[_0xe812[192]]})})});return (_0x503bxb4[_0xe812[334]]?_0x503bxb4:null)};return null};return null}function toAddDate(_0x503bxb8){switch(_0x503bxb8){case _0xe812[532]:;case _0xe812[533]:;case _0xe812[534]:;case _0xe812[535]:;case _0xe812[536]:;case _0xe812[537]:;case _0xe812[538]:;case _0xe812[539]:;case _0xe812[540]:;case _0xe812[541]:;case _0xe812[542]:;case _0xe812[543]:;case _0xe812[544]:;case _0xe812[545]:return false;default:return true}}function getCounterWidgetQuery(_0x503bxba,_0x503bx5d){return Promise[_0xe812[288]]()[_0xe812[32]](function(){return _0x503bxba[_0xe812[522]]})[_0xe812[32]](reportBuildUtils[_0xe812[561]](_0x503bx5d))[_0xe812[32]](function(_0x503bxbb){var _0x503bxbc=util[_0xe812[59]](_0xe812[547],_0x503bxba[_0xe812[525]],_0x503bxba[_0xe812[522]]);if(_0x503bxba[_0xe812[528]]&& _0x503bxba[_0xe812[528]]!== _0xe812[548]){_0x503bxbc+= util[_0xe812[59]](_0xe812[549],decodeURIComponent(_0x503bxba[_0xe812[528]]))};if(toAddDate(_0x503bxba[_0xe812[522]])){_0x503bxbc+= util[_0xe812[59]]((_0x503bxba[_0xe812[528]]&& _0x503bxba[_0xe812[528]]!== _0xe812[548])?_0xe812[550]:_0xe812[551],moment()[_0xe812[553]](_0xe812[552])[_0xe812[59]](_0xe812[58]))};if(!_0x503bxbb|| _0x503bxbb!== _0xe812[554]){if(_0x503bxbb){_0x503bxbc+= _0x503bxba[_0xe812[528]]?_0xe812[555]+ _0x503bxbb:_0xe812[556]+ _0x503bxbb};logger[_0xe812[73]](_0xe812[557]);logger[_0xe812[73]](_0x503bxbc);logger[_0xe812[73]](_0xe812[558]);return _0x503bxbc}else {logger[_0xe812[27]](_0xe812[559]);logger[_0xe812[27]](_0xe812[560]);logger[_0xe812[27]](_0xe812[558]);return []}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[546],_0x503bx19[_0xe812[26]])})}function getPieChartWidgetQuery(_0x503bxba,_0x503bx5d){return Promise[_0xe812[277]]([])[_0xe812[32]](function(){return _0x503bxba[_0xe812[522]]})[_0xe812[32]](reportBuildUtils[_0xe812[561]](_0x503bx5d))[_0xe812[32]](function(_0x503bxbb){var _0x503bxbe=[];var _0x503bx40;if(_0x503bxba[_0xe812[527]]){if(_[_0xe812[563]](_0x503bxba[_0xe812[527]])){_0x503bxba[_0xe812[527]][_0xe812[31]](function(_0x503bx84){if(_0x503bx84[_0xe812[564]]&& _0x503bx84[_0xe812[565]]){_0x503bxbe[_0xe812[262]](_0x503bx84[_0xe812[564]]+ _0xe812[566]+ _0x503bx84[_0xe812[565]]+ _0xe812[567])}})}else {if(_[_0xe812[568]](_0x503bxba[_0xe812[527]])){var _0x503bx84=JSON[_0xe812[484]](_0x503bxba[_0xe812[527]]);if(_0x503bx84[_0xe812[564]]&& _0x503bx84[_0xe812[565]]){_0x503bxbe[_0xe812[262]](_0x503bx84[_0xe812[564]]+ _0xe812[566]+ _0x503bx84[_0xe812[565]]+ _0xe812[567])}}}};var _0x503bxbf=_0x503bxbe[_0xe812[334]]?_0x503bxbe[_0xe812[361]](_0xe812[101]):_0xe812[569];var _0x503bxc0=_0xe812[183];if(_0x503bxba[_0xe812[528]]&& _0x503bxba[_0xe812[528]]!== _0xe812[570]&& _0x503bxba[_0xe812[528]]!== _0xe812[548]){_0x503bxc0= util[_0xe812[59]](_0xe812[549],decodeURIComponent(_0x503bxba[_0xe812[528]]))};if(toAddDate(_0x503bxba[_0xe812[522]])){_0x503bxc0+= util[_0xe812[59]]((_0x503bxba[_0xe812[528]]&& _0x503bxba[_0xe812[528]]!== _0xe812[548])?_0xe812[550]:_0xe812[551],moment()[_0xe812[553]](_0xe812[552])[_0xe812[59]](_0xe812[58]))};if(!_0x503bxbb|| _0x503bxbb!== _0xe812[554]){if(_0x503bxbb){_0x503bxc0+= _0x503bxc0?_0xe812[555]+ _0x503bxbb:_0xe812[556]+ _0x503bxbb};var _0x503bxbc=util[_0xe812[59]](_0xe812[571],_0x503bxbf,_0x503bxba[_0xe812[522]],_0x503bxc0);logger[_0xe812[73]](_0xe812[557]);logger[_0xe812[73]](_0x503bxbc);logger[_0xe812[73]](_0xe812[558]);return _0x503bxbc}else {logger[_0xe812[27]](_0xe812[559]);logger[_0xe812[27]](_0xe812[560]);logger[_0xe812[27]](_0xe812[558]);return []}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[562],_0x503bx19[_0xe812[26]])})}function getWidgetQuery(_0x503bxba,_0x503bx5d){switch(_0x503bxba[_0xe812[192]]){case _0xe812[524]:return getCounterWidgetQuery(_0x503bxba[_0xe812[526]],_0x503bx5d);case _0xe812[523]:return getPieChartWidgetQuery(_0x503bxba[_0xe812[526]],_0x503bx5d);default:return Promise[_0xe812[288]]()[_0xe812[32]](function(){return null})}}function getCustomDashboardValues(_0x503bxc3,_0x503bx5d){var _0x503bxc4={};var _0x503bxc5=[],_0x503bxc6=[],_0x503bxbc;return models[_0xe812[584]][_0xe812[309]](_0x503bxc3)[_0xe812[32]](function(_0x503bxc7){if(!_0x503bxc7){logger[_0xe812[27]](_0xe812[575],_0x503bxc3,_0xe812[576]);return};var _0x503bxb4=getWidgets(_0x503bxc7[_0xe812[577]]);if(_0x503bxb4){_[_0xe812[31]](_0x503bxb4,function(_0x503bxba){_0x503bxc5[_0xe812[262]](getWidgetQuery(_0x503bxba,_0x503bx5d)[_0xe812[32]](function(_0x503bxbc){_0x503bxc6[_0xe812[262]](Promise[_0xe812[288]]()[_0xe812[32]](function(){if(_0x503bxbc){return models[_0xe812[582]][_0xe812[583]](_0x503bxbc,{type:models[_0xe812[582]][_0xe812[581]][_0xe812[580]]})}else {return []}})[_0xe812[32]](function(_0x503bx58){_0x503bxc4[_0x503bxba[_0xe812[253]]+ _0xe812[579]+ _0x503bxc7[_0xe812[253]]]= _0x503bx58})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[578],_0x503bxba[_0xe812[253]],_0x503bx19);_0x503bxc4[_0x503bxba[_0xe812[253]]+ _0xe812[579]+ _0x503bxc7[_0xe812[253]]]= []}))}))});return _0x503bxc5};return []})[_0xe812[277]]()[_0xe812[32]](function(){return _0x503bxc6})[_0xe812[277]]()[_0xe812[32]](function(){if(!_[_0xe812[573]](_0x503bxc4)){return events[_0xe812[574]](_0x503bxc4,_0x503bx5d)}})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[572],_0x503bxc3,_0x503bx19)})}process[_0xe812[74]](_0xe812[280],function(_0x503bxc8){switch(_0x503bxc8[_0xe812[280]]){case _0xe812[585]:;case _0xe812[586]:;case _0xe812[588]:networkRewrite(_0x503bxc8[_0xe812[587]]);break;case _0xe812[590]:return BPromise[_0xe812[288]]()[_0xe812[32]](rewriteContexts(_0x503bxc8[_0xe812[587]],false))[_0xe812[32]](createHangup(_0x503bxc8[_0xe812[587]]))[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[589],_0x503bx19)});case _0xe812[592]:return BPromise[_0xe812[288]]()[_0xe812[32]](rewriteContexts(_0x503bxc8[_0xe812[587]],true))[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[591],_0x503bx19)});case _0xe812[593]:addToCollection(faxaccounts,_0x503bxc8[_0xe812[587]]);break;case _0xe812[594]:updateCollection(faxaccounts,_0x503bxc8[_0xe812[587]]);break;case _0xe812[595]:removeFromCollection(faxaccounts,_0x503bxc8[_0xe812[587]]);break;case _0xe812[596]:trunksRewrite();break;case _0xe812[597]:rtpRewrite(_0x503bxc8[_0xe812[587]]);break;case _0xe812[598]:;case _0xe812[599]:sendFax(_0x503bxc8[_0xe812[587]],0,_0x503bxc8[_0xe812[48]]);break;case _0xe812[600]:var _0x503bxa8=_[_0xe812[511]](faxaccounts,{id:_0x503bxc8[_0xe812[587]][_0xe812[510]]});if(_0x503bxa8){webhook(_0x503bxc8[_0xe812[587]],_0x503bxa8,_0x503bxc8[_0xe812[41]])};break;case _0xe812[602]:return amiAction({action:_0xe812[337],command:_0x503bxc8[_0xe812[604]]})[_0xe812[32]](function(_0x503bx6a){return events[_0xe812[602]]({type:_0xe812[603],data:_0x503bx6a,socket:_0x503bxc8[_0xe812[601]]})})[_0xe812[28]](function(_0x503bx19){events[_0xe812[602]]({type:_0xe812[27],data:_0x503bx19,socket:_0x503bxc8[_0xe812[601]]})});case _0xe812[609]:return amiAction(_0x503bxc8[_0xe812[41]])[_0xe812[32]](function(_0x503bx6a){events[_0xe812[272]](_0x503bxc8[_0xe812[290]],_0x503bxc8[_0xe812[271]],_0x503bxc8[_0xe812[41]][_0xe812[606]]);logger[_0xe812[454]](util[_0xe812[59]](_0xe812[607],_0x503bxc8[_0xe812[290]],_0x503bxc8[_0xe812[41]][_0xe812[606]]?_0xe812[606]:_0xe812[608]))})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](util[_0xe812[59]](_0xe812[605],_0x503bxc8[_0xe812[290]],_0x503bxc8[_0xe812[41]][_0xe812[606]]?_0xe812[311]:_0xe812[312]),_0x503bx19)});case _0xe812[611]:var _0x503bx92=_[_0xe812[511]](faxaccounts,{id:parseInt(_0x503bxc8[_0xe812[587]][_0xe812[610]])});if(_0x503bx92){webhook(_0x503bxc8[_0xe812[587]],_0x503bx92,_0x503bxc8[_0xe812[41]])};break;case _0xe812[612]:return onSave(_0x503bxc8[_0xe812[587]],_0x503bxc8[_0xe812[48]]);case _0xe812[613]:return events[_0xe812[613]](_0x503bxc8[_0xe812[293]]);case _0xe812[614]:;case _0xe812[615]:;case _0xe812[616]:;case _0xe812[617]:;case _0xe812[618]:;case _0xe812[619]:;case _0xe812[620]:;case _0xe812[621]:;case _0xe812[622]:;case _0xe812[623]:;case _0xe812[624]:;case _0xe812[626]:return events[_0xe812[625]](_0x503bxc8);case _0xe812[628]:return BPromise[_0xe812[288]]()[_0xe812[32]](function(){return amiUtil[_0xe812[628]](amiAction,_0x503bxc8[_0xe812[587]])})[_0xe812[28]](function(_0x503bx19){logger[_0xe812[27]](_0xe812[627],_0x503bx19)});case _0xe812[629]:;case _0xe812[630]:;case _0xe812[631]:;case _0xe812[632]:;case _0xe812[633]:;case _0xe812[634]:;case _0xe812[635]:;case _0xe812[636]:;case _0xe812[637]:;case _0xe812[639]:return events[_0xe812[638]](_0x503bxc8);case _0xe812[644]:switch(_0x503bxc8[_0xe812[522]]){case _0xe812[641]:return events[_0xe812[640]]();case _0xe812[643]:return events[_0xe812[642]]();default:};break;case _0xe812[645]:newexten(_0x503bxc8[_0xe812[52]],true);break;case _0xe812[646]:addToCollection(voiceQueues,_0x503bxc8[_0xe812[587]]);break;case _0xe812[647]:updateCollection(voiceQueues,_0x503bxc8[_0xe812[587]]);break;case _0xe812[648]:removeFromCollection(voiceQueues,_0x503bxc8[_0xe812[587]]);break;case _0xe812[649]:getCustomDashboardValues(_0x503bxc8[_0xe812[253]],_0x503bxc8[_0xe812[496]]);break;case _0xe812[651]:return events[_0xe812[650]](_0x503bxc8[_0xe812[587]]);default:}})
\ No newline at end of file
+var _0xa054=["\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"];_0xa054[0];var _=require(_0xa054[1]);var BPromise=require(_0xa054[2]);var util=require(_0xa054[3]);var moment=require(_0xa054[4]);var fs=require(_0xa054[5]);var path=require(_0xa054[6]);var Util=require(_0xa054[7]);var amiUtil=require(_0xa054[8]);var exec=require(_0xa054[10])[_0xa054[9]];var fse=require(_0xa054[11]);var kue=require(_0xa054[12]);var reportBuildUtils=require(_0xa054[13]);var logger=require(_0xa054[15])(_0xa054[14]);var faxLogger=require(_0xa054[15])(_0xa054[16]);var config=require(_0xa054[17]);var events=require(_0xa054[18]);var models=require(_0xa054[19]);var channels=[_0xa054[20],_0xa054[21],_0xa054[22],_0xa054[16],_0xa054[23],_0xa054[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0xa054[34]][_0xa054[33]]({where:{active:true},attributes:[_0xa054[29],_0xa054[30]],raw:true})[_0xa054[32]](function(_0x943fx1a){_[_0xa054[31]](_0x943fx1a,function(_0x943fx1b){activeTrunks[_0x943fx1b[_0xa054[29]]]= _0x943fx1b[_0xa054[30]]})})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[25],_0x943fx19[_0xa054[26]])});var ami= new require(_0xa054[40])(config[_0xa054[36]][_0xa054[35]],config[_0xa054[36]][_0xa054[37]],config[_0xa054[36]][_0xa054[38]],config[_0xa054[36]][_0xa054[39]],true);var amiAction=BPromise[_0xa054[42]](ami[_0xa054[41]]);var kueConfig={prefix:_0xa054[43],jobEvents:false,redis:{port:6379,host:config[_0xa054[44]]}};if(config[_0xa054[45]]){kueConfig[_0xa054[47]][_0xa054[46]]= _0xa054[39];kueConfig[_0xa054[47]][_0xa054[48]]= {password:config[_0xa054[45]]}};var q=kue[_0xa054[49]](kueConfig);q[_0xa054[56]](_0xa054[50],function(_0x943fx20,_0x943fx21){try{events[_0x943fx20[_0xa054[53]][_0xa054[29]]](_0x943fx20[_0xa054[53]][_0xa054[52]],_0x943fx20[_0xa054[53]][_0xa054[54]]?amiAction:undefined)[_0xa054[51]](function(){_0x943fx21()})}catch(e){logger[_0xa054[27]](_0xa054[55],_0x943fx20[_0xa054[53]][_0xa054[29]],e)}});function addToQueue(_0x943fx23,_0x943fx24,_0x943fx25){_0x943fx24[_0xa054[57]]= moment()[_0xa054[59]](_0xa054[58]);q[_0xa054[63]](_0xa054[50],{name:_0x943fx23,evt:_0x943fx24,needAmi:_0x943fx25})[_0xa054[62]](true)[_0xa054[61]](function(_0x943fx19){if(_0x943fx19){logger[_0xa054[27]](_0xa054[60],_0x943fx19)}else {}})}models[_0xa054[65]][_0xa054[33]]({raw:true})[_0xa054[32]](function(_0x943fx26){voiceQueues= _0x943fx26})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[64],_0x943fx19)});ami[_0xa054[66]]();setInterval(function(){if(global[_0xa054[67]]){global[_0xa054[67]]()}else {logger[_0xa054[70]](_0xa054[68]+ _0xa054[69])}},20000);process[_0xa054[74]](_0xa054[71],function(_0x943fx27){logger[_0xa054[73]](_0xa054[72],_0x943fx27)});ami[_0xa054[74]](_0xa054[75],events[_0xa054[75]]);ami[_0xa054[74]](_0xa054[76],events[_0xa054[76]]);ami[_0xa054[74]](_0xa054[77],events[_0xa054[77]]);ami[_0xa054[74]](_0xa054[27],events[_0xa054[27]]);ami[_0xa054[74]](_0xa054[78],function(_0x943fx24){try{addToQueue(_0xa054[79],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[80],err)}});ami[_0xa054[74]](_0xa054[81],function(_0x943fx24){try{addToQueue(_0xa054[81],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[82],err)}});ami[_0xa054[74]](_0xa054[83],function(_0x943fx24){try{addToQueue(_0xa054[83],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[84],err)}});ami[_0xa054[74]](_0xa054[85],function(_0x943fx24){try{addToQueue(_0xa054[85],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[86],err)}});ami[_0xa054[74]](_0xa054[87],function(_0x943fx24){try{if(extraVars[_0x943fx24[_0xa054[88]]]){_0x943fx24[_0xa054[89]]= extraVars[_0x943fx24[_0xa054[88]]]};addToQueue(_0xa054[87],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[90],err)}});ami[_0xa054[74]](_0xa054[91],function(_0x943fx24){try{if(extraVars[_0x943fx24[_0xa054[88]]]){_0x943fx24[_0xa054[89]]= extraVars[_0x943fx24[_0xa054[88]]]};if(bill[_0x943fx24[_0xa054[88]]]&& bill[_0x943fx24[_0xa054[88]]][_0xa054[88]]!== _0x943fx24[_0xa054[88]]){if(!bill[_0x943fx24[_0xa054[88]]][_0xa054[92]]){bill[_0x943fx24[_0xa054[88]]][_0xa054[92]]= true}else {delete bill[_0x943fx24[_0xa054[88]]][_0xa054[93]];_0x943fx24[_0xa054[88]]= bill[_0x943fx24[_0xa054[88]]][_0xa054[88]]}};addToQueue(_0xa054[91],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[94],err)}});ami[_0xa054[74]](_0xa054[95],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[96]]]&& (bill[_0x943fx24[_0xa054[96]]][_0xa054[97]]=== _0xa054[98]|| bill[_0x943fx24[_0xa054[96]]][_0xa054[99]]=== _0xa054[98])&& bill[_0x943fx24[_0xa054[96]]][_0xa054[100]]){_0x943fx24[_0xa054[98]]= bill[_0x943fx24[_0xa054[96]]][_0xa054[103]][_0xa054[102]](_0xa054[101])[0];_0x943fx24[_0xa054[104]]= bill[_0x943fx24[_0xa054[96]]][_0xa054[100]][_0xa054[102]](/\/|-/)[1];addToQueue(_0xa054[95],_0x943fx24,true)}}catch(err){logger[_0xa054[27]](_0xa054[105],err)}});ami[_0xa054[74]](_0xa054[106],function(_0x943fx24){try{if(videoOnUrls[_0x943fx24[_0xa054[88]]]){logger[_0xa054[73]](_0xa054[107],_0x943fx24[_0xa054[88]],_0xa054[108]);_0x943fx24[_0xa054[109]]= videoOnUrls[_0x943fx24[_0xa054[88]]];events[_0xa054[110]](_0x943fx24)};if(extraVars[_0x943fx24[_0xa054[88]]]){_0x943fx24[_0xa054[89]]= extraVars[_0x943fx24[_0xa054[88]]]};addToQueue(_0xa054[106],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[111],err)}});ami[_0xa054[74]](_0xa054[112],events[_0xa054[112]]);ami[_0xa054[74]](_0xa054[113],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[88]]]){var _0x943fx28=_0x943fx24[_0xa054[114]][_0xa054[102]](/\/|-/)[1];if(bill[_0x943fx24[_0xa054[88]]][_0xa054[115]][_0x943fx28]){_0x943fx24[_0xa054[116]]= _0xa054[117];delete bill[_0x943fx24[_0xa054[88]]][_0xa054[115]][_0x943fx28]}else {_0x943fx24[_0xa054[116]]= _0xa054[113]}};addToQueue(_0xa054[113],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[118],err)}});ami[_0xa054[74]](_0xa054[119],function(_0x943fx24){try{addToQueue(_0xa054[119],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[120],err)}});ami[_0xa054[74]](_0xa054[121],function(_0x943fx24){try{addToQueue(_0xa054[121],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[122],err)}});ami[_0xa054[74]](_0xa054[123],function(_0x943fx24){try{addToQueue(_0xa054[123],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[124],err)}});ami[_0xa054[74]](_0xa054[125],function(_0x943fx24){try{addToQueue(_0xa054[125],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[126],err)}});ami[_0xa054[74]](_0xa054[127],function(_0x943fx24){try{addToQueue(_0xa054[127],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[128],err)}});ami[_0xa054[74]](_0xa054[129],function(_0x943fx24){try{addToQueue(_0xa054[129],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[130],err)}});ami[_0xa054[74]](_0xa054[131],function(_0x943fx24){try{addToQueue(_0xa054[131],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[132],err)}});ami[_0xa054[74]](_0xa054[133],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[88]]]){bill[_0x943fx24[_0xa054[88]]][_0xa054[98]]= _0x943fx24[_0xa054[98]];bill[_0x943fx24[_0xa054[88]]][_0xa054[93]]= true};addToQueue(_0xa054[133],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[134],err)}});ami[_0xa054[74]](_0xa054[135],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[88]]]){_0x943fx24[_0xa054[88]]= bill[_0x943fx24[_0xa054[88]]][_0xa054[88]]};addToQueue(_0xa054[135],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[136],err)}});ami[_0xa054[74]](_0xa054[137],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[138]]]){bill[_0x943fx24[_0xa054[138]]][_0xa054[139]]= _0xa054[137];bill[_0x943fx24[_0xa054[138]]][_0xa054[140]]= true;bill[_0x943fx24[_0xa054[138]]][_0xa054[141]]= _0xa054[142];bill[_0x943fx24[_0xa054[138]]][_0xa054[143]]= _0x943fx24[_0xa054[144]];bill[_0x943fx24[_0xa054[138]]][_0xa054[145]]= _0x943fx24[_0xa054[146]];ami[_0xa054[148]](_0xa054[131],_[_0xa054[147]](bill[_0x943fx24[_0xa054[138]]]));bill[_0x943fx24[_0xa054[138]]][_0xa054[115]]= {};delete bill[_0x943fx24[_0xa054[138]]][_0xa054[139]];bill[_0x943fx24[_0xa054[138]]][_0xa054[149]]= true;_0x943fx24[_0xa054[98]]= bill[_0x943fx24[_0xa054[138]]][_0xa054[98]]|| null};_0x943fx24[_0xa054[104]]= _0x943fx24[_0xa054[150]][_0xa054[102]](/\/|-/)[1];addToQueue(_0xa054[137],_0x943fx24,true)}catch(err){logger[_0xa054[27]](_0xa054[151],err)}});ami[_0xa054[74]](_0xa054[152],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[153]]]){bill[_0x943fx24[_0xa054[153]]][_0xa054[139]]= _0xa054[152];bill[_0x943fx24[_0xa054[153]]][_0xa054[88]]= _0x943fx24[_0xa054[144]];bill[_0x943fx24[_0xa054[144]]]&& (bill[_0x943fx24[_0xa054[144]]][_0xa054[88]]= _0x943fx24[_0xa054[153]]);ami[_0xa054[148]](_0xa054[131],_[_0xa054[147]](bill[_0x943fx24[_0xa054[153]]]));delete bill[_0x943fx24[_0xa054[153]]][_0xa054[93]];delete bill[_0x943fx24[_0xa054[153]]][_0xa054[139]];_0x943fx24[_0xa054[98]]= bill[_0x943fx24[_0xa054[153]]][_0xa054[98]]|| null};_0x943fx24[_0xa054[104]]= _0x943fx24[_0xa054[154]][_0xa054[102]](/\/|-/)[1];addToQueue(_0xa054[152],_0x943fx24,true)}catch(err){logger[_0xa054[27]](_0xa054[155],err)}});ami[_0xa054[74]](_0xa054[156],function(_0x943fx24){try{addToQueue(_0xa054[156],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[157],err)}});ami[_0xa054[74]](_0xa054[115],function(_0x943fx24){try{if(bill[_0x943fx24[_0xa054[88]]]){var _0x943fx28=_0x943fx24[_0xa054[114]][_0xa054[102]](/\/|-/)[1];bill[_0x943fx24[_0xa054[88]]][_0xa054[115]][_0x943fx28]= bill[_0x943fx24[_0xa054[88]]][_0xa054[115]][_0x943fx28]?false:true};addToQueue(_0xa054[115],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[158],err)}});ami[_0xa054[74]](_0xa054[159],function(_0x943fx24){try{addToQueue(_0xa054[159],_0x943fx24)}catch(err){faxLogger[_0xa054[27]](_0xa054[160],err)}});ami[_0xa054[74]](_0xa054[161],function(_0x943fx24){try{addToQueue(_0xa054[161],_0x943fx24)}catch(err){faxLogger[_0xa054[27]](_0xa054[162],err)}});ami[_0xa054[74]](_0xa054[163],function(_0x943fx24){try{addToQueue(_0xa054[163],_0x943fx24)}catch(err){faxLogger[_0xa054[27]](_0xa054[164],err)}});amiAction({action:_0xa054[165]});var applications=[_0xa054[166],_0xa054[98],_0xa054[167],_0xa054[168],_0xa054[169]];var dispositions=[_0xa054[170],_0xa054[171],_0xa054[171],_0xa054[170],_0xa054[170],_0xa054[170],_0xa054[172],_0xa054[173],_0xa054[171],_0xa054[171],_0xa054[171]];function newchannel(_0x943fx24){if(!bill[_0x943fx24[_0xa054[88]]]&&  !bill[_0x943fx24[_0xa054[96]]]){bill[_0x943fx24[_0xa054[88]]]= {uniqueid:_0x943fx24[_0xa054[88]],linkedid:_0x943fx24[_0xa054[96]],type:_0xa054[174],tag:_0xa054[175],accountcode:_0x943fx24[_0xa054[176]],source:_0x943fx24[_0xa054[177]],destination:_0x943fx24[_0xa054[178]],destinationcontext:_0x943fx24[_0xa054[179]],callerid:util[_0xa054[59]](_0xa054[180],_0x943fx24[_0xa054[181]],_0x943fx24[_0xa054[177]]),channel:_0x943fx24[_0xa054[182]],destinationchannel:_0xa054[183],lastapplication:_0xa054[183],lastdata:_0xa054[183],starttime:moment()[_0xa054[59]](_0xa054[58]),answertime:_0xa054[183],endtime:_0xa054[183],duration:0,billableseconds:0,disposition:dispositions[_[_0xa054[185]](_0x943fx24[_0xa054[184]])],amaflags:_0xa054[186],unmanaged:false,calleridnum:_0x943fx24[_0xa054[177]],calleridname:_0x943fx24[_0xa054[181]],dialend:{}}}}function newstate(_0x943fx24){if(bill[_0x943fx24[_0xa054[96]]]&& _0x943fx24[_0xa054[88]]!== _0x943fx24[_0xa054[96]]&& _0x943fx24[_0xa054[184]]=== _0xa054[187]){bill[_0x943fx24[_0xa054[96]]][_0xa054[188]]= moment()[_0xa054[59]](_0xa054[58]);delete bill[_0x943fx24[_0xa054[96]]][_0xa054[93]];bill[_0x943fx24[_0xa054[96]]][_0xa054[189]]= dispositions[_[_0xa054[185]](_0x943fx24[_0xa054[184]])];if(_[_0xa054[193]]([_0xa054[190],_0xa054[191]],bill[_0x943fx24[_0xa054[96]]][_0xa054[192]])){bill[_0x943fx24[_0xa054[96]]][_0xa054[176]]= _0x943fx24[_0xa054[176]]};if(!_[_0xa054[193]]([_0xa054[194],_0xa054[191]],bill[_0x943fx24[_0xa054[96]]][_0xa054[192]])){bill[_0x943fx24[_0xa054[96]]][_0xa054[195]]= _0x943fx24[_0xa054[196]];bill[_0x943fx24[_0xa054[96]]][_0xa054[197]]= util[_0xa054[59]](_0xa054[180],_0x943fx24[_0xa054[198]],_0x943fx24[_0xa054[196]])};bill[_0x943fx24[_0xa054[96]]][_0xa054[96]]= _0x943fx24[_0xa054[88]];bill[_0x943fx24[_0xa054[96]]][_0xa054[100]]= _0x943fx24[_0xa054[182]];bill[_0x943fx24[_0xa054[96]]][_0xa054[199]]= false}}function newexten(_0x943fx24,_0x943fx2e){if(bill[_0x943fx24[_0xa054[88]]]){_0x943fx24[_0xa054[200]]= _0x943fx24[_0xa054[200]][_0xa054[201]]();if(bill[_0x943fx24[_0xa054[88]]][_0xa054[97]]=== _0xa054[98]|| bill[_0x943fx24[_0xa054[88]]][_0xa054[99]]=== _0xa054[98]){if(bill[_0x943fx24[_0xa054[88]]][_0xa054[93]]&&  !bill[_0x943fx24[_0xa054[88]]][_0xa054[149]]){if(bill[_0x943fx24[_0xa054[88]]][_0xa054[202]]){ami[_0xa054[148]](_0xa054[203],_[_0xa054[147]](bill[_0x943fx24[_0xa054[88]]]))}else {if(!bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]){bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]= true;bill[_0x943fx24[_0xa054[88]]][_0xa054[139]]= _0xa054[204]};ami[_0xa054[148]](_0xa054[205],_[_0xa054[147]](bill[_0x943fx24[_0xa054[88]]]))}};bill[_0x943fx24[_0xa054[88]]][_0xa054[99]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[202]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[139]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[206]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[207]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[208]]= null};delete bill[_0x943fx24[_0xa054[88]]][_0xa054[93]];if(!_0x943fx2e){bill[_0x943fx24[_0xa054[88]]][_0xa054[97]]= _0x943fx24[_0xa054[200]];if(_[_0xa054[193]](applications,_0x943fx24[_0xa054[200]])){if(_0x943fx24[_0xa054[200]]=== _0xa054[166]){var _0x943fx2f=_0x943fx24[_0xa054[209]][_0xa054[201]]();if(_[_0xa054[211]](_0x943fx2f,_0xa054[210])){_0x943fx2f= _0x943fx2f[_0xa054[102]](_0xa054[212]);var _0x943fx30=_0x943fx2f[0][_0xa054[213]](/cdr\((.*)\)/);if(_0x943fx30){bill[_0x943fx24[_0xa054[88]]][_0x943fx30[1]]= _0x943fx2f[1];if(_0x943fx30[1]=== _0xa054[192]&& _0x943fx2f[1]=== _0xa054[191]){var _0x943fx31=bill[_0x943fx24[_0xa054[88]]][_0xa054[182]][_0xa054[102]](/\/|-/)[1];activeTrunks[_0x943fx31]&& (bill[_0x943fx24[_0xa054[88]]][_0xa054[195]]= activeTrunks[_0x943fx31])}}}else {if(_[_0xa054[211]](_0x943fx2f,_0xa054[214])){bill[_0x943fx24[_0xa054[88]]][_0xa054[177]]= _0x943fx2f[_0xa054[102]](_0xa054[212])[1];bill[_0x943fx24[_0xa054[88]]][_0xa054[197]]= util[_0xa054[59]](_0xa054[180],bill[_0x943fx24[_0xa054[88]]][_0xa054[181]],bill[_0x943fx24[_0xa054[88]]][_0xa054[177]]);bill[_0x943fx24[_0xa054[88]]][_0xa054[192]]=== _0xa054[191]&& (bill[_0x943fx24[_0xa054[88]]][_0xa054[215]]= bill[_0x943fx24[_0xa054[88]]][_0xa054[177]])}else {if(_[_0xa054[211]](_0x943fx2f,_0xa054[216])){bill[_0x943fx24[_0xa054[88]]][_0xa054[181]]= _0x943fx2f[_0xa054[102]](_0xa054[212])[1];bill[_0x943fx24[_0xa054[88]]][_0xa054[197]]= util[_0xa054[59]](_0xa054[180],bill[_0x943fx24[_0xa054[88]]][_0xa054[181]],bill[_0x943fx24[_0xa054[88]]][_0xa054[177]])}}}};bill[_0x943fx24[_0xa054[88]]][_0xa054[217]]= _0x943fx24[_0xa054[200]];bill[_0x943fx24[_0xa054[88]]][_0xa054[103]]= _0x943fx24[_0xa054[209]]};if(_0x943fx24[_0xa054[200]]=== _0xa054[98]){bill[_0x943fx24[_0xa054[88]]][_0xa054[98]]= _0x943fx24[_0xa054[209]][_0xa054[102]](_0xa054[101])[0];bill[_0x943fx24[_0xa054[88]]][_0xa054[93]]= true}}else {bill[_0x943fx24[_0xa054[88]]][_0xa054[99]]= _0x943fx24[_0xa054[200]][_0xa054[201]]();if(_0x943fx24[_0xa054[200]]=== _0xa054[98]){bill[_0x943fx24[_0xa054[88]]][_0xa054[98]]= _0x943fx24[_0xa054[98]];bill[_0x943fx24[_0xa054[88]]][_0xa054[93]]= true}}}}function varset(_0x943fx24){if(_0x943fx24[_0xa054[220]][_0xa054[219]](_0xa054[218])){logger[_0xa054[73]](_0xa054[221],_0x943fx24[_0xa054[88]],_0x943fx24[_0xa054[222]]);videoOnUrls[_0x943fx24[_0xa054[88]]]= _0x943fx24[_0xa054[222]][_0xa054[223]](/\\/g,_0xa054[183])}else {if(_0x943fx24[_0xa054[220]][_0xa054[219]](_0xa054[89])){extraVars[_0x943fx24[_0xa054[88]]]= _0x943fx24[_0xa054[222]]}};if(bill[_0x943fx24[_0xa054[88]]]){if(_0x943fx24[_0xa054[220]][_0xa054[219]](_0xa054[224])){bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]= true;bill[_0x943fx24[_0xa054[88]]][_0xa054[202]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[149]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[139]]= _0x943fx24[_0xa054[222]][_0xa054[201]]();if(bill[_0x943fx24[_0xa054[88]]][_0xa054[139]]=== _0xa054[225]){bill[_0x943fx24[_0xa054[88]]][_0xa054[63]]= true;bill[_0x943fx24[_0xa054[88]]][_0xa054[179]]= _0x943fx24[_0xa054[179]];bill[_0x943fx24[_0xa054[88]]][_0xa054[178]]= _0x943fx24[_0xa054[178]];ami[_0xa054[148]](_0xa054[205],_[_0xa054[147]](bill[_0x943fx24[_0xa054[88]]]));delete bill[_0x943fx24[_0xa054[88]]][_0xa054[93]];bill[_0x943fx24[_0xa054[88]]][_0xa054[63]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[202]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[139]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[206]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[207]]= null;bill[_0x943fx24[_0xa054[88]]][_0xa054[208]]= null}}}}function queuecallerabandon(_0x943fx24){if(bill[_0x943fx24[_0xa054[88]]]&&  !bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]){bill[_0x943fx24[_0xa054[88]]][_0xa054[202]]= true;bill[_0x943fx24[_0xa054[88]]][_0xa054[149]]= false;bill[_0x943fx24[_0xa054[88]]][_0xa054[206]]= _0x943fx24[_0xa054[206]];bill[_0x943fx24[_0xa054[88]]][_0xa054[207]]= _0x943fx24[_0xa054[207]];bill[_0x943fx24[_0xa054[88]]][_0xa054[208]]= _0x943fx24[_0xa054[208]]}}function hangup(_0x943fx24){if(bill[_0x943fx24[_0xa054[88]]]){var _0x943fx35=moment();bill[_0x943fx24[_0xa054[88]]][_0xa054[226]]= _0x943fx35[_0xa054[59]](_0xa054[58]);bill[_0x943fx24[_0xa054[88]]][_0xa054[227]]= _0x943fx35[_0xa054[230]](bill[_0x943fx24[_0xa054[88]]][_0xa054[228]],_0xa054[229]);if(bill[_0x943fx24[_0xa054[88]]][_0xa054[188]]){bill[_0x943fx24[_0xa054[88]]][_0xa054[231]]= _0x943fx35[_0xa054[230]](bill[_0x943fx24[_0xa054[88]]][_0xa054[188]],_0xa054[229])};ami[_0xa054[148]](_0xa054[78],bill[_0x943fx24[_0xa054[88]]]);if(bill[_0x943fx24[_0xa054[88]]][_0xa054[93]]|| (bill[_0x943fx24[_0xa054[88]]][_0xa054[149]]&&  !bill[_0x943fx24[_0xa054[88]]][_0xa054[188]])){if(bill[_0x943fx24[_0xa054[88]]][_0xa054[202]]){ami[_0xa054[148]](_0xa054[203],bill[_0x943fx24[_0xa054[88]]])}else {if(!bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]){bill[_0x943fx24[_0xa054[88]]][_0xa054[199]]= true;bill[_0x943fx24[_0xa054[88]]][_0xa054[139]]= _0xa054[204]};ami[_0xa054[148]](_0xa054[205],bill[_0x943fx24[_0xa054[88]]])}};delete bill[_0x943fx24[_0xa054[88]]]}}ami[_0xa054[74]](_0xa054[205],function(_0x943fx24){try{addToQueue(_0xa054[232],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[233],err)}});ami[_0xa054[74]](_0xa054[203],function(_0x943fx24){try{addToQueue(_0xa054[234],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[235],err)}});ami[_0xa054[74]](_0xa054[236],function(_0x943fx24){try{newchannel(_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[237],err)}});ami[_0xa054[74]](_0xa054[238],function(_0x943fx24){try{newstate(_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[239],err)}});ami[_0xa054[74]](_0xa054[240],function(_0x943fx24){try{newexten(_0x943fx24,false)}catch(err){logger[_0xa054[27]](_0xa054[241],err)}});ami[_0xa054[74]](_0xa054[242],function(_0x943fx24){try{varset(_0x943fx24);addToQueue(_0xa054[242],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[243],err)}});ami[_0xa054[74]](_0xa054[234],function(_0x943fx24){try{queuecallerabandon(_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[244],err)}});ami[_0xa054[74]](_0xa054[245],function(_0x943fx24){try{delete videoOnUrls[_0x943fx24[_0xa054[88]]];delete extraVars[_0x943fx24[_0xa054[88]]];hangup(_0x943fx24);addToQueue(_0xa054[245],_0x943fx24)}catch(err){logger[_0xa054[27]](_0xa054[246],err)}});function handlePause(_0x943fx37,_0x943fx38){return function(_0x943fx39){var _0x943fx3a=_0x943fx39[_0xa054[247]];var _0x943fx3b=false;var _0x943fx3c,_0x943fx3d;_0x943fx3c= _0x943fx3d= _0x943fx37[_0xa054[248]][_0xa054[192]]|| _0x943fx38[_0xa054[249]]|| _0x943fx38[_0xa054[250]];if(_[_0xa054[211]](_0x943fx3d,_0xa054[251])){_0x943fx3d= _0x943fx3d[_0xa054[252]](1);_0x943fx3b= true};var _0x943fx3e={id:_0x943fx39[_0xa054[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x943fx3c,lastPauseAt:moment()[_0xa054[59]](_0xa054[58])};return _0x943fx39[_0xa054[269]](_0x943fx3e)[_0xa054[32]](function(_0x943fx44){if(_0x943fx44){return events[_0xa054[268]](_[_0xa054[267]]({newValues:_0x943fx3e},_0x943fx44[_0xa054[266]]))}})[_0xa054[32]](function(){var _0x943fx43=moment()[_0xa054[59]](_0xa054[58]);return models[_0xa054[264]][_0xa054[265]]({duration:moment(_0x943fx43)[_0xa054[230]](moment(_0x943fx3a),_0xa054[229]),exitAt:_0x943fx43},{where:{membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[258],exitAt:null}})})[_0xa054[32]](function(){var _0x943fx3f=(_0x943fx3e[_0xa054[254]]&&  !_0x943fx3b)?channels:_[_0xa054[255]](channels,function(_0x943fx40){return _0x943fx40!== _0xa054[20]});var _0x943fx41=[];_0x943fx3f[_0xa054[31]](function(_0x943fx42){_0x943fx41[_0xa054[262]]({channel:_0x943fx42,membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[258],enterAt:moment()[_0xa054[59]](_0xa054[58]),data1:_0x943fx3d,data2:_0x943fx38[_0xa054[259]],data4:_0x943fx3d,role:_0x943fx39[_0xa054[260]],internal:_0x943fx39[_0xa054[174]],uniqueid:_0x943fx38[_0xa054[261]]})});return models[_0xa054[264]][_0xa054[263]](_0x943fx41,{raw:true,individualHooks:true})})}}function handleUnpause(_0x943fx37,_0x943fx38){return function(_0x943fx39){var _0x943fx3e;if(!_0x943fx37[_0xa054[248]]){_0x943fx37[_0xa054[248]]= {}};if(_0x943fx37[_0xa054[248]][_0xa054[192]]!== _0xa054[270]){events[_0xa054[272]](_0x943fx39[_0xa054[29]],_0x943fx39[_0xa054[271]],false)};switch(_0x943fx37[_0xa054[248]][_0xa054[182]]){case _0xa054[20]:_0x943fx3e= {id:_0x943fx39[_0xa054[253]],voicePause:false};return _0x943fx39[_0xa054[269]](_0x943fx3e)[_0xa054[32]](function(_0x943fx44){return events[_0xa054[268]](_[_0xa054[267]]({newValues:_0x943fx3e},_0x943fx44[_0xa054[266]]))})[_0xa054[32]](function(){return models[_0xa054[264]][_0xa054[274]]({where:{channel:_0x943fx37[_0xa054[248]][_0xa054[182]],membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[258],exitAt:null}})})[_0xa054[32]](handleEntityNotFound({message:_0xa054[273]}))[_0xa054[32]](function(_0x943fx46){return _0x943fx46[_0xa054[269]]({exitAt:moment()[_0xa054[59]](_0xa054[58])})})[_0xa054[32]](function(){return _0x943fx39});case _0xa054[21]:;case _0xa054[22]:;case _0xa054[16]:;case _0xa054[23]:;case _0xa054[24]:var _0x943fx47={};_0x943fx47[util[_0xa054[59]](_0xa054[275],_0x943fx37[_0xa054[248]][_0xa054[182]],_0xa054[276])]= false;return _0x943fx39[_0xa054[269]](_0x943fx47)[_0xa054[32]](function(_0x943fx39){_0x943fx47[_0xa054[253]]= _0x943fx39[_0xa054[253]];return events[_0xa054[268]](_[_0xa054[267]]({newValues:_0x943fx47},_0x943fx39[_0xa054[266]]))})[_0xa054[32]](function(){return models[_0xa054[264]][_0xa054[274]]({where:{channel:_0x943fx37[_0xa054[248]][_0xa054[182]],membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[258],exitAt:null}})})[_0xa054[32]](handleEntityNotFound({message:_0xa054[273]}))[_0xa054[32]](function(_0x943fx46){return _0x943fx46[_0xa054[269]]({exitAt:moment()[_0xa054[59]](_0xa054[58])})})[_0xa054[32]](function(){return _0x943fx39});default:_0x943fx3e= {id:_0x943fx39[_0xa054[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0x943fx39[_0xa054[269]](_0x943fx3e)[_0xa054[32]](function(_0x943fx44){return events[_0xa054[268]](_[_0xa054[267]]({newValues:_0x943fx3e},_0x943fx39[_0xa054[266]]))})[_0xa054[32]](function(){return models[_0xa054[264]][_0xa054[33]]({where:{membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[258],exitAt:null}})})[_0xa054[32]](function(_0x943fx48){var _0x943fx49=[];_0x943fx48[_0xa054[31]](function(_0x943fx4a){_0x943fx49[_0xa054[262]](_0x943fx4a[_0xa054[269]]({exitAt:moment()[_0xa054[59]](_0xa054[58])}))});return BPromise[_0xa054[277]](_0x943fx49)})[_0xa054[32]](function(){return _0x943fx39})}}}function queueAddUpdate(_0x943fx4c,_0x943fx4d){return models[_0xa054[278]][_0xa054[274]]({where:{queue:_0x943fx4c,membername:_0x943fx4d}})[_0xa054[32]](function(_0x943fx4e){if(_0x943fx4e){return _0x943fx4e[_0xa054[269]]({logged:true,loggedAt:moment()[_0xa054[59]](_0xa054[58])})}})}function handleLogin(_0x943fx37,_0x943fx38){return function(_0x943fx39){return BPromise[_0xa054[288]]()[_0xa054[32]](function(){return events[_0xa054[268]](_[_0xa054[287]]({newValues:_0x943fx39[_0xa054[266]]},_0x943fx39[_0xa054[266]]))})[_0xa054[32]](function(){return _0x943fx39[_0xa054[286]]()})[_0xa054[32]](function(voiceQueues){var _0x943fx50=[];voiceQueues[_0xa054[31]](function(_0x943fx51){_0x943fx50[_0xa054[262]](amiAction({action:_0xa054[283],queue:_0x943fx51[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),membername:_0x943fx39[_0xa054[29]],penalty:_0x943fx51[_0xa054[278]][_0xa054[284]],paused:_0x943fx39[_0xa054[285]]})[_0xa054[28]](function(_0x943fx19){if(_0x943fx19[_0xa054[280]]=== _0xa054[281]){return queueAddUpdate(_0x943fx51[_0xa054[29]],_0x943fx39[_0xa054[29]])};logger[_0xa054[27]](_0xa054[282],_0x943fx51[_0xa054[29]],_0x943fx19)}))});return _0x943fx50})[_0xa054[277]]()[_0xa054[32]](function(){return models[_0xa054[264]][_0xa054[33]]({where:{membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[279],exitAt:null}})})[_0xa054[32]](function(_0x943fx48){var _0x943fx49=[];_0x943fx48[_0xa054[31]](function(_0x943fx4a){_0x943fx49[_0xa054[262]](_0x943fx4a[_0xa054[269]]({exitAt:moment()[_0xa054[59]](_0xa054[58])}))});return BPromise[_0xa054[277]](_0x943fx49)})[_0xa054[32]](function(){var _0x943fx41=[];channels[_0xa054[31]](function(_0x943fx42){_0x943fx41[_0xa054[262]]({channel:_0x943fx42,membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[279],enterAt:moment()[_0xa054[59]](_0xa054[58]),role:_0x943fx39[_0xa054[260]],internal:_0x943fx39[_0xa054[174]]})});return models[_0xa054[264]][_0xa054[263]](_0x943fx41,{raw:true,individualHooks:true})})[_0xa054[32]](function(){return _0x943fx39})}}function logoutAgent(_0x943fx39){return BPromise[_0xa054[288]]()[_0xa054[32]](function(){return events[_0xa054[268]](_[_0xa054[287]]({newValues:{id:_0x943fx39[_0xa054[253]],online:false}},_0x943fx39[_0xa054[266]],{online:false}))})[_0xa054[32]](function(){return models[_0xa054[65]][_0xa054[33]]()})[_0xa054[32]](function(voiceQueues){var _0x943fx50=[];voiceQueues[_0xa054[31]](function(_0x943fx51){_0x943fx50[_0xa054[262]](amiAction({action:_0xa054[289],queue:_0x943fx51[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]])})[_0xa054[28]](function(_0x943fx19){}))});return BPromise[_0xa054[277]](_0x943fx50)})[_0xa054[32]](function(_0x943fx53){return models[_0xa054[264]][_0xa054[33]]({where:{membername:_0x943fx39[_0xa054[29]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),type:_0xa054[279],exitAt:null}})})[_0xa054[32]](function(_0x943fx48){var _0x943fx49=[];_0x943fx48[_0xa054[31]](function(_0x943fx4a){_0x943fx49[_0xa054[262]](_0x943fx4a[_0xa054[269]]({exitAt:moment()[_0xa054[59]](_0xa054[58])}))});return BPromise[_0xa054[277]](_0x943fx49)})}function handleLogout(_0x943fx37,_0x943fx38){return function(_0x943fx39){return BPromise[_0xa054[288]]()[_0xa054[32]](function(){if(_0x943fx39[_0xa054[260]]=== _0xa054[290]){return logoutAgent(_0x943fx39)}})[_0xa054[32]](function(){return _0x943fx39[_0xa054[269]]({online:false})})}}function handleQueueAdd(_0x943fx37,_0x943fx38){return function(_0x943fx39){var _0x943fx56=[];switch(_0x943fx37[_0xa054[248]][_0xa054[182]]){case _0xa054[20]:_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx56[_0xa054[262]](models[_0xa054[278]][_0xa054[292]]({where:{UserId:_0x943fx39[_0xa054[253]],queue:_0x943fx4c},defaults:{queue:_0x943fx4c,location:util[_0xa054[59]](_0xa054[291],_0x943fx39[_0xa054[29]]),membername:_0x943fx39[_0xa054[29]],UserId:_0x943fx39[_0xa054[253]],penalty:_0x943fx38[_0xa054[259]]},individualHooks:true,raw:true}))});return BPromise[_0xa054[277]](_0x943fx56)[_0xa054[32]](function(){var _0x943fx50=[];_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx50[_0xa054[262]](amiAction({action:_0xa054[283],queue:_0x943fx4c,paused:_0x943fx39[_0xa054[254]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]]),membername:_0x943fx39[_0xa054[29]]})[_0xa054[28]](function(_0x943fx19){if(_0x943fx19[_0xa054[280]]=== _0xa054[281]){return queueAddUpdate(_0x943fx4c,_0x943fx39[_0xa054[29]])};logger[_0xa054[27]](_0xa054[294],_0x943fx4c,_0x943fx19)}))});return BPromise[_0xa054[277]](_0x943fx50)});case _0xa054[21]:_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx56[_0xa054[262]](models[_0xa054[295]][_0xa054[292]]({where:{UserId:_0x943fx39[_0xa054[253]],ChatQueueId:_0x943fx4c[_0xa054[253]]},defaults:{ChatQueueId:_0x943fx4c[_0xa054[253]],queue:_0x943fx4c[_0xa054[29]],UserId:_0x943fx39[_0xa054[253]],penalty:_0x943fx38[_0xa054[259]]},individualHooks:true,raw:true}))});return BPromise[_0xa054[277]](_0x943fx56);case _0xa054[22]:_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx56[_0xa054[262]](models[_0xa054[296]][_0xa054[292]]({where:{UserId:_0x943fx39[_0xa054[253]],MailQueueId:_0x943fx4c[_0xa054[253]]},defaults:{MailQueueId:_0x943fx4c[_0xa054[253]],queue:_0x943fx4c[_0xa054[29]],UserId:_0x943fx39[_0xa054[253]],penalty:_0x943fx38[_0xa054[259]]},individualHooks:true,raw:true}))});return BPromise[_0xa054[277]](_0x943fx56);case _0xa054[23]:_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx56[_0xa054[262]](models[_0xa054[297]][_0xa054[292]]({where:{UserId:_0x943fx39[_0xa054[253]],SmsQueueId:_0x943fx4c[_0xa054[253]]},defaults:{SmsQueueId:_0x943fx4c[_0xa054[253]],queue:_0x943fx4c[_0xa054[29]],UserId:_0x943fx39[_0xa054[253]],penalty:_0x943fx38[_0xa054[259]]},individualHooks:true,raw:true}))});return BPromise[_0xa054[277]](_0x943fx56);case _0xa054[24]:_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx56[_0xa054[262]](models[_0xa054[298]][_0xa054[292]]({where:{UserId:_0x943fx39[_0xa054[253]],OpenchannelQueueId:_0x943fx4c[_0xa054[253]]},defaults:{OpenchannelQueueId:_0x943fx4c[_0xa054[253]],queue:_0x943fx4c[_0xa054[29]],UserId:_0x943fx39[_0xa054[253]],penalty:_0x943fx38[_0xa054[259]]},individualHooks:true,raw:true}))});return BPromise[_0xa054[277]](_0x943fx56);case _0xa054[16]:_0x943fx37[_0xa054[248]][_0xa054[293]][_0xa054[31]](function(_0x943fx4c){_0x943fx56[_0xa054[262]](models[_0xa054[299]][_0xa054[292]]({where:{UserId:_0x943fx39[_0xa054[253]],FaxQueueId:_0x943fx4c[_0xa054[253]]},defaults:{faxQueueId:_0x943fx4c[_0xa054[253]],queue:_0x943fx4c[_0xa054[29]],UserId:_0x943fx39[_0xa054[253]],penalty:_0x943fx38[_0xa054[259]]},individualHooks:true,raw:true}))});return BPromise[_0xa054[277]](_0x943fx56);default:}}}function handleQueueRemove(_0x943fx37,_0x943fx38){return function(_0x943fx39){switch(_0x943fx37[_0xa054[248]][_0xa054[182]]){case _0xa054[20]:return models[_0xa054[278]][_0xa054[301]]({where:{UserId:_0x943fx39[_0xa054[253]],queue:_0x943fx37[_0xa054[248]][_0xa054[98]]},individualHooks:true,raw:true})[_0xa054[32]](function(){return amiAction({action:_0xa054[289],queue:_0x943fx37[_0xa054[248]][_0xa054[98]],interface:util[_0xa054[59]](_0xa054[256],_0xa054[257],_0x943fx39[_0xa054[29]])})})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[300],_0x943fx19[_0xa054[26]])});case _0xa054[21]:return models[_0xa054[295]][_0xa054[274]]({where:{UserId:_0x943fx39[_0xa054[253]],ChatQueueId:_0x943fx37[_0xa054[248]][_0xa054[303]]}})[_0xa054[32]](function(_0x943fx58){if(_0x943fx58){return _0x943fx58[_0xa054[301]]()}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[302],_0x943fx19)});case _0xa054[22]:return models[_0xa054[296]][_0xa054[274]]({where:{UserId:_0x943fx39[_0xa054[253]],MailQueueId:_0x943fx37[_0xa054[248]][_0xa054[303]]}})[_0xa054[32]](function(_0x943fx58){if(_0x943fx58){return _0x943fx58[_0xa054[301]]()}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[304],_0x943fx19)});case _0xa054[23]:return models[_0xa054[297]][_0xa054[274]]({where:{UserId:_0x943fx39[_0xa054[253]],SmsQueueId:_0x943fx37[_0xa054[248]][_0xa054[303]]}})[_0xa054[32]](function(_0x943fx58){if(_0x943fx58){return _0x943fx58[_0xa054[301]]()}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[305],_0x943fx19)});case _0xa054[24]:return models[_0xa054[298]][_0xa054[274]]({where:{UserId:_0x943fx39[_0xa054[253]],OpenchannelQueueId:_0x943fx37[_0xa054[248]][_0xa054[303]]}})[_0xa054[32]](function(_0x943fx58){if(_0x943fx58){return _0x943fx58[_0xa054[301]]()}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[306],_0x943fx19)});case _0xa054[16]:return models[_0xa054[299]][_0xa054[274]]({where:{UserId:_0x943fx39[_0xa054[253]],FaxQueueId:_0x943fx37[_0xa054[248]][_0xa054[303]]}})[_0xa054[32]](function(_0x943fx58){if(_0x943fx58){return _0x943fx58[_0xa054[301]]()}})[_0xa054[28]](function(_0x943fx19){faxLogger[_0xa054[27]](_0xa054[307],_0x943fx19)});default:}}}function handleEntityNotFound(_0x943fx5a){return function(_0x943fx5b){if(!_0x943fx5b){throw _0x943fx5a};return _0x943fx5b}}function onSave(_0x943fx38,_0x943fx37){switch(_0x943fx38[_0xa054[29]]){case _0xa054[311]:return models[_0xa054[310]][_0xa054[309]](_0x943fx37[_0xa054[248]][_0xa054[290]])[_0xa054[32]](handleEntityNotFound({message:_0xa054[308]}))[_0xa054[32]](handlePause(_0x943fx37,_0x943fx38));case _0xa054[312]:return models[_0xa054[310]][_0xa054[309]](_0x943fx37[_0xa054[248]][_0xa054[290]])[_0xa054[32]](handleEntityNotFound({message:_0xa054[308]}))[_0xa054[32]](handleUnpause(_0x943fx37,_0x943fx38));case _0xa054[313]:return models[_0xa054[310]][_0xa054[309]](_0x943fx38[_0xa054[250]])[_0xa054[32]](handleEntityNotFound({message:_0xa054[308]}))[_0xa054[32]](handleLogin(_0x943fx37,_0x943fx38))[_0xa054[32]](function(_0x943fx5d){return _0x943fx5d});case _0xa054[314]:return models[_0xa054[310]][_0xa054[309]](_0x943fx38[_0xa054[250]])[_0xa054[32]](handleEntityNotFound({message:_0xa054[308]}))[_0xa054[32]](handleUnpause(_0x943fx37,_0x943fx38))[_0xa054[32]](handleLogout(_0x943fx37,_0x943fx38));case _0xa054[283]:return models[_0xa054[310]][_0xa054[309]](_0x943fx37[_0xa054[248]][_0xa054[290]])[_0xa054[32]](handleEntityNotFound({message:_0xa054[308]}))[_0xa054[32]](handleQueueAdd(_0x943fx37,_0x943fx38))[_0xa054[32]](function(_0x943fx58){if(_0x943fx37[_0xa054[248]][_0xa054[182]]!== _0xa054[20]){return events[_0xa054[316]](_0x943fx58,_0x943fx37[_0xa054[248]][_0xa054[182]])}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[315],_0x943fx19[_0xa054[26]])});case _0xa054[289]:return models[_0xa054[310]][_0xa054[309]](_0x943fx37[_0xa054[248]][_0xa054[290]])[_0xa054[32]](handleEntityNotFound({message:_0xa054[308]}))[_0xa054[32]](handleQueueRemove(_0x943fx37,_0x943fx38))[_0xa054[32]](function(_0x943fx58){if(_0x943fx37[_0xa054[248]][_0xa054[182]]!== _0xa054[20]){return events[_0xa054[318]](_0x943fx58,_0x943fx37[_0xa054[248]][_0xa054[182]])}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[317],_0x943fx19[_0xa054[26]])});default:throw {message:_0xa054[319]}}}function clean(channels){removeInactiveCalls();_[_0xa054[31]](channels,function(_0x943fx42){removeExpiredApplications(_0x943fx42)})}function removeInactiveCalls(){logger[_0xa054[73]](_0xa054[320]);var _0x943fx60=[],_0x943fx61=[],_0x943fx62=moment()[_0xa054[59]](_0xa054[58]);return amiAction({action:_0xa054[337],command:_0xa054[338]})[_0xa054[32]](function(_0x943fx6a){var _0x943fx6b;if(_0x943fx6a&& _0x943fx6a[_0xa054[331]]){var _0x943fx58=_0x943fx6a[_0xa054[331]][_0xa054[102]](_0xa054[332]);_[_0xa054[31]](_0x943fx58,function(_0x943fx40){if(_0x943fx40){_0x943fx6b= _0x943fx40[_0xa054[102]](_0xa054[333]);_0x943fx6b[_0xa054[334]]=== 14&& _0x943fx61[_0xa054[262]](_0x943fx6b[_0xa054[335]]())}})};return models[_0xa054[336]][_0xa054[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0xa054[32]](function(_0x943fx69){_[_0xa054[31]](_0x943fx69,function(_0x943fx66){if(!_[_0xa054[193]](_0x943fx61,_0x943fx66[_0xa054[88]])){_0x943fx60[_0xa054[262]](_0x943fx66[_0xa054[269]]({queuecallerleaveAt:_0x943fx62,queuecallerexitAt:_0x943fx62,queuecallerexit:true,queuecallerexitreason:_0xa054[324]}))}});return models[_0xa054[330]][_0xa054[33]]({where:{leaveAt:null}})})[_0xa054[32]](function(_0x943fx68){_[_0xa054[31]](_0x943fx68,function(_0x943fx66){if(!_[_0xa054[193]](_0x943fx61,_0x943fx66[_0xa054[88]])){_0x943fx60[_0xa054[262]](_0x943fx66[_0xa054[269]]({leaveAt:_0x943fx62,network:_0xa054[328]}))}});return models[_0xa054[329]][_0xa054[33]]({where:{endtime:null}})})[_0xa054[32]](function(_0x943fx67){_[_0xa054[31]](_0x943fx67,function(_0x943fx66){if(!_[_0xa054[193]](_0x943fx61,_0x943fx66[_0xa054[88]])){_0x943fx60[_0xa054[262]](_0x943fx66[_0xa054[269]]({endtime:_0x943fx62,dialstatus:_0xa054[325]}))}});return models[_0xa054[327]][_0xa054[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0xa054[32]](function(_0x943fx65){_[_0xa054[31]](_0x943fx65,function(_0x943fx66){if(!_[_0xa054[193]](_0x943fx61,_0x943fx66[_0xa054[88]])){_0x943fx60[_0xa054[262]](_0x943fx66[_0xa054[269]]({lastevent:_0xa054[199],agentringnoanswer:true,agentringnoanswerAt:_0x943fx62,reason:_0xa054[325]}))}});return models[_0xa054[264]][_0xa054[33]]({where:{type:_0xa054[326],enterAt:{$ne:null},exitAt:null}})})[_0xa054[32]](function(_0x943fx63){_[_0xa054[31]](_0x943fx63,function(_0x943fx64){if(!_[_0xa054[193]](_0x943fx61,_0x943fx64[_0xa054[88]])){_0x943fx60[_0xa054[262]](_0x943fx64[_0xa054[269]]({exitAt:_0x943fx64[_0xa054[323]],data4:_0xa054[324]}))}});return _0x943fx60})[_0xa054[277]]()[_0xa054[32]](function(){logger[_0xa054[73]](_0xa054[322])})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[321],_0x943fx19[_0xa054[26]])})}function removeExpiredApplications(_0x943fx42){return models[_0xa054[350]+ _0x943fx42+ _0xa054[351]][_0xa054[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0xa054[32]](function(_0x943fx6d){var _0x943fx6e,_0x943fx6f=[],_0x943fx70=[];_[_0xa054[31]](_0x943fx6d,function(_0x943fx71){_0x943fx6e= moment(_0x943fx71[_0xa054[344]])[_0xa054[343]](_0x943fx71[_0xa054[342]],_0xa054[229]);if(moment()[_0xa054[345]](_0x943fx6e)){_0x943fx70[_0xa054[262]](_0x943fx71[_0xa054[346]]);_0x943fx6f[_0xa054[262]](_0x943fx71[_0xa054[269]]({timeout:true,leaveAt:moment()[_0xa054[59]](_0xa054[58])}))}});if(_0x943fx70[_0xa054[334]]> 0){_0x943fx70= _[_0xa054[347]](_0x943fx70);logger[_0xa054[73]](_0xa054[348],_0x943fx70);_0x943fx6f[_0xa054[262]](models[_0x943fx42+ _0xa054[349]][_0xa054[265]]({waiting:false},{where:{id:_0x943fx70},individualHooks:true}))};return _0x943fx6f})[_0xa054[277]]()[_0xa054[32]](function(){logger[_0xa054[73]](_0xa054[339]+ _0x943fx42+ _0xa054[341])})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[339]+ _0x943fx42+ _0xa054[340],_0x943fx19)})}var channelModels=[_0xa054[352],_0xa054[353],_0xa054[354],_0xa054[355],_0xa054[356]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0x943fx74){switch(_0x943fx74[_0xa054[192]]){case _0xa054[367]:return models[_0xa054[369]][_0xa054[368]](_0xa054[367])[_0xa054[33]]()[_0xa054[32]](function(_0x943fx75){var _0x943fx76=_0xa054[183];var _0x943fx77=_0xa054[358];_0x943fx75[_0xa054[31]](function(_0x943fx78){_0x943fx76+= util[_0xa054[59]](_0xa054[359],_0x943fx78[_0xa054[222]])});fs[_0xa054[366]](path[_0xa054[361]](config[_0xa054[360]],_0x943fx77),_0x943fx76,{flags:_0xa054[362],mode:parseInt(_0xa054[363],8)},function(_0x943fx19){if(_0x943fx19){throw _0x943fx19};amiCommand(_0xa054[364]);logger[_0xa054[73]](_0xa054[365])})})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[357],_0x943fx19)});case _0xa054[374]:return models[_0xa054[369]][_0xa054[368]](_0xa054[374])[_0xa054[33]]()[_0xa054[32]](function(_0x943fx79){var _0x943fx7a=_0xa054[183];var _0x943fx7b=_0xa054[371];_0x943fx79[_0xa054[31]](function(_0x943fx7c){_0x943fx7a+= util[_0xa054[59]](_0xa054[372],_0x943fx7c[_0xa054[222]])});fs[_0xa054[366]](path[_0xa054[361]](config[_0xa054[360]],_0x943fx7b),_0x943fx7a,{flags:_0xa054[362],mode:parseInt(_0xa054[363],8)},function(_0x943fx19){if(_0x943fx19){throw _0x943fx19};amiCommand(_0xa054[364]);logger[_0xa054[73]](_0xa054[373])})})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[370],_0x943fx19)});default:logger[_0xa054[27]](_0xa054[375],_0x943fx74[_0xa054[192]])}}function amiCommand(_0x943fx7e){return amiAction({Action:_0xa054[337],command:_0x943fx7e})[_0xa054[32]](function(_0x943fx58){logger[_0xa054[73]](_0xa054[376],_0x943fx7e,_0x943fx58)})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[376],_0x943fx7e,_0x943fx19)})}function trunksRewrite(){var _0x943fx80=_0xa054[183];var _0x943fx81=_0xa054[183];var _0x943fx82=_0xa054[377];return models[_0xa054[34]][_0xa054[33]]({where:{active:true},raw:true})[_0xa054[32]](function(_0x943fx1a){activeTrunks= {};var _0x943fx83;_0x943fx1a[_0xa054[31]](function(_0x943fx84){_0x943fx83= null;activeTrunks[_0x943fx84[_0xa054[29]]]= _0x943fx84[_0xa054[30]];delete _0x943fx84[_0xa054[378]];delete _0x943fx84[_0xa054[344]];delete _0x943fx84[_0xa054[379]];delete _0x943fx84[_0xa054[380]];delete _0x943fx84[_0xa054[83]];if(_0x943fx84[_0xa054[381]]&& _0x943fx84[_0xa054[381]]=== _0xa054[382]){_0x943fx84[_0xa054[383]]= _0xa054[382];_0x943fx84[_0xa054[384]]= _0xa054[382];_0x943fx84[_0xa054[385]]= _0xa054[328];_0x943fx84[_0xa054[386]]= _0xa054[387];_0x943fx84[_0xa054[388]]= _0xa054[389];_0x943fx84[_0xa054[390]]= _0xa054[391];_0x943fx84[_0xa054[392]]= _0xa054[393]}else {_0x943fx84[_0xa054[381]]= _0xa054[328]};if(_0x943fx84[_0xa054[85]]){_0x943fx81+= util[_0xa054[59]](_0x943fx82,_0x943fx84[_0xa054[85]])};delete _0x943fx84[_0xa054[85]];_0x943fx80+= util[_0xa054[59]](_0xa054[394],_0x943fx84[_0xa054[29]]);if(_0x943fx84[_0xa054[395]]){_0x943fx83= _0x943fx84[_0xa054[395]];delete _0x943fx84[_0xa054[395]]};for(var _0x943fx30 in _0x943fx84){if(_0x943fx84[_0x943fx30]){switch(_0x943fx30){case _0xa054[398]:var _0x943fx85=_0x943fx84[_0x943fx30][_0xa054[102]](_0xa054[396]);_0x943fx85[_0xa054[31]](function(_0x943fx40){_0x943fx80+= util[_0xa054[59]](_0xa054[397],_0x943fx30,_0x943fx40)});break;default:_0x943fx80+= util[_0xa054[59]](_0xa054[397],_0x943fx30,_0x943fx84[_0x943fx30])}}};if(_0x943fx83){_0x943fx80+= util[_0xa054[59]](_0xa054[399],_0x943fx83)}});fs[_0xa054[366]](path[_0xa054[361]](config[_0xa054[360]],_0xa054[400]),_0x943fx80,{flags:_0xa054[362],mode:parseInt(_0xa054[363],8)},function(_0x943fx19){if(_0x943fx19){throw _0x943fx19};logger[_0xa054[73]](_0xa054[401]);fs[_0xa054[366]](path[_0xa054[361]](config[_0xa054[360]],_0xa054[402]),_0x943fx81,{flags:_0xa054[362],mode:parseInt(_0xa054[363],8)},function(_0x943fx19){if(_0x943fx19){throw _0x943fx19};amiCommand(_0xa054[364]);logger[_0xa054[73]](_0xa054[403])})})})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0x943fx19)})}function rewriteContexts(_0x943fx74,_0x943fx87){return function(){var _0x943fx88=_0xa054[183];if(!_0x943fx87){_0x943fx88= util[_0xa054[59]](_0xa054[404],_0x943fx74[_0xa054[29]],_0x943fx74[_0xa054[29]])};return models[_0xa054[409]][_0xa054[33]]({where:{id:{$ne:_0x943fx74[_0xa054[253]]}}})[_0xa054[32]](function(_0x943fx89){_0x943fx89[_0xa054[31]](function(_0x943fx84){_0x943fx88+= util[_0xa054[59]](_0xa054[404],_0x943fx84[_0xa054[29]],_0x943fx84[_0xa054[29]])});fs[_0xa054[366]](path[_0xa054[361]](config[_0xa054[360]],_0xa054[406]),_0x943fx88,{flags:_0xa054[362],mode:parseInt(_0xa054[363],8)},function(_0x943fx19){if(_0x943fx19){throw _0x943fx19};logger[_0xa054[73]](_0xa054[407]);amiCommand(_0xa054[408])})})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[405],_0x943fx19)})}}function createHangup(_0x943fx74){return function(){logger[_0xa054[73]](_0xa054[410],_0x943fx74[_0xa054[29]]);var _0x943fx47=[{context:_0x943fx74[_0xa054[29]],exten:_0xa054[411],priority:_0xa054[412],VoiceContextId:_0x943fx74[_0xa054[253]],type:_0xa054[413],app:_0xa054[414]},{context:_0x943fx74[_0xa054[29]],exten:_0xa054[415],priority:_0xa054[412],VoiceContextId:_0x943fx74[_0xa054[253]],type:_0xa054[413],app:_0xa054[414]}];return models[_0xa054[418]][_0xa054[263]](_0x943fx47)[_0xa054[32]](function(){logger[_0xa054[73]](_0xa054[417])})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[416],_0x943fx19)})}}function rtpRewrite(_0x943fx47){if(_0x943fx47){var _0x943fx8c=_0xa054[183];for(var _0x943fx30 in _0x943fx47){_0x943fx47[_0x943fx30]&& (_0x943fx8c+= util[_0xa054[59]](_0xa054[397],_0x943fx30,_0x943fx47[_0x943fx30]))};try{fs[_0xa054[420]](path[_0xa054[361]](config[_0xa054[360]],_0xa054[419]),_0x943fx8c,{flag:_0xa054[362],mode:parseInt(_0xa054[363],8)});logger[_0xa054[73]](_0xa054[421]);amiCommand(_0xa054[422])}catch(err){logger[_0xa054[27]](_0xa054[423],err)}}else {logger[_0xa054[27]](_0xa054[424])}}function execRequest(_0x943fx74,_0x943fx8e,_0x943fx8f){return Util[_0xa054[427]](_0x943fx74,_0x943fx8e,_0x943fx8f)[_0xa054[32]](function(_0x943fx90){faxLogger[_0xa054[73]](_0xa054[426])})[_0xa054[28]](function(_0x943fx19){faxLogger[_0xa054[27]](_0xa054[425],_0x943fx19)})}function webhook(_0x943fx74,_0x943fx92,_0x943fx93){switch(_0x943fx93){case _0xa054[435]:if(_0x943fx92[_0xa054[428]]&& _0x943fx92[_0xa054[429]]){faxLogger[_0xa054[73]](_0xa054[430]+ _0x943fx92[_0xa054[29]]+ _0xa054[431]);execRequest(_0x943fx74,_0x943fx92[_0xa054[428]],_0x943fx92[_0xa054[429]])};if(_0x943fx92[_0xa054[432]][_0xa054[334]]){_[_0xa054[31]](_0x943fx92[_0xa054[432]],function(_0x943fx38){if(_0x943fx38[_0xa054[433]]){Util[_0xa054[434]](_0x943fx38,_0x943fx74)}})};break;case _0xa054[439]:if(_0x943fx92[_0xa054[436]]&& _0x943fx92[_0xa054[437]]){faxLogger[_0xa054[73]](_0xa054[430]+ _0x943fx92[_0xa054[29]]+ _0xa054[438]);execRequest(_0x943fx74,_0x943fx92[_0xa054[436]],_0x943fx92[_0xa054[437]])};break;case _0xa054[77]:if(_0x943fx92[_0xa054[440]]&& _0x943fx92[_0xa054[441]]){faxLogger[_0xa054[73]](_0xa054[430]+ _0x943fx92[_0xa054[29]]+ _0xa054[442]);execRequest(_0x943fx74,_0x943fx92[_0xa054[440]],_0x943fx92[_0xa054[441]])};break;default:faxLogger[_0xa054[27]](_0xa054[443])}}function getFaxRoom(){return function(_0x943fx92,_0x943fx95){if(_0x943fx95[_0xa054[444]]){return models[_0xa054[445]][_0xa054[309]](_0x943fx95.FaxRoomId)}else {return models[_0xa054[445]][_0xa054[33]]({limit:1,where:{contact:_0x943fx95[_0xa054[448]],FaxAccountId:_0x943fx92[_0xa054[253]]},order:[[_0xa054[378],_0xa054[450]]]})[_0xa054[32]](function(_0x943fx96){var _0x943fx97=_[_0xa054[446]](_0x943fx96);if(!_0x943fx97|| _0x943fx97[_0xa054[380]]=== _0xa054[447]){return models[_0xa054[445]][_0xa054[63]]({contact:_0x943fx95[_0xa054[448]],account:_0x943fx92[_0xa054[29]],status:_0xa054[449],FaxAccountId:_0x943fx92[_0xa054[253]]})}else {return _0x943fx97}})}}}function sendFax(_0x943fx99,_0x943fx9a,_0x943fx9b){if(_0x943fx99[_0xa054[380]]=== _0xa054[451]){faxLogger[_0xa054[454]](util[_0xa054[59]](_0xa054[452],_0x943fx99[_0xa054[453]],_0x943fx99[_0xa054[448]]));var _0x943fx9c;var _0x943fx9d=_0x943fx99;var _0x943fx9e=_0x943fx99[_0xa054[453]];var _0x943fx9f=_0x943fx99[_0xa054[448]];var _0x943fxa0;var _0x943fxa1;var _0x943fxa2,_0x943fxa3;return models[_0xa054[505]][_0xa054[274]]({where:{localstationid:_0x943fx9d[_0xa054[453]]}})[_0xa054[32]](function(_0x943fxa7){if(!_0x943fxa7){throw  new Error(_0xa054[502])};faxLogger[_0xa054[73]](_0xa054[503],_0x943fxa7[_0xa054[466]]);_0x943fxa0= _[_0xa054[147]](_0x943fxa7[_0xa054[266]]);return models[_0xa054[34]][_0xa054[274]]({where:{name:_0x943fxa0[_0xa054[504]]},attributes:[_0xa054[29]]})})[_0xa054[32]](function(_0x943fx1b){if(!_0x943fx1b){throw  new Error(_0xa054[500])};faxLogger[_0xa054[73]](_0xa054[501],_0x943fx1b[_0xa054[29]]);_0x943fxa1= _[_0xa054[147]](_0x943fx1b[_0xa054[266]]);return})[_0xa054[32]](function(){return [_0x943fxa0,_0x943fx9d]})[_0xa054[490]](getFaxRoom())[_0xa054[32]](function(_0x943fxa6){if(!_0x943fxa6){throw  new Error(_0xa054[497])};faxLogger[_0xa054[73]](_0xa054[498],_0x943fxa6[_0xa054[253]]);_0x943fx9c= _0x943fxa6;return _0x943fx9c[_0xa054[499]](_0x943fx9d[_0xa054[253]])})[_0xa054[32]](function(){return _0x943fx9c[_0xa054[269]]({status:_0xa054[449],lastEvent:_0xa054[451],lastEventAt:moment()[_0xa054[59]](_0xa054[58]),faxOut:++_0x943fx9c[_0xa054[495]]},{individualHooks:true,user:_0x943fx9b[_0xa054[496]]})})[_0xa054[32]](function(_0x943fx47){faxLogger[_0xa054[73]](_0xa054[493],_0x943fx47[_0xa054[253]]);return _0x943fx9c[_0xa054[494]](_0x943fx9d.UserId)})[_0xa054[32]](function(){return models[_0xa054[310]][_0xa054[309]](_0x943fx9d.UserId)})[_0xa054[32]](function(){if(_0x943fxa0[_0xa054[491]]){return models[_0xa054[492]][_0xa054[292]]({where:{ListId:_0x943fxa0[_0xa054[491]],$or:[{phone:_0x943fx9f},{fax:_0x943fx9f}]},defaults:{fax:_0x943fx9f,phone:_0x943fx9f,firstName:_0x943fx9f,ListId:_0x943fxa0[_0xa054[491]]}})}else {return []}})[_0xa054[490]](function(_0x943fxa4,_0x943fxa5){if(_0x943fxa5!== undefined&&  !_0x943fxa5){return _0x943fxa4[_0xa054[269]]({fax:_0x943fx9f})};return})[_0xa054[32]](function(){_0x943fxa2= _0x943fx9d[_0xa054[477]][0][_0xa054[6]];if(_0x943fx9d[_0xa054[477]][0][_0xa054[192]]=== _0xa054[478]){_0x943fxa3= path[_0xa054[361]](config[_0xa054[479]],_0xa054[480],_0xa054[481],_0xa054[16],_0xa054[194],_0xa054[482],_0xa054[483],path[_0xa054[484]](_0x943fxa2)[_0xa054[29]]+ _0xa054[485]);return exec(_0xa054[486]+ _0x943fxa3+ _0xa054[487]+ _0x943fxa2)}else {_0x943fxa3= path[_0xa054[361]](config[_0xa054[479]],_0xa054[480],_0xa054[481],_0xa054[16],_0xa054[194],_0xa054[482],_0xa054[483],path[_0xa054[484]](_0x943fxa2)[_0xa054[488]]);fse[_0xa054[489]](_0x943fxa2,_0x943fxa3);return}})[_0xa054[32]](function(){fs[_0xa054[475]](_0x943fxa3,511);faxLogger[_0xa054[73]](_0xa054[476]);return models[_0xa054[459]][_0xa054[265]]({filename:_0x943fxa3,localstationid:_0x943fx9d[_0xa054[453]],retry:_0x943fx9a},{where:{id:_0x943fx9d[_0xa054[253]]}})})[_0xa054[32]](function(_0x943fx99){return amiAction({action:_0xa054[462],channel:util[_0xa054[59]](_0xa054[463],_0x943fxa0[_0xa054[464]],_0x943fxa1[_0xa054[29]],_0x943fx9f),exten:_0x943fx9f,context:_0xa054[465],priority:1,callerid:util[_0xa054[59]](_0xa054[180],_0x943fxa0[_0xa054[466]],_0x943fxa0[_0xa054[466]]),variable:{FAXNAME:_0x943fxa0[_0xa054[29]],FAXNUMBER:_0x943fx9f,FAXECM:_0x943fxa0[_0xa054[467]],FAXHEADERINFO:_0x943fxa0[_0xa054[468]],FAXLOCALSTATIONID:_0x943fxa0[_0xa054[466]],FAXMINRATE:_0x943fxa0[_0xa054[469]],FAXMAXRATE:_0x943fxa0[_0xa054[470]],FAXMODEM:util[_0xa054[59]](_0xa054[471],_0x943fxa0[_0xa054[472]]),FAXGATEWAY:_0x943fxa0[_0xa054[473]],FAXT38TIMEOUT:_0x943fxa0[_0xa054[474]],FAXOUTFILE:_0x943fxa3},account:_0x943fxa0[_0xa054[466]]})})[_0xa054[32]](function(_0x943fx58){faxLogger[_0xa054[454]](_0xa054[460]);faxLogger[_0xa054[73]](_0xa054[461],_0x943fx58)})[_0xa054[28]](function(_0x943fx19){faxLogger[_0xa054[27]](_0xa054[455],_0x943fx19);faxLogger[_0xa054[27]](_0xa054[456],_0x943fx19[_0xa054[280]]);faxLogger[_0xa054[27]](_0xa054[457],_0x943fx19[_0xa054[26]]);return models[_0xa054[459]][_0xa054[265]]({status:_0xa054[171]},{where:{id:_0x943fx9d[_0xa054[253]]}})[_0xa054[32]](function(_0x943fx47){if(_0x943fx9c){return _0x943fx9c[_0xa054[269]]({lastEvent:_0xa054[171]})};return})[_0xa054[28]](function(_0x943fx19){faxLogger[_0xa054[27]](_0xa054[458],_0x943fx19);faxLogger[_0xa054[27]](_0xa054[456],_0x943fx19[_0xa054[280]]);faxLogger[_0xa054[27]](_0xa054[457],_0x943fx19[_0xa054[26]])})})}}models[_0xa054[459]][_0xa054[506]](function(_0x943fx74,_0x943fx37){sendFax(_0x943fx74[_0xa054[266]],0,_0x943fx37)});models[_0xa054[459]][_0xa054[509]](function(_0x943fx74,_0x943fx37){if(_0x943fx74[_0xa054[507]](_0xa054[380])&& _0x943fx74[_0xa054[380]]=== _0xa054[451]){sendFax(_0x943fx74[_0xa054[266]],_0x943fx74[_0xa054[508]]+ 1,_0x943fx37)}});models[_0xa054[445]][_0xa054[509]](function(_0x943fx74){var _0x943fxa8=_[_0xa054[511]](faxaccounts,{id:_0x943fx74[_0xa054[510]]});if(_0x943fxa8&& _0x943fx74[_0xa054[507]](_0xa054[380])&& _0x943fx74[_0xa054[380]]=== _0xa054[447]){webhook(_0x943fx74[_0xa054[266]],_0x943fxa8,_0xa054[77])}});models[_0xa054[512]][_0xa054[506]](function(_0x943fx74,_0x943fx37){onSave(_0x943fx74,_0x943fx37)});models[_0xa054[505]][_0xa054[33]]({raw:true})[_0xa054[32]](function(_0x943fxa9){faxaccounts= _0x943fxa9})[_0xa054[28]](function(_0x943fx19){faxLogger[_0xa054[27]](_0xa054[513],_0x943fx19)});function addToCollection(_0x943fxab,_0x943fxac){_0x943fxab[_0xa054[262]](_0x943fxac)}function updateCollection(_0x943fxab,_0x943fxac){var _0x943fxae=_[_0xa054[511]](_0x943fxab,{id:_0x943fxac[_0xa054[253]]});if(_0x943fxae){_[_0xa054[267]](_0x943fxae,_0x943fxac)}else {_0x943fxab[_0xa054[514]](_0x943fxac)}}function removeFromCollection(_0x943fxab,_0x943fxac){_[_0xa054[515]](_0x943fxab,{id:_0x943fxac[_0xa054[253]]})}function getWidgets(_0x943fxb1){_0x943fxb1= JSON[_0xa054[484]](_0x943fxb1|| _0xa054[516]);var _0x943fxb2=[];if(_0x943fxb1[_0xa054[517]]){_[_0xa054[31]](_0x943fxb1[_0xa054[517]],function(_0x943fxb3){_0x943fxb2[_0xa054[262]](_[_0xa054[521]](_[_0xa054[520]](_0x943fxb3[_0xa054[518]],_0xa054[519])))});if(_0x943fxb2[_0xa054[334]]){var _0x943fxb4=[];_[_0xa054[31]](_0x943fxb2,function(_0x943fxb5){_[_0xa054[31]](_0x943fxb5,function(_0x943fxb6){_[_0xa054[193]]([_0xa054[522],_0xa054[523],_0xa054[524]],_0x943fxb6[_0xa054[192]])&& _0x943fxb4[_0xa054[262]]({config:{select:_0x943fxb6[_0xa054[526]][_0xa054[525]],fields:_0x943fxb6[_0xa054[526]][_0xa054[527]],condition:_0x943fxb6[_0xa054[526]][_0xa054[528]],table:_0x943fxb6[_0xa054[526]][_0xa054[530]][_0xa054[223]](_0xa054[529],_0xa054[183])},id:_0x943fxb6[_0xa054[531]],type:_0x943fxb6[_0xa054[192]]})})});return (_0x943fxb4[_0xa054[334]]?_0x943fxb4:null)};return null};return null}function toAddDate(_0x943fxb8){switch(_0x943fxb8){case _0xa054[532]:;case _0xa054[533]:;case _0xa054[534]:;case _0xa054[535]:;case _0xa054[536]:;case _0xa054[537]:;case _0xa054[538]:;case _0xa054[539]:;case _0xa054[540]:;case _0xa054[541]:;case _0xa054[542]:;case _0xa054[543]:;case _0xa054[544]:;case _0xa054[545]:return false;default:return true}}function getCounterWidgetQuery(_0x943fxba,_0x943fx5d){return Promise[_0xa054[288]]()[_0xa054[32]](function(){return _0x943fxba[_0xa054[522]]})[_0xa054[32]](reportBuildUtils[_0xa054[561]](_0x943fx5d))[_0xa054[32]](function(_0x943fxbb){var _0x943fxbc=util[_0xa054[59]](_0xa054[547],_0x943fxba[_0xa054[525]],_0x943fxba[_0xa054[522]]);if(_0x943fxba[_0xa054[528]]&& _0x943fxba[_0xa054[528]]!== _0xa054[548]){_0x943fxbc+= util[_0xa054[59]](_0xa054[549],decodeURIComponent(_0x943fxba[_0xa054[528]]))};if(toAddDate(_0x943fxba[_0xa054[522]])){_0x943fxbc+= util[_0xa054[59]]((_0x943fxba[_0xa054[528]]&& _0x943fxba[_0xa054[528]]!== _0xa054[548])?_0xa054[550]:_0xa054[551],moment()[_0xa054[553]](_0xa054[552])[_0xa054[59]](_0xa054[58]))};if(!_0x943fxbb|| _0x943fxbb!== _0xa054[554]){if(_0x943fxbb){_0x943fxbc+= _0x943fxba[_0xa054[528]]?_0xa054[555]+ _0x943fxbb:_0xa054[556]+ _0x943fxbb};logger[_0xa054[73]](_0xa054[557]);logger[_0xa054[73]](_0x943fxbc);logger[_0xa054[73]](_0xa054[558]);return _0x943fxbc}else {logger[_0xa054[27]](_0xa054[559]);logger[_0xa054[27]](_0xa054[560]);logger[_0xa054[27]](_0xa054[558]);return []}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[546],_0x943fx19[_0xa054[26]])})}function getPieChartWidgetQuery(_0x943fxba,_0x943fx5d){return Promise[_0xa054[277]]([])[_0xa054[32]](function(){return _0x943fxba[_0xa054[522]]})[_0xa054[32]](reportBuildUtils[_0xa054[561]](_0x943fx5d))[_0xa054[32]](function(_0x943fxbb){var _0x943fxbe=[];var _0x943fx40;if(_0x943fxba[_0xa054[527]]){if(_[_0xa054[563]](_0x943fxba[_0xa054[527]])){_0x943fxba[_0xa054[527]][_0xa054[31]](function(_0x943fx84){if(_0x943fx84[_0xa054[564]]&& _0x943fx84[_0xa054[565]]){_0x943fxbe[_0xa054[262]](_0x943fx84[_0xa054[564]]+ _0xa054[566]+ _0x943fx84[_0xa054[565]]+ _0xa054[567])}})}else {if(_[_0xa054[568]](_0x943fxba[_0xa054[527]])){var _0x943fx84=JSON[_0xa054[484]](_0x943fxba[_0xa054[527]]);if(_0x943fx84[_0xa054[564]]&& _0x943fx84[_0xa054[565]]){_0x943fxbe[_0xa054[262]](_0x943fx84[_0xa054[564]]+ _0xa054[566]+ _0x943fx84[_0xa054[565]]+ _0xa054[567])}}}};var _0x943fxbf=_0x943fxbe[_0xa054[334]]?_0x943fxbe[_0xa054[361]](_0xa054[101]):_0xa054[569];var _0x943fxc0=_0xa054[183];if(_0x943fxba[_0xa054[528]]&& _0x943fxba[_0xa054[528]]!== _0xa054[570]&& _0x943fxba[_0xa054[528]]!== _0xa054[548]){_0x943fxc0= util[_0xa054[59]](_0xa054[549],decodeURIComponent(_0x943fxba[_0xa054[528]]))};if(toAddDate(_0x943fxba[_0xa054[522]])){_0x943fxc0+= util[_0xa054[59]]((_0x943fxba[_0xa054[528]]&& _0x943fxba[_0xa054[528]]!== _0xa054[548])?_0xa054[550]:_0xa054[551],moment()[_0xa054[553]](_0xa054[552])[_0xa054[59]](_0xa054[58]))};if(!_0x943fxbb|| _0x943fxbb!== _0xa054[554]){if(_0x943fxbb){_0x943fxc0+= _0x943fxc0?_0xa054[555]+ _0x943fxbb:_0xa054[556]+ _0x943fxbb};var _0x943fxbc=util[_0xa054[59]](_0xa054[571],_0x943fxbf,_0x943fxba[_0xa054[522]],_0x943fxc0);logger[_0xa054[73]](_0xa054[557]);logger[_0xa054[73]](_0x943fxbc);logger[_0xa054[73]](_0xa054[558]);return _0x943fxbc}else {logger[_0xa054[27]](_0xa054[559]);logger[_0xa054[27]](_0xa054[560]);logger[_0xa054[27]](_0xa054[558]);return []}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[562],_0x943fx19[_0xa054[26]])})}function getWidgetQuery(_0x943fxba,_0x943fx5d){switch(_0x943fxba[_0xa054[192]]){case _0xa054[524]:return getCounterWidgetQuery(_0x943fxba[_0xa054[526]],_0x943fx5d);case _0xa054[523]:return getPieChartWidgetQuery(_0x943fxba[_0xa054[526]],_0x943fx5d);default:return Promise[_0xa054[288]]()[_0xa054[32]](function(){return null})}}function getCustomDashboardValues(_0x943fxc3,_0x943fx5d){var _0x943fxc4={};var _0x943fxc5=[],_0x943fxc6=[],_0x943fxbc;return models[_0xa054[584]][_0xa054[309]](_0x943fxc3)[_0xa054[32]](function(_0x943fxc7){if(!_0x943fxc7){logger[_0xa054[27]](_0xa054[575],_0x943fxc3,_0xa054[576]);return};var _0x943fxb4=getWidgets(_0x943fxc7[_0xa054[577]]);if(_0x943fxb4){_[_0xa054[31]](_0x943fxb4,function(_0x943fxba){_0x943fxc5[_0xa054[262]](getWidgetQuery(_0x943fxba,_0x943fx5d)[_0xa054[32]](function(_0x943fxbc){_0x943fxc6[_0xa054[262]](Promise[_0xa054[288]]()[_0xa054[32]](function(){if(_0x943fxbc){return models[_0xa054[582]][_0xa054[583]](_0x943fxbc,{type:models[_0xa054[582]][_0xa054[581]][_0xa054[580]]})}else {return []}})[_0xa054[32]](function(_0x943fx58){_0x943fxc4[_0x943fxba[_0xa054[253]]+ _0xa054[579]+ _0x943fxc7[_0xa054[253]]]= _0x943fx58})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[578],_0x943fxba[_0xa054[253]],_0x943fx19);_0x943fxc4[_0x943fxba[_0xa054[253]]+ _0xa054[579]+ _0x943fxc7[_0xa054[253]]]= []}))}))});return _0x943fxc5};return []})[_0xa054[277]]()[_0xa054[32]](function(){return _0x943fxc6})[_0xa054[277]]()[_0xa054[32]](function(){if(!_[_0xa054[573]](_0x943fxc4)){return events[_0xa054[574]](_0x943fxc4,_0x943fx5d)}})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[572],_0x943fxc3,_0x943fx19)})}process[_0xa054[74]](_0xa054[280],function(_0x943fxc8){switch(_0x943fxc8[_0xa054[280]]){case _0xa054[585]:;case _0xa054[586]:;case _0xa054[588]:networkRewrite(_0x943fxc8[_0xa054[587]]);break;case _0xa054[590]:return BPromise[_0xa054[288]]()[_0xa054[32]](rewriteContexts(_0x943fxc8[_0xa054[587]],false))[_0xa054[32]](createHangup(_0x943fxc8[_0xa054[587]]))[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[589],_0x943fx19)});case _0xa054[592]:return BPromise[_0xa054[288]]()[_0xa054[32]](rewriteContexts(_0x943fxc8[_0xa054[587]],true))[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[591],_0x943fx19)});case _0xa054[593]:addToCollection(faxaccounts,_0x943fxc8[_0xa054[587]]);break;case _0xa054[594]:updateCollection(faxaccounts,_0x943fxc8[_0xa054[587]]);break;case _0xa054[595]:removeFromCollection(faxaccounts,_0x943fxc8[_0xa054[587]]);break;case _0xa054[596]:trunksRewrite();break;case _0xa054[597]:rtpRewrite(_0x943fxc8[_0xa054[587]]);break;case _0xa054[598]:;case _0xa054[599]:sendFax(_0x943fxc8[_0xa054[587]],0,_0x943fxc8[_0xa054[48]]);break;case _0xa054[600]:var _0x943fxa8=_[_0xa054[511]](faxaccounts,{id:_0x943fxc8[_0xa054[587]][_0xa054[510]]});if(_0x943fxa8){webhook(_0x943fxc8[_0xa054[587]],_0x943fxa8,_0x943fxc8[_0xa054[41]])};break;case _0xa054[602]:return amiAction({action:_0xa054[337],command:_0x943fxc8[_0xa054[604]]})[_0xa054[32]](function(_0x943fx6a){return events[_0xa054[602]]({type:_0xa054[603],data:_0x943fx6a,socket:_0x943fxc8[_0xa054[601]]})})[_0xa054[28]](function(_0x943fx19){events[_0xa054[602]]({type:_0xa054[27],data:_0x943fx19,socket:_0x943fxc8[_0xa054[601]]})});case _0xa054[609]:return amiAction(_0x943fxc8[_0xa054[41]])[_0xa054[32]](function(_0x943fx6a){events[_0xa054[272]](_0x943fxc8[_0xa054[290]],_0x943fxc8[_0xa054[271]],_0x943fxc8[_0xa054[41]][_0xa054[606]]);logger[_0xa054[454]](util[_0xa054[59]](_0xa054[607],_0x943fxc8[_0xa054[290]],_0x943fxc8[_0xa054[41]][_0xa054[606]]?_0xa054[606]:_0xa054[608]))})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](util[_0xa054[59]](_0xa054[605],_0x943fxc8[_0xa054[290]],_0x943fxc8[_0xa054[41]][_0xa054[606]]?_0xa054[311]:_0xa054[312]),_0x943fx19)});case _0xa054[611]:var _0x943fx92=_[_0xa054[511]](faxaccounts,{id:parseInt(_0x943fxc8[_0xa054[587]][_0xa054[610]])});if(_0x943fx92){webhook(_0x943fxc8[_0xa054[587]],_0x943fx92,_0x943fxc8[_0xa054[41]])};break;case _0xa054[612]:return onSave(_0x943fxc8[_0xa054[587]],_0x943fxc8[_0xa054[48]]);case _0xa054[613]:return events[_0xa054[613]](_0x943fxc8[_0xa054[293]]);case _0xa054[614]:;case _0xa054[615]:;case _0xa054[616]:;case _0xa054[617]:;case _0xa054[618]:;case _0xa054[619]:;case _0xa054[620]:;case _0xa054[621]:;case _0xa054[622]:;case _0xa054[623]:;case _0xa054[624]:;case _0xa054[626]:return events[_0xa054[625]](_0x943fxc8);case _0xa054[628]:return BPromise[_0xa054[288]]()[_0xa054[32]](function(){return amiUtil[_0xa054[628]](amiAction,_0x943fxc8[_0xa054[587]])})[_0xa054[28]](function(_0x943fx19){logger[_0xa054[27]](_0xa054[627],_0x943fx19)});case _0xa054[629]:;case _0xa054[630]:;case _0xa054[631]:;case _0xa054[632]:;case _0xa054[633]:;case _0xa054[634]:;case _0xa054[635]:;case _0xa054[636]:;case _0xa054[637]:;case _0xa054[639]:return events[_0xa054[638]](_0x943fxc8);case _0xa054[644]:switch(_0x943fxc8[_0xa054[522]]){case _0xa054[641]:return events[_0xa054[640]]();case _0xa054[643]:return events[_0xa054[642]]();default:};break;case _0xa054[645]:newexten(_0x943fxc8[_0xa054[52]],true);break;case _0xa054[646]:addToCollection(voiceQueues,_0x943fxc8[_0xa054[587]]);break;case _0xa054[647]:updateCollection(voiceQueues,_0x943fxc8[_0xa054[587]]);break;case _0xa054[648]:removeFromCollection(voiceQueues,_0x943fxc8[_0xa054[587]]);break;case _0xa054[649]:getCustomDashboardValues(_0x943fxc8[_0xa054[253]],_0x943fxc8[_0xa054[496]]);break;case _0xa054[651]:return events[_0xa054[650]](_0x943fxc8[_0xa054[587]]);default:}})
\ No newline at end of file