Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / config / ami / ami.js
index b31cc0a..e5aa2aa 100644 (file)
@@ -1 +1 @@
-var _0xc84d=["\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","\x6F\x6E\x6C\x69\x6E\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","\x7A\x6F\x6D\x62\x69\x65","\x5A\x4F\x4D\x42\x49\x45","\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","\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","\x5B\x25\x73\x5D\x0A","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x25\x73\x0A","\x3B","\x25\x73\x3D\x25\x73\x0A","\x61\x6C\x6C\x6F\x77","\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","\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","\x72\x65\x70\x6F\x72\x74\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"];_0xc84d[0];var _=require(_0xc84d[1]);var BPromise=require(_0xc84d[2]);var util=require(_0xc84d[3]);var moment=require(_0xc84d[4]);var fs=require(_0xc84d[5]);var path=require(_0xc84d[6]);var Util=require(_0xc84d[7]);var amiUtil=require(_0xc84d[8]);var exec=require(_0xc84d[10])[_0xc84d[9]];var fse=require(_0xc84d[11]);var kue=require(_0xc84d[12]);var reportBuildUtils=require(_0xc84d[13]);var logger=require(_0xc84d[15])(_0xc84d[14]);var faxLogger=require(_0xc84d[15])(_0xc84d[16]);var config=require(_0xc84d[17]);var events=require(_0xc84d[18]);var models=require(_0xc84d[19]);var channels=[_0xc84d[20],_0xc84d[21],_0xc84d[22],_0xc84d[16],_0xc84d[23],_0xc84d[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0xc84d[34]][_0xc84d[33]]({where:{active:true},attributes:[_0xc84d[29],_0xc84d[30]],raw:true})[_0xc84d[32]](function(_0x90f4x1a){_[_0xc84d[31]](_0x90f4x1a,function(_0x90f4x1b){activeTrunks[_0x90f4x1b[_0xc84d[29]]]= _0x90f4x1b[_0xc84d[30]]})})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[25],_0x90f4x19[_0xc84d[26]])});var ami= new require(_0xc84d[40])(config[_0xc84d[36]][_0xc84d[35]],config[_0xc84d[36]][_0xc84d[37]],config[_0xc84d[36]][_0xc84d[38]],config[_0xc84d[36]][_0xc84d[39]],true);var amiAction=BPromise[_0xc84d[42]](ami[_0xc84d[41]]);var kueConfig={prefix:_0xc84d[43],jobEvents:false,redis:{port:6379,host:config[_0xc84d[44]]}};if(config[_0xc84d[45]]){kueConfig[_0xc84d[47]][_0xc84d[46]]= _0xc84d[39];kueConfig[_0xc84d[47]][_0xc84d[48]]= {password:config[_0xc84d[45]]}};var q=kue[_0xc84d[49]](kueConfig);q[_0xc84d[56]](_0xc84d[50],function(_0x90f4x20,_0x90f4x21){try{events[_0x90f4x20[_0xc84d[53]][_0xc84d[29]]](_0x90f4x20[_0xc84d[53]][_0xc84d[52]],_0x90f4x20[_0xc84d[53]][_0xc84d[54]]?amiAction:undefined)[_0xc84d[51]](function(){_0x90f4x21()})}catch(e){logger[_0xc84d[27]](_0xc84d[55],_0x90f4x20[_0xc84d[53]][_0xc84d[29]],e)}});function addToQueue(_0x90f4x23,_0x90f4x24,_0x90f4x25){_0x90f4x24[_0xc84d[57]]= moment()[_0xc84d[59]](_0xc84d[58]);q[_0xc84d[63]](_0xc84d[50],{name:_0x90f4x23,evt:_0x90f4x24,needAmi:_0x90f4x25})[_0xc84d[62]](true)[_0xc84d[61]](function(_0x90f4x19){if(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[60],_0x90f4x19)}else {}})}models[_0xc84d[65]][_0xc84d[33]]({raw:true})[_0xc84d[32]](function(_0x90f4x26){voiceQueues= _0x90f4x26})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[64],_0x90f4x19)});ami[_0xc84d[66]]();setInterval(function(){if(global[_0xc84d[67]]){global[_0xc84d[67]]()}else {logger[_0xc84d[70]](_0xc84d[68]+ _0xc84d[69])}},20000);process[_0xc84d[74]](_0xc84d[71],function(_0x90f4x27){logger[_0xc84d[73]](_0xc84d[72],_0x90f4x27)});ami[_0xc84d[74]](_0xc84d[75],events[_0xc84d[75]]);ami[_0xc84d[74]](_0xc84d[76],events[_0xc84d[76]]);ami[_0xc84d[74]](_0xc84d[77],events[_0xc84d[77]]);ami[_0xc84d[74]](_0xc84d[27],events[_0xc84d[27]]);ami[_0xc84d[74]](_0xc84d[78],function(_0x90f4x24){try{addToQueue(_0xc84d[79],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[80],err)}});ami[_0xc84d[74]](_0xc84d[81],function(_0x90f4x24){try{addToQueue(_0xc84d[81],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[82],err)}});ami[_0xc84d[74]](_0xc84d[83],function(_0x90f4x24){try{addToQueue(_0xc84d[83],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[84],err)}});ami[_0xc84d[74]](_0xc84d[85],function(_0x90f4x24){try{addToQueue(_0xc84d[85],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[86],err)}});ami[_0xc84d[74]](_0xc84d[87],function(_0x90f4x24){try{if(extraVars[_0x90f4x24[_0xc84d[88]]]){_0x90f4x24[_0xc84d[89]]= extraVars[_0x90f4x24[_0xc84d[88]]]};addToQueue(_0xc84d[87],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[90],err)}});ami[_0xc84d[74]](_0xc84d[91],function(_0x90f4x24){try{if(extraVars[_0x90f4x24[_0xc84d[88]]]){_0x90f4x24[_0xc84d[89]]= extraVars[_0x90f4x24[_0xc84d[88]]]};if(bill[_0x90f4x24[_0xc84d[88]]]&& bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[88]]!== _0x90f4x24[_0xc84d[88]]){if(!bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[92]]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[92]]= true}else {delete bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]];_0x90f4x24[_0xc84d[88]]= bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[88]]}};addToQueue(_0xc84d[91],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[94],err)}});ami[_0xc84d[74]](_0xc84d[95],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[96]]]&& (bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[97]]=== _0xc84d[98]|| bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[99]]=== _0xc84d[98])&& bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[100]]){_0x90f4x24[_0xc84d[98]]= bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[103]][_0xc84d[102]](_0xc84d[101])[0];_0x90f4x24[_0xc84d[104]]= bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[100]][_0xc84d[102]](/\/|-/)[1];addToQueue(_0xc84d[95],_0x90f4x24,true)}}catch(err){logger[_0xc84d[27]](_0xc84d[105],err)}});ami[_0xc84d[74]](_0xc84d[106],function(_0x90f4x24){try{if(videoOnUrls[_0x90f4x24[_0xc84d[88]]]){logger[_0xc84d[73]](_0xc84d[107],_0x90f4x24[_0xc84d[88]],_0xc84d[108]);_0x90f4x24[_0xc84d[109]]= videoOnUrls[_0x90f4x24[_0xc84d[88]]];events[_0xc84d[110]](_0x90f4x24)};if(extraVars[_0x90f4x24[_0xc84d[88]]]){_0x90f4x24[_0xc84d[89]]= extraVars[_0x90f4x24[_0xc84d[88]]]};addToQueue(_0xc84d[106],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[111],err)}});ami[_0xc84d[74]](_0xc84d[112],events[_0xc84d[112]]);ami[_0xc84d[74]](_0xc84d[113],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[88]]]){var _0x90f4x28=_0x90f4x24[_0xc84d[114]][_0xc84d[102]](/\/|-/)[1];if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[115]][_0x90f4x28]){_0x90f4x24[_0xc84d[116]]= _0xc84d[117];delete bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[115]][_0x90f4x28]}else {_0x90f4x24[_0xc84d[116]]= _0xc84d[113]}};addToQueue(_0xc84d[113],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[118],err)}});ami[_0xc84d[74]](_0xc84d[119],function(_0x90f4x24){try{addToQueue(_0xc84d[119],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[120],err)}});ami[_0xc84d[74]](_0xc84d[121],function(_0x90f4x24){try{addToQueue(_0xc84d[121],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[122],err)}});ami[_0xc84d[74]](_0xc84d[123],function(_0x90f4x24){try{addToQueue(_0xc84d[123],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[124],err)}});ami[_0xc84d[74]](_0xc84d[125],function(_0x90f4x24){try{addToQueue(_0xc84d[125],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[126],err)}});ami[_0xc84d[74]](_0xc84d[127],function(_0x90f4x24){try{addToQueue(_0xc84d[127],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[128],err)}});ami[_0xc84d[74]](_0xc84d[129],function(_0x90f4x24){try{addToQueue(_0xc84d[129],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[130],err)}});ami[_0xc84d[74]](_0xc84d[131],function(_0x90f4x24){try{addToQueue(_0xc84d[131],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[132],err)}});ami[_0xc84d[74]](_0xc84d[133],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[88]]]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[98]]= _0x90f4x24[_0xc84d[98]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]]= true};addToQueue(_0xc84d[133],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[134],err)}});ami[_0xc84d[74]](_0xc84d[135],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[88]]]){_0x90f4x24[_0xc84d[88]]= bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[88]]};addToQueue(_0xc84d[135],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[136],err)}});ami[_0xc84d[74]](_0xc84d[137],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[138]]]){bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[139]]= _0xc84d[137];bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[140]]= true;bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[141]]= _0xc84d[142];bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[143]]= _0x90f4x24[_0xc84d[144]];bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[145]]= _0x90f4x24[_0xc84d[146]];ami[_0xc84d[148]](_0xc84d[131],_[_0xc84d[147]](bill[_0x90f4x24[_0xc84d[138]]]));bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[115]]= {};delete bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[139]];bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[149]]= true;_0x90f4x24[_0xc84d[98]]= bill[_0x90f4x24[_0xc84d[138]]][_0xc84d[98]]|| null};_0x90f4x24[_0xc84d[104]]= _0x90f4x24[_0xc84d[150]][_0xc84d[102]](/\/|-/)[1];addToQueue(_0xc84d[137],_0x90f4x24,true)}catch(err){logger[_0xc84d[27]](_0xc84d[151],err)}});ami[_0xc84d[74]](_0xc84d[152],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[153]]]){bill[_0x90f4x24[_0xc84d[153]]][_0xc84d[139]]= _0xc84d[152];bill[_0x90f4x24[_0xc84d[153]]][_0xc84d[88]]= _0x90f4x24[_0xc84d[144]];bill[_0x90f4x24[_0xc84d[144]]]&& (bill[_0x90f4x24[_0xc84d[144]]][_0xc84d[88]]= _0x90f4x24[_0xc84d[153]]);ami[_0xc84d[148]](_0xc84d[131],_[_0xc84d[147]](bill[_0x90f4x24[_0xc84d[153]]]));delete bill[_0x90f4x24[_0xc84d[153]]][_0xc84d[93]];delete bill[_0x90f4x24[_0xc84d[153]]][_0xc84d[139]];_0x90f4x24[_0xc84d[98]]= bill[_0x90f4x24[_0xc84d[153]]][_0xc84d[98]]|| null};_0x90f4x24[_0xc84d[104]]= _0x90f4x24[_0xc84d[154]][_0xc84d[102]](/\/|-/)[1];addToQueue(_0xc84d[152],_0x90f4x24,true)}catch(err){logger[_0xc84d[27]](_0xc84d[155],err)}});ami[_0xc84d[74]](_0xc84d[156],function(_0x90f4x24){try{addToQueue(_0xc84d[156],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[157],err)}});ami[_0xc84d[74]](_0xc84d[115],function(_0x90f4x24){try{if(bill[_0x90f4x24[_0xc84d[88]]]){var _0x90f4x28=_0x90f4x24[_0xc84d[114]][_0xc84d[102]](/\/|-/)[1];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[115]][_0x90f4x28]= bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[115]][_0x90f4x28]?false:true};addToQueue(_0xc84d[115],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[158],err)}});ami[_0xc84d[74]](_0xc84d[159],function(_0x90f4x24){try{addToQueue(_0xc84d[159],_0x90f4x24)}catch(err){faxLogger[_0xc84d[27]](_0xc84d[160],err)}});ami[_0xc84d[74]](_0xc84d[161],function(_0x90f4x24){try{addToQueue(_0xc84d[161],_0x90f4x24)}catch(err){faxLogger[_0xc84d[27]](_0xc84d[162],err)}});ami[_0xc84d[74]](_0xc84d[163],function(_0x90f4x24){try{addToQueue(_0xc84d[163],_0x90f4x24)}catch(err){faxLogger[_0xc84d[27]](_0xc84d[164],err)}});amiAction({action:_0xc84d[165]});var applications=[_0xc84d[166],_0xc84d[98],_0xc84d[167],_0xc84d[168],_0xc84d[169]];var dispositions=[_0xc84d[170],_0xc84d[171],_0xc84d[171],_0xc84d[170],_0xc84d[170],_0xc84d[170],_0xc84d[172],_0xc84d[173],_0xc84d[171],_0xc84d[171],_0xc84d[171]];function newchannel(_0x90f4x24){if(!bill[_0x90f4x24[_0xc84d[88]]]&&  !bill[_0x90f4x24[_0xc84d[96]]]){bill[_0x90f4x24[_0xc84d[88]]]= {uniqueid:_0x90f4x24[_0xc84d[88]],linkedid:_0x90f4x24[_0xc84d[96]],type:_0xc84d[174],tag:_0xc84d[175],accountcode:_0x90f4x24[_0xc84d[176]],source:_0x90f4x24[_0xc84d[177]],destination:_0x90f4x24[_0xc84d[178]],destinationcontext:_0x90f4x24[_0xc84d[179]],callerid:util[_0xc84d[59]](_0xc84d[180],_0x90f4x24[_0xc84d[181]],_0x90f4x24[_0xc84d[177]]),channel:_0x90f4x24[_0xc84d[182]],destinationchannel:_0xc84d[183],lastapplication:_0xc84d[183],lastdata:_0xc84d[183],starttime:moment()[_0xc84d[59]](_0xc84d[58]),answertime:_0xc84d[183],endtime:_0xc84d[183],duration:0,billableseconds:0,disposition:dispositions[_[_0xc84d[185]](_0x90f4x24[_0xc84d[184]])],amaflags:_0xc84d[186],unmanaged:false,calleridnum:_0x90f4x24[_0xc84d[177]],calleridname:_0x90f4x24[_0xc84d[181]],dialend:{}}}}function newstate(_0x90f4x24){if(bill[_0x90f4x24[_0xc84d[96]]]&& _0x90f4x24[_0xc84d[88]]!== _0x90f4x24[_0xc84d[96]]&& _0x90f4x24[_0xc84d[184]]=== _0xc84d[187]){bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[188]]= moment()[_0xc84d[59]](_0xc84d[58]);delete bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[93]];bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[189]]= dispositions[_[_0xc84d[185]](_0x90f4x24[_0xc84d[184]])];if(_[_0xc84d[193]]([_0xc84d[190],_0xc84d[191]],bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[192]])){bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[176]]= _0x90f4x24[_0xc84d[176]]};if(!_[_0xc84d[193]]([_0xc84d[194],_0xc84d[191]],bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[192]])){bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[195]]= _0x90f4x24[_0xc84d[196]];bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[197]]= util[_0xc84d[59]](_0xc84d[180],_0x90f4x24[_0xc84d[198]],_0x90f4x24[_0xc84d[196]])};bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[96]]= _0x90f4x24[_0xc84d[88]];bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[100]]= _0x90f4x24[_0xc84d[182]];bill[_0x90f4x24[_0xc84d[96]]][_0xc84d[199]]= false}}function newexten(_0x90f4x24,_0x90f4x2e){if(bill[_0x90f4x24[_0xc84d[88]]]){_0x90f4x24[_0xc84d[200]]= _0x90f4x24[_0xc84d[200]][_0xc84d[201]]();if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[97]]=== _0xc84d[98]|| bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[99]]=== _0xc84d[98]){if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]]&&  !bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[149]]){if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[202]]){ami[_0xc84d[148]](_0xc84d[203],_[_0xc84d[147]](bill[_0x90f4x24[_0xc84d[88]]]))}else {if(!bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]= true;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[139]]= _0xc84d[204]};ami[_0xc84d[148]](_0xc84d[205],_[_0xc84d[147]](bill[_0x90f4x24[_0xc84d[88]]]))}};bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[99]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[202]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[139]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[206]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[207]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[208]]= null};delete bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]];if(!_0x90f4x2e){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[97]]= _0x90f4x24[_0xc84d[200]];if(_[_0xc84d[193]](applications,_0x90f4x24[_0xc84d[200]])){if(_0x90f4x24[_0xc84d[200]]=== _0xc84d[166]){var _0x90f4x2f=_0x90f4x24[_0xc84d[209]][_0xc84d[201]]();if(_[_0xc84d[211]](_0x90f4x2f,_0xc84d[210])){_0x90f4x2f= _0x90f4x2f[_0xc84d[102]](_0xc84d[212]);var _0x90f4x30=_0x90f4x2f[0][_0xc84d[213]](/cdr\((.*)\)/);if(_0x90f4x30){bill[_0x90f4x24[_0xc84d[88]]][_0x90f4x30[1]]= _0x90f4x2f[1];if(_0x90f4x30[1]=== _0xc84d[192]&& _0x90f4x2f[1]=== _0xc84d[191]){var _0x90f4x31=bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[182]][_0xc84d[102]](/\/|-/)[1];activeTrunks[_0x90f4x31]&& (bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[195]]= activeTrunks[_0x90f4x31])}}}else {if(_[_0xc84d[211]](_0x90f4x2f,_0xc84d[214])){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[177]]= _0x90f4x2f[_0xc84d[102]](_0xc84d[212])[1];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[197]]= util[_0xc84d[59]](_0xc84d[180],bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[181]],bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[177]]);bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[192]]=== _0xc84d[191]&& (bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[215]]= bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[177]])}else {if(_[_0xc84d[211]](_0x90f4x2f,_0xc84d[216])){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[181]]= _0x90f4x2f[_0xc84d[102]](_0xc84d[212])[1];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[197]]= util[_0xc84d[59]](_0xc84d[180],bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[181]],bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[177]])}}}};bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[217]]= _0x90f4x24[_0xc84d[200]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[103]]= _0x90f4x24[_0xc84d[209]]};if(_0x90f4x24[_0xc84d[200]]=== _0xc84d[98]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[98]]= _0x90f4x24[_0xc84d[209]][_0xc84d[102]](_0xc84d[101])[0];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]]= true}}else {bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[99]]= _0x90f4x24[_0xc84d[200]][_0xc84d[201]]();if(_0x90f4x24[_0xc84d[200]]=== _0xc84d[98]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[98]]= _0x90f4x24[_0xc84d[98]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]]= true}}}}function varset(_0x90f4x24){if(_0x90f4x24[_0xc84d[220]][_0xc84d[219]](_0xc84d[218])){logger[_0xc84d[73]](_0xc84d[221],_0x90f4x24[_0xc84d[88]],_0x90f4x24[_0xc84d[222]]);videoOnUrls[_0x90f4x24[_0xc84d[88]]]= _0x90f4x24[_0xc84d[222]][_0xc84d[223]](/\\/g,_0xc84d[183])}else {if(_0x90f4x24[_0xc84d[220]][_0xc84d[219]](_0xc84d[89])){extraVars[_0x90f4x24[_0xc84d[88]]]= _0x90f4x24[_0xc84d[222]]}};if(bill[_0x90f4x24[_0xc84d[88]]]){if(_0x90f4x24[_0xc84d[220]][_0xc84d[219]](_0xc84d[224])){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]= true;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[202]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[149]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[139]]= _0x90f4x24[_0xc84d[222]][_0xc84d[201]]();if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[139]]=== _0xc84d[225]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[63]]= true;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[179]]= _0x90f4x24[_0xc84d[179]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[178]]= _0x90f4x24[_0xc84d[178]];ami[_0xc84d[148]](_0xc84d[205],_[_0xc84d[147]](bill[_0x90f4x24[_0xc84d[88]]]));delete bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[63]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[202]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[139]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[206]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[207]]= null;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[208]]= null}}}}function queuecallerabandon(_0x90f4x24){if(bill[_0x90f4x24[_0xc84d[88]]]&&  !bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[202]]= true;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[149]]= false;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[206]]= _0x90f4x24[_0xc84d[206]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[207]]= _0x90f4x24[_0xc84d[207]];bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[208]]= _0x90f4x24[_0xc84d[208]]}}function hangup(_0x90f4x24){if(bill[_0x90f4x24[_0xc84d[88]]]){var _0x90f4x35=moment();bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[226]]= _0x90f4x35[_0xc84d[59]](_0xc84d[58]);bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[227]]= _0x90f4x35[_0xc84d[230]](bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[228]],_0xc84d[229]);if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[188]]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[231]]= _0x90f4x35[_0xc84d[230]](bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[188]],_0xc84d[229])};ami[_0xc84d[148]](_0xc84d[78],bill[_0x90f4x24[_0xc84d[88]]]);if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[93]]|| (bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[149]]&&  !bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[188]])){if(bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[202]]){ami[_0xc84d[148]](_0xc84d[203],bill[_0x90f4x24[_0xc84d[88]]])}else {if(!bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]){bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[199]]= true;bill[_0x90f4x24[_0xc84d[88]]][_0xc84d[139]]= _0xc84d[204]};ami[_0xc84d[148]](_0xc84d[205],bill[_0x90f4x24[_0xc84d[88]]])}};delete bill[_0x90f4x24[_0xc84d[88]]]}}ami[_0xc84d[74]](_0xc84d[205],function(_0x90f4x24){try{addToQueue(_0xc84d[232],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[233],err)}});ami[_0xc84d[74]](_0xc84d[203],function(_0x90f4x24){try{addToQueue(_0xc84d[234],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[235],err)}});ami[_0xc84d[74]](_0xc84d[236],function(_0x90f4x24){try{newchannel(_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[237],err)}});ami[_0xc84d[74]](_0xc84d[238],function(_0x90f4x24){try{newstate(_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[239],err)}});ami[_0xc84d[74]](_0xc84d[240],function(_0x90f4x24){try{newexten(_0x90f4x24,false)}catch(err){logger[_0xc84d[27]](_0xc84d[241],err)}});ami[_0xc84d[74]](_0xc84d[242],function(_0x90f4x24){try{varset(_0x90f4x24);addToQueue(_0xc84d[242],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[243],err)}});ami[_0xc84d[74]](_0xc84d[234],function(_0x90f4x24){try{queuecallerabandon(_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[244],err)}});ami[_0xc84d[74]](_0xc84d[245],function(_0x90f4x24){try{delete videoOnUrls[_0x90f4x24[_0xc84d[88]]];delete extraVars[_0x90f4x24[_0xc84d[88]]];hangup(_0x90f4x24);addToQueue(_0xc84d[245],_0x90f4x24)}catch(err){logger[_0xc84d[27]](_0xc84d[246],err)}});function handlePause(_0x90f4x37,_0x90f4x38){return function(_0x90f4x39){var _0x90f4x3a=_0x90f4x39[_0xc84d[247]];var _0x90f4x3b=false;var _0x90f4x3c,_0x90f4x3d;_0x90f4x3c= _0x90f4x3d= _0x90f4x37[_0xc84d[248]][_0xc84d[192]]|| _0x90f4x38[_0xc84d[249]]|| _0x90f4x38[_0xc84d[250]];if(_[_0xc84d[211]](_0x90f4x3d,_0xc84d[251])){_0x90f4x3d= _0x90f4x3d[_0xc84d[252]](1);_0x90f4x3b= true};var _0x90f4x3e={id:_0x90f4x39[_0xc84d[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0x90f4x3c,lastPauseAt:moment()[_0xc84d[59]](_0xc84d[58])};return _0x90f4x39[_0xc84d[269]](_0x90f4x3e)[_0xc84d[32]](function(_0x90f4x44){if(_0x90f4x44){return events[_0xc84d[268]](_[_0xc84d[267]]({newValues:_0x90f4x3e},_0x90f4x44[_0xc84d[266]]))}})[_0xc84d[32]](function(){var _0x90f4x43=moment()[_0xc84d[59]](_0xc84d[58]);return models[_0xc84d[264]][_0xc84d[265]]({duration:moment(_0x90f4x43)[_0xc84d[230]](moment(_0x90f4x3a),_0xc84d[229]),exitAt:_0x90f4x43},{where:{membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[258],exitAt:null}})})[_0xc84d[32]](function(){var _0x90f4x3f=(_0x90f4x3e[_0xc84d[254]]&&  !_0x90f4x3b)?channels:_[_0xc84d[255]](channels,function(_0x90f4x40){return _0x90f4x40!== _0xc84d[20]});var _0x90f4x41=[];_0x90f4x3f[_0xc84d[31]](function(_0x90f4x42){_0x90f4x41[_0xc84d[262]]({channel:_0x90f4x42,membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[258],enterAt:moment()[_0xc84d[59]](_0xc84d[58]),data1:_0x90f4x3d,data2:_0x90f4x38[_0xc84d[259]],data4:_0x90f4x3d,role:_0x90f4x39[_0xc84d[260]],internal:_0x90f4x39[_0xc84d[174]],uniqueid:_0x90f4x38[_0xc84d[261]]})});return models[_0xc84d[264]][_0xc84d[263]](_0x90f4x41,{raw:true,individualHooks:true})})}}function handleUnpause(_0x90f4x37,_0x90f4x38){return function(_0x90f4x39){var _0x90f4x3e;if(!_0x90f4x37[_0xc84d[248]]){_0x90f4x37[_0xc84d[248]]= {}};if(_0x90f4x37[_0xc84d[248]][_0xc84d[192]]!== _0xc84d[270]){events[_0xc84d[272]](_0x90f4x39[_0xc84d[29]],_0x90f4x39[_0xc84d[271]],false)};switch(_0x90f4x37[_0xc84d[248]][_0xc84d[182]]){case _0xc84d[20]:_0x90f4x3e= {id:_0x90f4x39[_0xc84d[253]],voicePause:false};return _0x90f4x39[_0xc84d[269]](_0x90f4x3e)[_0xc84d[32]](function(_0x90f4x44){return events[_0xc84d[268]](_[_0xc84d[267]]({newValues:_0x90f4x3e},_0x90f4x44[_0xc84d[266]]))})[_0xc84d[32]](function(){return models[_0xc84d[264]][_0xc84d[274]]({where:{channel:_0x90f4x37[_0xc84d[248]][_0xc84d[182]],membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[258],exitAt:null}})})[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[273]}))[_0xc84d[32]](function(_0x90f4x46){return _0x90f4x46[_0xc84d[269]]({exitAt:moment()[_0xc84d[59]](_0xc84d[58])})})[_0xc84d[32]](function(){return _0x90f4x39});case _0xc84d[21]:;case _0xc84d[22]:;case _0xc84d[16]:;case _0xc84d[23]:;case _0xc84d[24]:var _0x90f4x47={};_0x90f4x47[util[_0xc84d[59]](_0xc84d[275],_0x90f4x37[_0xc84d[248]][_0xc84d[182]],_0xc84d[276])]= false;return _0x90f4x39[_0xc84d[269]](_0x90f4x47)[_0xc84d[32]](function(_0x90f4x39){_0x90f4x47[_0xc84d[253]]= _0x90f4x39[_0xc84d[253]];return events[_0xc84d[268]](_[_0xc84d[267]]({newValues:_0x90f4x47},_0x90f4x39[_0xc84d[266]]))})[_0xc84d[32]](function(){return models[_0xc84d[264]][_0xc84d[274]]({where:{channel:_0x90f4x37[_0xc84d[248]][_0xc84d[182]],membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[258],exitAt:null}})})[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[273]}))[_0xc84d[32]](function(_0x90f4x46){return _0x90f4x46[_0xc84d[269]]({exitAt:moment()[_0xc84d[59]](_0xc84d[58])})})[_0xc84d[32]](function(){return _0x90f4x39});default:_0x90f4x3e= {id:_0x90f4x39[_0xc84d[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0x90f4x39[_0xc84d[269]](_0x90f4x3e)[_0xc84d[32]](function(_0x90f4x44){return events[_0xc84d[268]](_[_0xc84d[267]]({newValues:_0x90f4x3e},_0x90f4x39[_0xc84d[266]]))})[_0xc84d[32]](function(){return models[_0xc84d[264]][_0xc84d[33]]({where:{membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[258],exitAt:null}})})[_0xc84d[32]](function(_0x90f4x48){var _0x90f4x49=[];_0x90f4x48[_0xc84d[31]](function(_0x90f4x4a){_0x90f4x49[_0xc84d[262]](_0x90f4x4a[_0xc84d[269]]({exitAt:moment()[_0xc84d[59]](_0xc84d[58])}))});return BPromise[_0xc84d[277]](_0x90f4x49)})[_0xc84d[32]](function(){return _0x90f4x39})}}}function queueAddUpdate(_0x90f4x4c,_0x90f4x4d){return models[_0xc84d[278]][_0xc84d[274]]({where:{queue:_0x90f4x4c,membername:_0x90f4x4d}})[_0xc84d[32]](function(_0x90f4x4e){if(_0x90f4x4e){return _0x90f4x4e[_0xc84d[269]]({logged:true,loggedAt:moment()[_0xc84d[59]](_0xc84d[58])})}})}function handleLogin(_0x90f4x37,_0x90f4x38){return function(_0x90f4x39){if(!_0x90f4x39[_0xc84d[279]]){_0x90f4x39[_0xc84d[279]]= true;return BPromise[_0xc84d[289]]()[_0xc84d[32]](function(){return events[_0xc84d[268]](_[_0xc84d[288]]({newValues:_0x90f4x39[_0xc84d[266]]},_0x90f4x39[_0xc84d[266]]))})[_0xc84d[32]](function(){return _0x90f4x39[_0xc84d[287]]()})[_0xc84d[32]](function(voiceQueues){var _0x90f4x50=[];voiceQueues[_0xc84d[31]](function(_0x90f4x51){_0x90f4x50[_0xc84d[262]](amiAction({action:_0xc84d[284],queue:_0x90f4x51[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),membername:_0x90f4x39[_0xc84d[29]],penalty:_0x90f4x51[_0xc84d[278]][_0xc84d[285]],paused:_0x90f4x39[_0xc84d[286]]})[_0xc84d[28]](function(_0x90f4x19){if(_0x90f4x19[_0xc84d[281]]=== _0xc84d[282]){return queueAddUpdate(_0x90f4x51[_0xc84d[29]],_0x90f4x39[_0xc84d[29]])};logger[_0xc84d[27]](_0xc84d[283],_0x90f4x51[_0xc84d[29]],_0x90f4x19)}))});return _0x90f4x50})[_0xc84d[277]]()[_0xc84d[32]](function(){var _0x90f4x41=[];channels[_0xc84d[31]](function(_0x90f4x42){_0x90f4x41[_0xc84d[262]]({channel:_0x90f4x42,membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[280],enterAt:moment()[_0xc84d[59]](_0xc84d[58]),role:_0x90f4x39[_0xc84d[260]],internal:_0x90f4x39[_0xc84d[174]]})});return models[_0xc84d[264]][_0xc84d[263]](_0x90f4x41,{raw:true,individualHooks:true})})}}}function logoutAgent(_0x90f4x39){return BPromise[_0xc84d[289]]()[_0xc84d[32]](function(){return events[_0xc84d[268]](_[_0xc84d[288]]({newValues:{id:_0x90f4x39[_0xc84d[253]],online:false}},_0x90f4x39[_0xc84d[266]],{online:false}))})[_0xc84d[32]](function(){return models[_0xc84d[65]][_0xc84d[33]]()})[_0xc84d[32]](function(voiceQueues){var _0x90f4x50=[];voiceQueues[_0xc84d[31]](function(_0x90f4x51){_0x90f4x50[_0xc84d[262]](amiAction({action:_0xc84d[290],queue:_0x90f4x51[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]])})[_0xc84d[28]](function(_0x90f4x19){}))});return BPromise[_0xc84d[277]](_0x90f4x50)})[_0xc84d[32]](function(_0x90f4x53){return models[_0xc84d[264]][_0xc84d[33]]({where:{membername:_0x90f4x39[_0xc84d[29]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),type:_0xc84d[280],exitAt:null}})})[_0xc84d[32]](function(_0x90f4x48){var _0x90f4x49=[];_0x90f4x48[_0xc84d[31]](function(_0x90f4x4a){_0x90f4x49[_0xc84d[262]](_0x90f4x4a[_0xc84d[269]]({exitAt:moment()[_0xc84d[59]](_0xc84d[58])}))});return BPromise[_0xc84d[277]](_0x90f4x49)})}function handleLogout(_0x90f4x37,_0x90f4x38){return function(_0x90f4x39){return BPromise[_0xc84d[289]]()[_0xc84d[32]](function(){if(_0x90f4x39[_0xc84d[260]]=== _0xc84d[291]){return logoutAgent(_0x90f4x39)}})[_0xc84d[32]](function(){return _0x90f4x39[_0xc84d[269]]({online:false})})}}function handleQueueAdd(_0x90f4x37,_0x90f4x38){return function(_0x90f4x39){var _0x90f4x56=[];switch(_0x90f4x37[_0xc84d[248]][_0xc84d[182]]){case _0xc84d[20]:_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x56[_0xc84d[262]](models[_0xc84d[278]][_0xc84d[293]]({where:{UserId:_0x90f4x39[_0xc84d[253]],queue:_0x90f4x4c},defaults:{queue:_0x90f4x4c,location:util[_0xc84d[59]](_0xc84d[292],_0x90f4x39[_0xc84d[29]]),membername:_0x90f4x39[_0xc84d[29]],UserId:_0x90f4x39[_0xc84d[253]],penalty:_0x90f4x38[_0xc84d[259]]},individualHooks:true,raw:true}))});return BPromise[_0xc84d[277]](_0x90f4x56)[_0xc84d[32]](function(){var _0x90f4x50=[];_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x50[_0xc84d[262]](amiAction({action:_0xc84d[284],queue:_0x90f4x4c,paused:_0x90f4x39[_0xc84d[254]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]]),membername:_0x90f4x39[_0xc84d[29]]})[_0xc84d[28]](function(_0x90f4x19){if(_0x90f4x19[_0xc84d[281]]=== _0xc84d[282]){return queueAddUpdate(_0x90f4x4c,_0x90f4x39[_0xc84d[29]])};logger[_0xc84d[27]](_0xc84d[295],_0x90f4x4c,_0x90f4x19)}))});return BPromise[_0xc84d[277]](_0x90f4x50)});case _0xc84d[21]:_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x56[_0xc84d[262]](models[_0xc84d[296]][_0xc84d[293]]({where:{UserId:_0x90f4x39[_0xc84d[253]],ChatQueueId:_0x90f4x4c[_0xc84d[253]]},defaults:{ChatQueueId:_0x90f4x4c[_0xc84d[253]],queue:_0x90f4x4c[_0xc84d[29]],UserId:_0x90f4x39[_0xc84d[253]],penalty:_0x90f4x38[_0xc84d[259]]},individualHooks:true,raw:true}))});return BPromise[_0xc84d[277]](_0x90f4x56);case _0xc84d[22]:_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x56[_0xc84d[262]](models[_0xc84d[297]][_0xc84d[293]]({where:{UserId:_0x90f4x39[_0xc84d[253]],MailQueueId:_0x90f4x4c[_0xc84d[253]]},defaults:{MailQueueId:_0x90f4x4c[_0xc84d[253]],queue:_0x90f4x4c[_0xc84d[29]],UserId:_0x90f4x39[_0xc84d[253]],penalty:_0x90f4x38[_0xc84d[259]]},individualHooks:true,raw:true}))});return BPromise[_0xc84d[277]](_0x90f4x56);case _0xc84d[23]:_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x56[_0xc84d[262]](models[_0xc84d[298]][_0xc84d[293]]({where:{UserId:_0x90f4x39[_0xc84d[253]],SmsQueueId:_0x90f4x4c[_0xc84d[253]]},defaults:{SmsQueueId:_0x90f4x4c[_0xc84d[253]],queue:_0x90f4x4c[_0xc84d[29]],UserId:_0x90f4x39[_0xc84d[253]],penalty:_0x90f4x38[_0xc84d[259]]},individualHooks:true,raw:true}))});return BPromise[_0xc84d[277]](_0x90f4x56);case _0xc84d[24]:_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x56[_0xc84d[262]](models[_0xc84d[299]][_0xc84d[293]]({where:{UserId:_0x90f4x39[_0xc84d[253]],OpenchannelQueueId:_0x90f4x4c[_0xc84d[253]]},defaults:{OpenchannelQueueId:_0x90f4x4c[_0xc84d[253]],queue:_0x90f4x4c[_0xc84d[29]],UserId:_0x90f4x39[_0xc84d[253]],penalty:_0x90f4x38[_0xc84d[259]]},individualHooks:true,raw:true}))});return BPromise[_0xc84d[277]](_0x90f4x56);case _0xc84d[16]:_0x90f4x37[_0xc84d[248]][_0xc84d[294]][_0xc84d[31]](function(_0x90f4x4c){_0x90f4x56[_0xc84d[262]](models[_0xc84d[300]][_0xc84d[293]]({where:{UserId:_0x90f4x39[_0xc84d[253]],FaxQueueId:_0x90f4x4c[_0xc84d[253]]},defaults:{faxQueueId:_0x90f4x4c[_0xc84d[253]],queue:_0x90f4x4c[_0xc84d[29]],UserId:_0x90f4x39[_0xc84d[253]],penalty:_0x90f4x38[_0xc84d[259]]},individualHooks:true,raw:true}))});return BPromise[_0xc84d[277]](_0x90f4x56);default:}}}function handleQueueRemove(_0x90f4x37,_0x90f4x38){return function(_0x90f4x39){switch(_0x90f4x37[_0xc84d[248]][_0xc84d[182]]){case _0xc84d[20]:return models[_0xc84d[278]][_0xc84d[302]]({where:{UserId:_0x90f4x39[_0xc84d[253]],queue:_0x90f4x37[_0xc84d[248]][_0xc84d[98]]},individualHooks:true,raw:true})[_0xc84d[32]](function(){return amiAction({action:_0xc84d[290],queue:_0x90f4x37[_0xc84d[248]][_0xc84d[98]],interface:util[_0xc84d[59]](_0xc84d[256],_0xc84d[257],_0x90f4x39[_0xc84d[29]])})})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[301],_0x90f4x19[_0xc84d[26]])});case _0xc84d[21]:return models[_0xc84d[296]][_0xc84d[274]]({where:{UserId:_0x90f4x39[_0xc84d[253]],ChatQueueId:_0x90f4x37[_0xc84d[248]][_0xc84d[304]]}})[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x58){return _0x90f4x58[_0xc84d[302]]()}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[303],_0x90f4x19)});case _0xc84d[22]:return models[_0xc84d[297]][_0xc84d[274]]({where:{UserId:_0x90f4x39[_0xc84d[253]],MailQueueId:_0x90f4x37[_0xc84d[248]][_0xc84d[304]]}})[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x58){return _0x90f4x58[_0xc84d[302]]()}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[305],_0x90f4x19)});case _0xc84d[23]:return models[_0xc84d[298]][_0xc84d[274]]({where:{UserId:_0x90f4x39[_0xc84d[253]],SmsQueueId:_0x90f4x37[_0xc84d[248]][_0xc84d[304]]}})[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x58){return _0x90f4x58[_0xc84d[302]]()}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[306],_0x90f4x19)});case _0xc84d[24]:return models[_0xc84d[299]][_0xc84d[274]]({where:{UserId:_0x90f4x39[_0xc84d[253]],OpenchannelQueueId:_0x90f4x37[_0xc84d[248]][_0xc84d[304]]}})[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x58){return _0x90f4x58[_0xc84d[302]]()}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[307],_0x90f4x19)});case _0xc84d[16]:return models[_0xc84d[300]][_0xc84d[274]]({where:{UserId:_0x90f4x39[_0xc84d[253]],FaxQueueId:_0x90f4x37[_0xc84d[248]][_0xc84d[304]]}})[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x58){return _0x90f4x58[_0xc84d[302]]()}})[_0xc84d[28]](function(_0x90f4x19){faxLogger[_0xc84d[27]](_0xc84d[308],_0x90f4x19)});default:}}}function handleEntityNotFound(_0x90f4x5a){return function(_0x90f4x5b){if(!_0x90f4x5b){throw _0x90f4x5a};return _0x90f4x5b}}function onSave(_0x90f4x38,_0x90f4x37){switch(_0x90f4x38[_0xc84d[29]]){case _0xc84d[312]:return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x37[_0xc84d[248]][_0xc84d[291]])[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[309]}))[_0xc84d[32]](handlePause(_0x90f4x37,_0x90f4x38));case _0xc84d[313]:return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x37[_0xc84d[248]][_0xc84d[291]])[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[309]}))[_0xc84d[32]](handleUnpause(_0x90f4x37,_0x90f4x38));case _0xc84d[314]:return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x38[_0xc84d[250]])[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[309]}))[_0xc84d[32]](handleLogin(_0x90f4x37,_0x90f4x38))[_0xc84d[32]](function(_0x90f4x5d){return _0x90f4x5d});case _0xc84d[315]:return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x38[_0xc84d[250]])[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[309]}))[_0xc84d[32]](handleUnpause(_0x90f4x37,_0x90f4x38))[_0xc84d[32]](handleLogout(_0x90f4x37,_0x90f4x38));case _0xc84d[284]:return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x37[_0xc84d[248]][_0xc84d[291]])[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[309]}))[_0xc84d[32]](handleQueueAdd(_0x90f4x37,_0x90f4x38))[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x37[_0xc84d[248]][_0xc84d[182]]!== _0xc84d[20]){return events[_0xc84d[317]](_0x90f4x58,_0x90f4x37[_0xc84d[248]][_0xc84d[182]])}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[316],_0x90f4x19[_0xc84d[26]])});case _0xc84d[290]:return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x37[_0xc84d[248]][_0xc84d[291]])[_0xc84d[32]](handleEntityNotFound({message:_0xc84d[309]}))[_0xc84d[32]](handleQueueRemove(_0x90f4x37,_0x90f4x38))[_0xc84d[32]](function(_0x90f4x58){if(_0x90f4x37[_0xc84d[248]][_0xc84d[182]]!== _0xc84d[20]){return events[_0xc84d[319]](_0x90f4x58,_0x90f4x37[_0xc84d[248]][_0xc84d[182]])}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[318],_0x90f4x19[_0xc84d[26]])});default:throw {message:_0xc84d[320]}}}function clean(channels){removeInactiveCalls();_[_0xc84d[31]](channels,function(_0x90f4x42){removeExpiredApplications(_0x90f4x42)})}function removeInactiveCalls(){logger[_0xc84d[73]](_0xc84d[321]);var _0x90f4x60=[],_0x90f4x61=[],_0x90f4x62=moment()[_0xc84d[59]](_0xc84d[58]);return amiAction({action:_0xc84d[338],command:_0xc84d[339]})[_0xc84d[32]](function(_0x90f4x6a){var _0x90f4x6b;if(_0x90f4x6a&& _0x90f4x6a[_0xc84d[332]]){var _0x90f4x58=_0x90f4x6a[_0xc84d[332]][_0xc84d[102]](_0xc84d[333]);_[_0xc84d[31]](_0x90f4x58,function(_0x90f4x40){if(_0x90f4x40){_0x90f4x6b= _0x90f4x40[_0xc84d[102]](_0xc84d[334]);_0x90f4x6b[_0xc84d[335]]=== 14&& _0x90f4x61[_0xc84d[262]](_0x90f4x6b[_0xc84d[336]]())}})};return models[_0xc84d[337]][_0xc84d[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0xc84d[32]](function(_0x90f4x69){_[_0xc84d[31]](_0x90f4x69,function(_0x90f4x66){if(!_[_0xc84d[193]](_0x90f4x61,_0x90f4x66[_0xc84d[88]])){_0x90f4x60[_0xc84d[262]](_0x90f4x66[_0xc84d[269]]({queuecallerleaveAt:_0x90f4x62,queuecallerexitAt:_0x90f4x62,queuecallerexit:true,queuecallerexitreason:_0xc84d[325]}))}});return models[_0xc84d[331]][_0xc84d[33]]({where:{leaveAt:null}})})[_0xc84d[32]](function(_0x90f4x68){_[_0xc84d[31]](_0x90f4x68,function(_0x90f4x66){if(!_[_0xc84d[193]](_0x90f4x61,_0x90f4x66[_0xc84d[88]])){_0x90f4x60[_0xc84d[262]](_0x90f4x66[_0xc84d[269]]({leaveAt:_0x90f4x62,network:_0xc84d[329]}))}});return models[_0xc84d[330]][_0xc84d[33]]({where:{endtime:null}})})[_0xc84d[32]](function(_0x90f4x67){_[_0xc84d[31]](_0x90f4x67,function(_0x90f4x66){if(!_[_0xc84d[193]](_0x90f4x61,_0x90f4x66[_0xc84d[88]])){_0x90f4x60[_0xc84d[262]](_0x90f4x66[_0xc84d[269]]({endtime:_0x90f4x62,dialstatus:_0xc84d[326]}))}});return models[_0xc84d[328]][_0xc84d[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0xc84d[32]](function(_0x90f4x65){_[_0xc84d[31]](_0x90f4x65,function(_0x90f4x66){if(!_[_0xc84d[193]](_0x90f4x61,_0x90f4x66[_0xc84d[88]])){_0x90f4x60[_0xc84d[262]](_0x90f4x66[_0xc84d[269]]({lastevent:_0xc84d[199],agentringnoanswer:true,agentringnoanswerAt:_0x90f4x62,reason:_0xc84d[326]}))}});return models[_0xc84d[264]][_0xc84d[33]]({where:{type:_0xc84d[327],enterAt:{$ne:null},exitAt:null}})})[_0xc84d[32]](function(_0x90f4x63){_[_0xc84d[31]](_0x90f4x63,function(_0x90f4x64){if(!_[_0xc84d[193]](_0x90f4x61,_0x90f4x64[_0xc84d[88]])){_0x90f4x60[_0xc84d[262]](_0x90f4x64[_0xc84d[269]]({exitAt:_0x90f4x64[_0xc84d[324]],data4:_0xc84d[325]}))}});return _0x90f4x60})[_0xc84d[277]]()[_0xc84d[32]](function(){logger[_0xc84d[73]](_0xc84d[323])})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[322],_0x90f4x19[_0xc84d[26]])})}function removeExpiredApplications(_0x90f4x42){return models[_0xc84d[347]+ _0x90f4x42+ _0xc84d[348]][_0xc84d[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0xc84d[32]](function(_0x90f4x6d){var _0x90f4x6e,_0x90f4x6f=[];_[_0xc84d[31]](_0x90f4x6d,function(_0x90f4x70){_0x90f4x6e= moment(_0x90f4x70[_0xc84d[345]])[_0xc84d[344]](_0x90f4x70[_0xc84d[343]],_0xc84d[229]);if(moment()[_0xc84d[346]](_0x90f4x6e)){_0x90f4x6f[_0xc84d[262]](_0x90f4x70[_0xc84d[269]]({timeout:true,leaveAt:moment()[_0xc84d[59]](_0xc84d[58])}))}});return _0x90f4x6f})[_0xc84d[277]]()[_0xc84d[32]](function(){logger[_0xc84d[73]](_0xc84d[340]+ _0x90f4x42+ _0xc84d[342])})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[340]+ _0x90f4x42+ _0xc84d[341],_0x90f4x19)})}var channelModels=[_0xc84d[349],_0xc84d[350],_0xc84d[351],_0xc84d[352],_0xc84d[353]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0x90f4x73){switch(_0x90f4x73[_0xc84d[192]]){case _0xc84d[364]:return models[_0xc84d[366]][_0xc84d[365]](_0xc84d[364])[_0xc84d[33]]()[_0xc84d[32]](function(_0x90f4x74){var _0x90f4x75=_0xc84d[183];var _0x90f4x76=_0xc84d[355];_0x90f4x74[_0xc84d[31]](function(_0x90f4x77){_0x90f4x75+= util[_0xc84d[59]](_0xc84d[356],_0x90f4x77[_0xc84d[222]])});fs[_0xc84d[363]](path[_0xc84d[358]](config[_0xc84d[357]],_0x90f4x76),_0x90f4x75,{flags:_0xc84d[359],mode:parseInt(_0xc84d[360],8)},function(_0x90f4x19){if(_0x90f4x19){throw _0x90f4x19};amiCommand(_0xc84d[361]);logger[_0xc84d[73]](_0xc84d[362])})})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[354],_0x90f4x19)});case _0xc84d[371]:return models[_0xc84d[366]][_0xc84d[365]](_0xc84d[371])[_0xc84d[33]]()[_0xc84d[32]](function(_0x90f4x78){var _0x90f4x79=_0xc84d[183];var _0x90f4x7a=_0xc84d[368];_0x90f4x78[_0xc84d[31]](function(_0x90f4x7b){_0x90f4x79+= util[_0xc84d[59]](_0xc84d[369],_0x90f4x7b[_0xc84d[222]])});fs[_0xc84d[363]](path[_0xc84d[358]](config[_0xc84d[357]],_0x90f4x7a),_0x90f4x79,{flags:_0xc84d[359],mode:parseInt(_0xc84d[360],8)},function(_0x90f4x19){if(_0x90f4x19){throw _0x90f4x19};amiCommand(_0xc84d[361]);logger[_0xc84d[73]](_0xc84d[370])})})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[367],_0x90f4x19)});default:logger[_0xc84d[27]](_0xc84d[372],_0x90f4x73[_0xc84d[192]])}}function amiCommand(_0x90f4x7d){return amiAction({Action:_0xc84d[338],command:_0x90f4x7d})[_0xc84d[32]](function(_0x90f4x58){logger[_0xc84d[73]](_0xc84d[373],_0x90f4x7d,_0x90f4x58)})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[373],_0x90f4x7d,_0x90f4x19)})}function trunksRewrite(){var _0x90f4x7f=_0xc84d[183];var _0x90f4x80=_0xc84d[183];var _0x90f4x81=_0xc84d[374];return models[_0xc84d[34]][_0xc84d[33]]({where:{active:true},raw:true})[_0xc84d[32]](function(_0x90f4x1a){activeTrunks= {};_0x90f4x1a[_0xc84d[31]](function(_0x90f4x82){activeTrunks[_0x90f4x82[_0xc84d[29]]]= _0x90f4x82[_0xc84d[30]];delete _0x90f4x82[_0xc84d[375]];delete _0x90f4x82[_0xc84d[345]];delete _0x90f4x82[_0xc84d[376]];delete _0x90f4x82[_0xc84d[377]];delete _0x90f4x82[_0xc84d[83]];if(_0x90f4x82[_0xc84d[85]]){_0x90f4x80+= util[_0xc84d[59]](_0x90f4x81,_0x90f4x82[_0xc84d[85]])};delete _0x90f4x82[_0xc84d[85]];_0x90f4x7f+= util[_0xc84d[59]](_0xc84d[378],_0x90f4x82[_0xc84d[29]]);if(_0x90f4x82[_0xc84d[379]]){_0x90f4x7f+= util[_0xc84d[59]](_0xc84d[380],_0x90f4x82[_0xc84d[379]]);delete _0x90f4x82[_0xc84d[379]]};for(var _0x90f4x30 in _0x90f4x82){if(_0x90f4x82[_0x90f4x30]){switch(_0x90f4x30){case _0xc84d[383]:var _0x90f4x83=_0x90f4x82[_0x90f4x30][_0xc84d[102]](_0xc84d[381]);_0x90f4x83[_0xc84d[31]](function(_0x90f4x40){_0x90f4x7f+= util[_0xc84d[59]](_0xc84d[382],_0x90f4x30,_0x90f4x40)});break;default:_0x90f4x7f+= util[_0xc84d[59]](_0xc84d[382],_0x90f4x30,_0x90f4x82[_0x90f4x30])}}}});fs[_0xc84d[363]](path[_0xc84d[358]](config[_0xc84d[357]],_0xc84d[384]),_0x90f4x7f,{flags:_0xc84d[359],mode:parseInt(_0xc84d[360],8)},function(_0x90f4x19){if(_0x90f4x19){throw _0x90f4x19};logger[_0xc84d[73]](_0xc84d[385]);fs[_0xc84d[363]](path[_0xc84d[358]](config[_0xc84d[357]],_0xc84d[386]),_0x90f4x80,{flags:_0xc84d[359],mode:parseInt(_0xc84d[360],8)},function(_0x90f4x19){if(_0x90f4x19){throw _0x90f4x19};amiCommand(_0xc84d[361]);logger[_0xc84d[73]](_0xc84d[387])})})})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0x90f4x19)})}function rewriteContexts(_0x90f4x73,_0x90f4x85){return function(){var _0x90f4x86=_0xc84d[183];if(!_0x90f4x85){_0x90f4x86= util[_0xc84d[59]](_0xc84d[388],_0x90f4x73[_0xc84d[29]],_0x90f4x73[_0xc84d[29]])};return models[_0xc84d[393]][_0xc84d[33]]({where:{id:{$ne:_0x90f4x73[_0xc84d[253]]}}})[_0xc84d[32]](function(_0x90f4x87){_0x90f4x87[_0xc84d[31]](function(_0x90f4x82){_0x90f4x86+= util[_0xc84d[59]](_0xc84d[388],_0x90f4x82[_0xc84d[29]],_0x90f4x82[_0xc84d[29]])});fs[_0xc84d[363]](path[_0xc84d[358]](config[_0xc84d[357]],_0xc84d[390]),_0x90f4x86,{flags:_0xc84d[359],mode:parseInt(_0xc84d[360],8)},function(_0x90f4x19){if(_0x90f4x19){throw _0x90f4x19};logger[_0xc84d[73]](_0xc84d[391]);amiCommand(_0xc84d[392])})})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[389],_0x90f4x19)})}}function createHangup(_0x90f4x73){return function(){logger[_0xc84d[73]](_0xc84d[394],_0x90f4x73[_0xc84d[29]]);var _0x90f4x47=[{context:_0x90f4x73[_0xc84d[29]],exten:_0xc84d[395],priority:_0xc84d[396],VoiceContextId:_0x90f4x73[_0xc84d[253]],type:_0xc84d[397],app:_0xc84d[398]},{context:_0x90f4x73[_0xc84d[29]],exten:_0xc84d[399],priority:_0xc84d[396],VoiceContextId:_0x90f4x73[_0xc84d[253]],type:_0xc84d[397],app:_0xc84d[398]}];return models[_0xc84d[402]][_0xc84d[263]](_0x90f4x47)[_0xc84d[32]](function(){logger[_0xc84d[73]](_0xc84d[401])})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[400],_0x90f4x19)})}}function rtpRewrite(_0x90f4x47){if(_0x90f4x47){var _0x90f4x8a=_0xc84d[183];for(var _0x90f4x30 in _0x90f4x47){_0x90f4x47[_0x90f4x30]&& (_0x90f4x8a+= util[_0xc84d[59]](_0xc84d[382],_0x90f4x30,_0x90f4x47[_0x90f4x30]))};try{fs[_0xc84d[404]](path[_0xc84d[358]](config[_0xc84d[357]],_0xc84d[403]),_0x90f4x8a,{flag:_0xc84d[359],mode:parseInt(_0xc84d[360],8)});logger[_0xc84d[73]](_0xc84d[405]);amiCommand(_0xc84d[406])}catch(err){logger[_0xc84d[27]](_0xc84d[407],err)}}else {logger[_0xc84d[27]](_0xc84d[408])}}function execRequest(_0x90f4x73,_0x90f4x8c,_0x90f4x8d){return Util[_0xc84d[411]](_0x90f4x73,_0x90f4x8c,_0x90f4x8d)[_0xc84d[32]](function(_0x90f4x8e){faxLogger[_0xc84d[73]](_0xc84d[410])})[_0xc84d[28]](function(_0x90f4x19){faxLogger[_0xc84d[27]](_0xc84d[409],_0x90f4x19)})}function webhook(_0x90f4x73,_0x90f4x90,_0x90f4x91){switch(_0x90f4x91){case _0xc84d[419]:if(_0x90f4x90[_0xc84d[412]]&& _0x90f4x90[_0xc84d[413]]){faxLogger[_0xc84d[73]](_0xc84d[414]+ _0x90f4x90[_0xc84d[29]]+ _0xc84d[415]);execRequest(_0x90f4x73,_0x90f4x90[_0xc84d[412]],_0x90f4x90[_0xc84d[413]])};if(_0x90f4x90[_0xc84d[416]][_0xc84d[335]]){_[_0xc84d[31]](_0x90f4x90[_0xc84d[416]],function(_0x90f4x38){if(_0x90f4x38[_0xc84d[417]]){Util[_0xc84d[418]](_0x90f4x38,_0x90f4x73)}})};break;case _0xc84d[423]:if(_0x90f4x90[_0xc84d[420]]&& _0x90f4x90[_0xc84d[421]]){faxLogger[_0xc84d[73]](_0xc84d[414]+ _0x90f4x90[_0xc84d[29]]+ _0xc84d[422]);execRequest(_0x90f4x73,_0x90f4x90[_0xc84d[420]],_0x90f4x90[_0xc84d[421]])};break;case _0xc84d[77]:if(_0x90f4x90[_0xc84d[424]]&& _0x90f4x90[_0xc84d[425]]){faxLogger[_0xc84d[73]](_0xc84d[414]+ _0x90f4x90[_0xc84d[29]]+ _0xc84d[426]);execRequest(_0x90f4x73,_0x90f4x90[_0xc84d[424]],_0x90f4x90[_0xc84d[425]])};break;default:faxLogger[_0xc84d[27]](_0xc84d[427])}}function getFaxRoom(){return function(_0x90f4x90,_0x90f4x93){if(_0x90f4x93[_0xc84d[428]]){return models[_0xc84d[429]][_0xc84d[310]](_0x90f4x93.FaxRoomId)}else {return models[_0xc84d[429]][_0xc84d[33]]({limit:1,where:{contact:_0x90f4x93[_0xc84d[432]],FaxAccountId:_0x90f4x90[_0xc84d[253]]},order:[[_0xc84d[375],_0xc84d[434]]]})[_0xc84d[32]](function(_0x90f4x94){var _0x90f4x95=_[_0xc84d[430]](_0x90f4x94);if(!_0x90f4x95|| _0x90f4x95[_0xc84d[377]]=== _0xc84d[431]){return models[_0xc84d[429]][_0xc84d[63]]({contact:_0x90f4x93[_0xc84d[432]],account:_0x90f4x90[_0xc84d[29]],status:_0xc84d[433],FaxAccountId:_0x90f4x90[_0xc84d[253]]})}else {return _0x90f4x95}})}}}function sendFax(_0x90f4x97,_0x90f4x98,_0x90f4x99){if(_0x90f4x97[_0xc84d[377]]=== _0xc84d[435]){faxLogger[_0xc84d[438]](util[_0xc84d[59]](_0xc84d[436],_0x90f4x97[_0xc84d[437]],_0x90f4x97[_0xc84d[432]]));var _0x90f4x9a;var _0x90f4x9b=_0x90f4x97;var _0x90f4x9c=_0x90f4x97[_0xc84d[437]];var _0x90f4x9d=_0x90f4x97[_0xc84d[432]];var _0x90f4x9e;var _0x90f4x9f;var _0x90f4xa0,_0x90f4xa1;return models[_0xc84d[489]][_0xc84d[274]]({where:{localstationid:_0x90f4x9b[_0xc84d[437]]}})[_0xc84d[32]](function(_0x90f4xa5){if(!_0x90f4xa5){throw  new Error(_0xc84d[486])};faxLogger[_0xc84d[73]](_0xc84d[487],_0x90f4xa5[_0xc84d[450]]);_0x90f4x9e= _[_0xc84d[147]](_0x90f4xa5[_0xc84d[266]]);return models[_0xc84d[34]][_0xc84d[274]]({where:{name:_0x90f4x9e[_0xc84d[488]]},attributes:[_0xc84d[29]]})})[_0xc84d[32]](function(_0x90f4x1b){if(!_0x90f4x1b){throw  new Error(_0xc84d[484])};faxLogger[_0xc84d[73]](_0xc84d[485],_0x90f4x1b[_0xc84d[29]]);_0x90f4x9f= _[_0xc84d[147]](_0x90f4x1b[_0xc84d[266]]);return})[_0xc84d[32]](function(){return [_0x90f4x9e,_0x90f4x9b]})[_0xc84d[474]](getFaxRoom())[_0xc84d[32]](function(_0x90f4xa4){if(!_0x90f4xa4){throw  new Error(_0xc84d[481])};faxLogger[_0xc84d[73]](_0xc84d[482],_0x90f4xa4[_0xc84d[253]]);_0x90f4x9a= _0x90f4xa4;return _0x90f4x9a[_0xc84d[483]](_0x90f4x9b[_0xc84d[253]])})[_0xc84d[32]](function(){return _0x90f4x9a[_0xc84d[269]]({status:_0xc84d[433],lastEvent:_0xc84d[435],lastEventAt:moment()[_0xc84d[59]](_0xc84d[58]),faxOut:++_0x90f4x9a[_0xc84d[479]]},{individualHooks:true,user:_0x90f4x99[_0xc84d[480]]})})[_0xc84d[32]](function(_0x90f4x47){faxLogger[_0xc84d[73]](_0xc84d[477],_0x90f4x47[_0xc84d[253]]);return _0x90f4x9a[_0xc84d[478]](_0x90f4x9b.UserId)})[_0xc84d[32]](function(){return models[_0xc84d[311]][_0xc84d[310]](_0x90f4x9b.UserId)})[_0xc84d[32]](function(){if(_0x90f4x9e[_0xc84d[475]]){return models[_0xc84d[476]][_0xc84d[293]]({where:{ListId:_0x90f4x9e[_0xc84d[475]],$or:[{phone:_0x90f4x9d},{fax:_0x90f4x9d}]},defaults:{fax:_0x90f4x9d,phone:_0x90f4x9d,firstName:_0x90f4x9d,ListId:_0x90f4x9e[_0xc84d[475]]}})}else {return []}})[_0xc84d[474]](function(_0x90f4xa2,_0x90f4xa3){if(_0x90f4xa3!== undefined&&  !_0x90f4xa3){return _0x90f4xa2[_0xc84d[269]]({fax:_0x90f4x9d})};return})[_0xc84d[32]](function(){_0x90f4xa0= _0x90f4x9b[_0xc84d[461]][0][_0xc84d[6]];if(_0x90f4x9b[_0xc84d[461]][0][_0xc84d[192]]=== _0xc84d[462]){_0x90f4xa1= path[_0xc84d[358]](config[_0xc84d[463]],_0xc84d[464],_0xc84d[465],_0xc84d[16],_0xc84d[194],_0xc84d[466],_0xc84d[467],path[_0xc84d[468]](_0x90f4xa0)[_0xc84d[29]]+ _0xc84d[469]);return exec(_0xc84d[470]+ _0x90f4xa1+ _0xc84d[471]+ _0x90f4xa0)}else {_0x90f4xa1= path[_0xc84d[358]](config[_0xc84d[463]],_0xc84d[464],_0xc84d[465],_0xc84d[16],_0xc84d[194],_0xc84d[466],_0xc84d[467],path[_0xc84d[468]](_0x90f4xa0)[_0xc84d[472]]);fse[_0xc84d[473]](_0x90f4xa0,_0x90f4xa1);return}})[_0xc84d[32]](function(){fs[_0xc84d[459]](_0x90f4xa1,511);faxLogger[_0xc84d[73]](_0xc84d[460]);return models[_0xc84d[443]][_0xc84d[265]]({filename:_0x90f4xa1,localstationid:_0x90f4x9b[_0xc84d[437]],retry:_0x90f4x98},{where:{id:_0x90f4x9b[_0xc84d[253]]}})})[_0xc84d[32]](function(_0x90f4x97){return amiAction({action:_0xc84d[446],channel:util[_0xc84d[59]](_0xc84d[447],_0x90f4x9e[_0xc84d[448]],_0x90f4x9f[_0xc84d[29]],_0x90f4x9d),exten:_0x90f4x9d,context:_0xc84d[449],priority:1,callerid:util[_0xc84d[59]](_0xc84d[180],_0x90f4x9e[_0xc84d[450]],_0x90f4x9e[_0xc84d[450]]),variable:{FAXNAME:_0x90f4x9e[_0xc84d[29]],FAXNUMBER:_0x90f4x9d,FAXECM:_0x90f4x9e[_0xc84d[451]],FAXHEADERINFO:_0x90f4x9e[_0xc84d[452]],FAXLOCALSTATIONID:_0x90f4x9e[_0xc84d[450]],FAXMINRATE:_0x90f4x9e[_0xc84d[453]],FAXMAXRATE:_0x90f4x9e[_0xc84d[454]],FAXMODEM:util[_0xc84d[59]](_0xc84d[455],_0x90f4x9e[_0xc84d[456]]),FAXGATEWAY:_0x90f4x9e[_0xc84d[457]],FAXT38TIMEOUT:_0x90f4x9e[_0xc84d[458]],FAXOUTFILE:_0x90f4xa1},account:_0x90f4x9e[_0xc84d[450]]})})[_0xc84d[32]](function(_0x90f4x58){faxLogger[_0xc84d[438]](_0xc84d[444]);faxLogger[_0xc84d[73]](_0xc84d[445],_0x90f4x58)})[_0xc84d[28]](function(_0x90f4x19){faxLogger[_0xc84d[27]](_0xc84d[439],_0x90f4x19);faxLogger[_0xc84d[27]](_0xc84d[440],_0x90f4x19[_0xc84d[281]]);faxLogger[_0xc84d[27]](_0xc84d[441],_0x90f4x19[_0xc84d[26]]);return models[_0xc84d[443]][_0xc84d[265]]({status:_0xc84d[171]},{where:{id:_0x90f4x9b[_0xc84d[253]]}})[_0xc84d[32]](function(_0x90f4x47){if(_0x90f4x9a){return _0x90f4x9a[_0xc84d[269]]({lastEvent:_0xc84d[171]})};return})[_0xc84d[28]](function(_0x90f4x19){faxLogger[_0xc84d[27]](_0xc84d[442],_0x90f4x19);faxLogger[_0xc84d[27]](_0xc84d[440],_0x90f4x19[_0xc84d[281]]);faxLogger[_0xc84d[27]](_0xc84d[441],_0x90f4x19[_0xc84d[26]])})})}}models[_0xc84d[443]][_0xc84d[490]](function(_0x90f4x73,_0x90f4x37){sendFax(_0x90f4x73[_0xc84d[266]],0,_0x90f4x37)});models[_0xc84d[443]][_0xc84d[493]](function(_0x90f4x73,_0x90f4x37){if(_0x90f4x73[_0xc84d[491]](_0xc84d[377])&& _0x90f4x73[_0xc84d[377]]=== _0xc84d[435]){sendFax(_0x90f4x73[_0xc84d[266]],_0x90f4x73[_0xc84d[492]]+ 1,_0x90f4x37)}});models[_0xc84d[429]][_0xc84d[493]](function(_0x90f4x73){var _0x90f4xa6=_[_0xc84d[495]](faxaccounts,{id:_0x90f4x73[_0xc84d[494]]});if(_0x90f4xa6&& _0x90f4x73[_0xc84d[491]](_0xc84d[377])&& _0x90f4x73[_0xc84d[377]]=== _0xc84d[431]){webhook(_0x90f4x73[_0xc84d[266]],_0x90f4xa6,_0xc84d[77])}});models[_0xc84d[496]][_0xc84d[490]](function(_0x90f4x73,_0x90f4x37){onSave(_0x90f4x73,_0x90f4x37)});models[_0xc84d[489]][_0xc84d[33]]({raw:true})[_0xc84d[32]](function(_0x90f4xa7){faxaccounts= _0x90f4xa7})[_0xc84d[28]](function(_0x90f4x19){faxLogger[_0xc84d[27]](_0xc84d[497],_0x90f4x19)});function addToCollection(_0x90f4xa9,_0x90f4xaa){_0x90f4xa9[_0xc84d[262]](_0x90f4xaa)}function updateCollection(_0x90f4xa9,_0x90f4xaa){var _0x90f4xac=_[_0xc84d[495]](_0x90f4xa9,{id:_0x90f4xaa[_0xc84d[253]]});if(_0x90f4xac){_[_0xc84d[267]](_0x90f4xac,_0x90f4xaa)}else {_0x90f4xa9[_0xc84d[498]](_0x90f4xaa)}}function removeFromCollection(_0x90f4xa9,_0x90f4xaa){_[_0xc84d[499]](_0x90f4xa9,{id:_0x90f4xaa[_0xc84d[253]]})}function getWidgets(_0x90f4xaf){_0x90f4xaf= JSON[_0xc84d[468]](_0x90f4xaf|| _0xc84d[500]);var _0x90f4xb0=[];if(_0x90f4xaf[_0xc84d[501]]){_[_0xc84d[31]](_0x90f4xaf[_0xc84d[501]],function(_0x90f4xb1){_0x90f4xb0[_0xc84d[262]](_[_0xc84d[505]](_[_0xc84d[504]](_0x90f4xb1[_0xc84d[502]],_0xc84d[503])))});if(_0x90f4xb0[_0xc84d[335]]){var _0x90f4xb2=[];_[_0xc84d[31]](_0x90f4xb0,function(_0x90f4xb3){_[_0xc84d[31]](_0x90f4xb3,function(_0x90f4xb4){_[_0xc84d[193]]([_0xc84d[506],_0xc84d[507],_0xc84d[508]],_0x90f4xb4[_0xc84d[192]])&& _0x90f4xb2[_0xc84d[262]]({config:{select:_0x90f4xb4[_0xc84d[510]][_0xc84d[509]],fields:_0x90f4xb4[_0xc84d[510]][_0xc84d[511]],condition:_0x90f4xb4[_0xc84d[510]][_0xc84d[512]],table:_0x90f4xb4[_0xc84d[510]][_0xc84d[514]][_0xc84d[223]](_0xc84d[513],_0xc84d[183])},id:_0x90f4xb4[_0xc84d[515]],type:_0x90f4xb4[_0xc84d[192]]})})});return (_0x90f4xb2[_0xc84d[335]]?_0x90f4xb2:null)};return null};return null}function toAddDate(_0x90f4xb6){switch(_0x90f4xb6){case _0xc84d[516]:;case _0xc84d[517]:;case _0xc84d[518]:;case _0xc84d[519]:;case _0xc84d[520]:;case _0xc84d[521]:;case _0xc84d[522]:;case _0xc84d[523]:;case _0xc84d[524]:;case _0xc84d[525]:;case _0xc84d[526]:;case _0xc84d[527]:;case _0xc84d[528]:;case _0xc84d[529]:return false;default:return true}}function getCounterWidgetQuery(_0x90f4xb8,_0x90f4x5d){return Promise[_0xc84d[289]]()[_0xc84d[32]](function(){return _0x90f4xb8[_0xc84d[506]]})[_0xc84d[32]](reportBuildUtils[_0xc84d[545]](_0x90f4x5d))[_0xc84d[32]](function(_0x90f4xb9){var _0x90f4xba=util[_0xc84d[59]](_0xc84d[531],_0x90f4xb8[_0xc84d[509]],_0x90f4xb8[_0xc84d[506]]);if(_0x90f4xb8[_0xc84d[512]]&& _0x90f4xb8[_0xc84d[512]]!== _0xc84d[532]){_0x90f4xba+= util[_0xc84d[59]](_0xc84d[533],decodeURIComponent(_0x90f4xb8[_0xc84d[512]]))};if(toAddDate(_0x90f4xb8[_0xc84d[506]])){_0x90f4xba+= util[_0xc84d[59]]((_0x90f4xb8[_0xc84d[512]]&& _0x90f4xb8[_0xc84d[512]]!== _0xc84d[532])?_0xc84d[534]:_0xc84d[535],moment()[_0xc84d[537]](_0xc84d[536])[_0xc84d[59]](_0xc84d[58]))};if(!_0x90f4xb9|| _0x90f4xb9!== _0xc84d[538]){if(_0x90f4xb9){_0x90f4xba+= _0x90f4xb8[_0xc84d[512]]?_0xc84d[539]+ _0x90f4xb9:_0xc84d[540]+ _0x90f4xb9};logger[_0xc84d[73]](_0xc84d[541]);logger[_0xc84d[73]](_0x90f4xba);logger[_0xc84d[73]](_0xc84d[542]);return _0x90f4xba}else {logger[_0xc84d[27]](_0xc84d[543]);logger[_0xc84d[27]](_0xc84d[544]);logger[_0xc84d[27]](_0xc84d[542]);return []}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[530],_0x90f4x19[_0xc84d[26]])})}function getPieChartWidgetQuery(_0x90f4xb8,_0x90f4x5d){return Promise[_0xc84d[277]]([])[_0xc84d[32]](function(){return _0x90f4xb8[_0xc84d[506]]})[_0xc84d[32]](reportBuildUtils[_0xc84d[545]](_0x90f4x5d))[_0xc84d[32]](function(_0x90f4xb9){var _0x90f4xbc=[];var _0x90f4x40;if(_0x90f4xb8[_0xc84d[511]]){if(_[_0xc84d[547]](_0x90f4xb8[_0xc84d[511]])){_0x90f4xb8[_0xc84d[511]][_0xc84d[31]](function(_0x90f4x82){if(_0x90f4x82[_0xc84d[548]]&& _0x90f4x82[_0xc84d[549]]){_0x90f4xbc[_0xc84d[262]](_0x90f4x82[_0xc84d[548]]+ _0xc84d[550]+ _0x90f4x82[_0xc84d[549]]+ _0xc84d[551])}})}else {if(_[_0xc84d[552]](_0x90f4xb8[_0xc84d[511]])){var _0x90f4x82=JSON[_0xc84d[468]](_0x90f4xb8[_0xc84d[511]]);if(_0x90f4x82[_0xc84d[548]]&& _0x90f4x82[_0xc84d[549]]){_0x90f4xbc[_0xc84d[262]](_0x90f4x82[_0xc84d[548]]+ _0xc84d[550]+ _0x90f4x82[_0xc84d[549]]+ _0xc84d[551])}}}};var _0x90f4xbd=_0x90f4xbc[_0xc84d[335]]?_0x90f4xbc[_0xc84d[358]](_0xc84d[101]):_0xc84d[553];var _0x90f4xbe=_0xc84d[183];if(_0x90f4xb8[_0xc84d[512]]&& _0x90f4xb8[_0xc84d[512]]!== _0xc84d[554]&& _0x90f4xb8[_0xc84d[512]]!== _0xc84d[532]){_0x90f4xbe= util[_0xc84d[59]](_0xc84d[533],decodeURIComponent(_0x90f4xb8[_0xc84d[512]]))};if(toAddDate(_0x90f4xb8[_0xc84d[506]])){_0x90f4xbe+= util[_0xc84d[59]]((_0x90f4xb8[_0xc84d[512]]&& _0x90f4xb8[_0xc84d[512]]!== _0xc84d[532])?_0xc84d[534]:_0xc84d[535],moment()[_0xc84d[537]](_0xc84d[536])[_0xc84d[59]](_0xc84d[58]))};if(!_0x90f4xb9|| _0x90f4xb9!== _0xc84d[538]){if(_0x90f4xb9){_0x90f4xbe+= _0x90f4xbe?_0xc84d[539]+ _0x90f4xb9:_0xc84d[540]+ _0x90f4xb9};var _0x90f4xba=util[_0xc84d[59]](_0xc84d[555],_0x90f4xbd,_0x90f4xb8[_0xc84d[506]],_0x90f4xbe);logger[_0xc84d[73]](_0xc84d[541]);logger[_0xc84d[73]](_0x90f4xba);logger[_0xc84d[73]](_0xc84d[542]);return _0x90f4xba}else {logger[_0xc84d[27]](_0xc84d[543]);logger[_0xc84d[27]](_0xc84d[544]);logger[_0xc84d[27]](_0xc84d[542]);return []}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[546],_0x90f4x19[_0xc84d[26]])})}function getWidgetQuery(_0x90f4xb8,_0x90f4x5d){switch(_0x90f4xb8[_0xc84d[192]]){case _0xc84d[508]:return getCounterWidgetQuery(_0x90f4xb8[_0xc84d[510]],_0x90f4x5d);case _0xc84d[507]:return getPieChartWidgetQuery(_0x90f4xb8[_0xc84d[510]],_0x90f4x5d);default:return Promise[_0xc84d[289]]()[_0xc84d[32]](function(){return null})}}function getCustomDashboardValues(_0x90f4xc1,_0x90f4x5d){var _0x90f4xc2={};var _0x90f4xc3=[],_0x90f4xc4=[],_0x90f4xba;return models[_0xc84d[567]][_0xc84d[310]](_0x90f4xc1)[_0xc84d[32]](function(_0x90f4xc5){if(!_0x90f4xc5){logger[_0xc84d[27]](_0xc84d[559],_0x90f4xc1,_0xc84d[560]);return};var _0x90f4xb2=getWidgets(_0x90f4xc5[_0xc84d[561]]);if(_0x90f4xb2){_[_0xc84d[31]](_0x90f4xb2,function(_0x90f4xb8){_0x90f4xc3[_0xc84d[262]](getWidgetQuery(_0x90f4xb8,_0x90f4x5d)[_0xc84d[32]](function(_0x90f4xba){_0x90f4xc4[_0xc84d[262]](Promise[_0xc84d[289]]()[_0xc84d[32]](function(){if(_0x90f4xba){return models[_0xc84d[565]][_0xc84d[566]](_0x90f4xba,{type:models[_0xc84d[565]][_0xc84d[564]][_0xc84d[563]]})}else {return []}})[_0xc84d[32]](function(_0x90f4x58){_0x90f4xc2[_0x90f4xb8[_0xc84d[253]]]= _0x90f4x58})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[562],_0x90f4xb8[_0xc84d[253]],_0x90f4x19);_0x90f4xc2[_0x90f4xb8[_0xc84d[253]]]= []}))}))});return _0x90f4xc3};return []})[_0xc84d[277]]()[_0xc84d[32]](function(){return _0x90f4xc4})[_0xc84d[277]]()[_0xc84d[32]](function(){if(!_[_0xc84d[557]](_0x90f4xc2)){return events[_0xc84d[558]](_0x90f4xc2,_0x90f4x5d)}})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[556],_0x90f4xc1,_0x90f4x19)})}process[_0xc84d[74]](_0xc84d[281],function(_0x90f4xc6){switch(_0x90f4xc6[_0xc84d[281]]){case _0xc84d[568]:;case _0xc84d[569]:;case _0xc84d[571]:networkRewrite(_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[573]:return BPromise[_0xc84d[289]]()[_0xc84d[32]](rewriteContexts(_0x90f4xc6[_0xc84d[570]],false))[_0xc84d[32]](createHangup(_0x90f4xc6[_0xc84d[570]]))[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[572],_0x90f4x19)});case _0xc84d[575]:return BPromise[_0xc84d[289]]()[_0xc84d[32]](rewriteContexts(_0x90f4xc6[_0xc84d[570]],true))[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[574],_0x90f4x19)});case _0xc84d[576]:addToCollection(faxaccounts,_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[577]:updateCollection(faxaccounts,_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[578]:removeFromCollection(faxaccounts,_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[579]:trunksRewrite();break;case _0xc84d[580]:rtpRewrite(_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[581]:;case _0xc84d[582]:sendFax(_0x90f4xc6[_0xc84d[570]],0,_0x90f4xc6[_0xc84d[48]]);break;case _0xc84d[583]:var _0x90f4xa6=_[_0xc84d[495]](faxaccounts,{id:_0x90f4xc6[_0xc84d[570]][_0xc84d[494]]});if(_0x90f4xa6){webhook(_0x90f4xc6[_0xc84d[570]],_0x90f4xa6,_0x90f4xc6[_0xc84d[41]])};break;case _0xc84d[585]:return amiAction({action:_0xc84d[338],command:_0x90f4xc6[_0xc84d[587]]})[_0xc84d[32]](function(_0x90f4x6a){return events[_0xc84d[585]]({type:_0xc84d[586],data:_0x90f4x6a,socket:_0x90f4xc6[_0xc84d[584]]})})[_0xc84d[28]](function(_0x90f4x19){events[_0xc84d[585]]({type:_0xc84d[27],data:_0x90f4x19,socket:_0x90f4xc6[_0xc84d[584]]})});case _0xc84d[592]:return amiAction(_0x90f4xc6[_0xc84d[41]])[_0xc84d[32]](function(_0x90f4x6a){events[_0xc84d[272]](_0x90f4xc6[_0xc84d[291]],_0x90f4xc6[_0xc84d[271]],_0x90f4xc6[_0xc84d[41]][_0xc84d[589]]);logger[_0xc84d[438]](util[_0xc84d[59]](_0xc84d[590],_0x90f4xc6[_0xc84d[291]],_0x90f4xc6[_0xc84d[41]][_0xc84d[589]]?_0xc84d[589]:_0xc84d[591]))})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](util[_0xc84d[59]](_0xc84d[588],_0x90f4xc6[_0xc84d[291]],_0x90f4xc6[_0xc84d[41]][_0xc84d[589]]?_0xc84d[312]:_0xc84d[313]),_0x90f4x19)});case _0xc84d[594]:var _0x90f4x90=_[_0xc84d[495]](faxaccounts,{id:parseInt(_0x90f4xc6[_0xc84d[570]][_0xc84d[593]])});if(_0x90f4x90){webhook(_0x90f4xc6[_0xc84d[570]],_0x90f4x90,_0x90f4xc6[_0xc84d[41]])};break;case _0xc84d[595]:return onSave(_0x90f4xc6[_0xc84d[570]],_0x90f4xc6[_0xc84d[48]]);case _0xc84d[596]:return events[_0xc84d[596]](_0x90f4xc6[_0xc84d[294]]);case _0xc84d[597]:;case _0xc84d[598]:;case _0xc84d[599]:;case _0xc84d[600]:;case _0xc84d[601]:;case _0xc84d[602]:;case _0xc84d[603]:;case _0xc84d[604]:;case _0xc84d[605]:;case _0xc84d[606]:;case _0xc84d[607]:;case _0xc84d[609]:return events[_0xc84d[608]](_0x90f4xc6);case _0xc84d[611]:return BPromise[_0xc84d[289]]()[_0xc84d[32]](function(){return amiUtil[_0xc84d[611]](amiAction,_0x90f4xc6[_0xc84d[570]])})[_0xc84d[28]](function(_0x90f4x19){logger[_0xc84d[27]](_0xc84d[610],_0x90f4x19)});case _0xc84d[612]:;case _0xc84d[613]:;case _0xc84d[614]:;case _0xc84d[615]:;case _0xc84d[616]:;case _0xc84d[617]:;case _0xc84d[618]:;case _0xc84d[619]:;case _0xc84d[620]:;case _0xc84d[622]:return events[_0xc84d[621]](_0x90f4xc6);case _0xc84d[627]:switch(_0x90f4xc6[_0xc84d[506]]){case _0xc84d[624]:return events[_0xc84d[623]]();case _0xc84d[626]:return events[_0xc84d[625]]();default:};break;case _0xc84d[628]:newexten(_0x90f4xc6[_0xc84d[52]],true);break;case _0xc84d[629]:addToCollection(voiceQueues,_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[630]:updateCollection(voiceQueues,_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[631]:removeFromCollection(voiceQueues,_0x90f4xc6[_0xc84d[570]]);break;case _0xc84d[632]:getCustomDashboardValues(_0x90f4xc6[_0xc84d[253]],_0x90f4xc6[_0xc84d[480]]);break;default:}})
\ No newline at end of file
+var _0xcf2c=["\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","\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","\x72\x65\x70\x6F\x72\x74\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"];_0xcf2c[0];var _=require(_0xcf2c[1]);var BPromise=require(_0xcf2c[2]);var util=require(_0xcf2c[3]);var moment=require(_0xcf2c[4]);var fs=require(_0xcf2c[5]);var path=require(_0xcf2c[6]);var Util=require(_0xcf2c[7]);var amiUtil=require(_0xcf2c[8]);var exec=require(_0xcf2c[10])[_0xcf2c[9]];var fse=require(_0xcf2c[11]);var kue=require(_0xcf2c[12]);var reportBuildUtils=require(_0xcf2c[13]);var logger=require(_0xcf2c[15])(_0xcf2c[14]);var faxLogger=require(_0xcf2c[15])(_0xcf2c[16]);var config=require(_0xcf2c[17]);var events=require(_0xcf2c[18]);var models=require(_0xcf2c[19]);var channels=[_0xcf2c[20],_0xcf2c[21],_0xcf2c[22],_0xcf2c[16],_0xcf2c[23],_0xcf2c[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0xcf2c[34]][_0xcf2c[33]]({where:{active:true},attributes:[_0xcf2c[29],_0xcf2c[30]],raw:true})[_0xcf2c[32]](function(_0xcc36x1a){_[_0xcf2c[31]](_0xcc36x1a,function(_0xcc36x1b){activeTrunks[_0xcc36x1b[_0xcf2c[29]]]= _0xcc36x1b[_0xcf2c[30]]})})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[25],_0xcc36x19[_0xcf2c[26]])});var ami= new require(_0xcf2c[40])(config[_0xcf2c[36]][_0xcf2c[35]],config[_0xcf2c[36]][_0xcf2c[37]],config[_0xcf2c[36]][_0xcf2c[38]],config[_0xcf2c[36]][_0xcf2c[39]],true);var amiAction=BPromise[_0xcf2c[42]](ami[_0xcf2c[41]]);var kueConfig={prefix:_0xcf2c[43],jobEvents:false,redis:{port:6379,host:config[_0xcf2c[44]]}};if(config[_0xcf2c[45]]){kueConfig[_0xcf2c[47]][_0xcf2c[46]]= _0xcf2c[39];kueConfig[_0xcf2c[47]][_0xcf2c[48]]= {password:config[_0xcf2c[45]]}};var q=kue[_0xcf2c[49]](kueConfig);q[_0xcf2c[56]](_0xcf2c[50],function(_0xcc36x20,_0xcc36x21){try{events[_0xcc36x20[_0xcf2c[53]][_0xcf2c[29]]](_0xcc36x20[_0xcf2c[53]][_0xcf2c[52]],_0xcc36x20[_0xcf2c[53]][_0xcf2c[54]]?amiAction:undefined)[_0xcf2c[51]](function(){_0xcc36x21()})}catch(e){logger[_0xcf2c[27]](_0xcf2c[55],_0xcc36x20[_0xcf2c[53]][_0xcf2c[29]],e)}});function addToQueue(_0xcc36x23,_0xcc36x24,_0xcc36x25){_0xcc36x24[_0xcf2c[57]]= moment()[_0xcf2c[59]](_0xcf2c[58]);q[_0xcf2c[63]](_0xcf2c[50],{name:_0xcc36x23,evt:_0xcc36x24,needAmi:_0xcc36x25})[_0xcf2c[62]](true)[_0xcf2c[61]](function(_0xcc36x19){if(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[60],_0xcc36x19)}else {}})}models[_0xcf2c[65]][_0xcf2c[33]]({raw:true})[_0xcf2c[32]](function(_0xcc36x26){voiceQueues= _0xcc36x26})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[64],_0xcc36x19)});ami[_0xcf2c[66]]();setInterval(function(){if(global[_0xcf2c[67]]){global[_0xcf2c[67]]()}else {logger[_0xcf2c[70]](_0xcf2c[68]+ _0xcf2c[69])}},20000);process[_0xcf2c[74]](_0xcf2c[71],function(_0xcc36x27){logger[_0xcf2c[73]](_0xcf2c[72],_0xcc36x27)});ami[_0xcf2c[74]](_0xcf2c[75],events[_0xcf2c[75]]);ami[_0xcf2c[74]](_0xcf2c[76],events[_0xcf2c[76]]);ami[_0xcf2c[74]](_0xcf2c[77],events[_0xcf2c[77]]);ami[_0xcf2c[74]](_0xcf2c[27],events[_0xcf2c[27]]);ami[_0xcf2c[74]](_0xcf2c[78],function(_0xcc36x24){try{addToQueue(_0xcf2c[79],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[80],err)}});ami[_0xcf2c[74]](_0xcf2c[81],function(_0xcc36x24){try{addToQueue(_0xcf2c[81],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[82],err)}});ami[_0xcf2c[74]](_0xcf2c[83],function(_0xcc36x24){try{addToQueue(_0xcf2c[83],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[84],err)}});ami[_0xcf2c[74]](_0xcf2c[85],function(_0xcc36x24){try{addToQueue(_0xcf2c[85],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[86],err)}});ami[_0xcf2c[74]](_0xcf2c[87],function(_0xcc36x24){try{if(extraVars[_0xcc36x24[_0xcf2c[88]]]){_0xcc36x24[_0xcf2c[89]]= extraVars[_0xcc36x24[_0xcf2c[88]]]};addToQueue(_0xcf2c[87],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[90],err)}});ami[_0xcf2c[74]](_0xcf2c[91],function(_0xcc36x24){try{if(extraVars[_0xcc36x24[_0xcf2c[88]]]){_0xcc36x24[_0xcf2c[89]]= extraVars[_0xcc36x24[_0xcf2c[88]]]};if(bill[_0xcc36x24[_0xcf2c[88]]]&& bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[88]]!== _0xcc36x24[_0xcf2c[88]]){if(!bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[92]]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[92]]= true}else {delete bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]];_0xcc36x24[_0xcf2c[88]]= bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[88]]}};addToQueue(_0xcf2c[91],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[94],err)}});ami[_0xcf2c[74]](_0xcf2c[95],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[96]]]&& (bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[97]]=== _0xcf2c[98]|| bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[99]]=== _0xcf2c[98])&& bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[100]]){_0xcc36x24[_0xcf2c[98]]= bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[103]][_0xcf2c[102]](_0xcf2c[101])[0];_0xcc36x24[_0xcf2c[104]]= bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[100]][_0xcf2c[102]](/\/|-/)[1];addToQueue(_0xcf2c[95],_0xcc36x24,true)}}catch(err){logger[_0xcf2c[27]](_0xcf2c[105],err)}});ami[_0xcf2c[74]](_0xcf2c[106],function(_0xcc36x24){try{if(videoOnUrls[_0xcc36x24[_0xcf2c[88]]]){logger[_0xcf2c[73]](_0xcf2c[107],_0xcc36x24[_0xcf2c[88]],_0xcf2c[108]);_0xcc36x24[_0xcf2c[109]]= videoOnUrls[_0xcc36x24[_0xcf2c[88]]];events[_0xcf2c[110]](_0xcc36x24)};if(extraVars[_0xcc36x24[_0xcf2c[88]]]){_0xcc36x24[_0xcf2c[89]]= extraVars[_0xcc36x24[_0xcf2c[88]]]};addToQueue(_0xcf2c[106],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[111],err)}});ami[_0xcf2c[74]](_0xcf2c[112],events[_0xcf2c[112]]);ami[_0xcf2c[74]](_0xcf2c[113],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[88]]]){var _0xcc36x28=_0xcc36x24[_0xcf2c[114]][_0xcf2c[102]](/\/|-/)[1];if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[115]][_0xcc36x28]){_0xcc36x24[_0xcf2c[116]]= _0xcf2c[117];delete bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[115]][_0xcc36x28]}else {_0xcc36x24[_0xcf2c[116]]= _0xcf2c[113]}};addToQueue(_0xcf2c[113],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[118],err)}});ami[_0xcf2c[74]](_0xcf2c[119],function(_0xcc36x24){try{addToQueue(_0xcf2c[119],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[120],err)}});ami[_0xcf2c[74]](_0xcf2c[121],function(_0xcc36x24){try{addToQueue(_0xcf2c[121],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[122],err)}});ami[_0xcf2c[74]](_0xcf2c[123],function(_0xcc36x24){try{addToQueue(_0xcf2c[123],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[124],err)}});ami[_0xcf2c[74]](_0xcf2c[125],function(_0xcc36x24){try{addToQueue(_0xcf2c[125],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[126],err)}});ami[_0xcf2c[74]](_0xcf2c[127],function(_0xcc36x24){try{addToQueue(_0xcf2c[127],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[128],err)}});ami[_0xcf2c[74]](_0xcf2c[129],function(_0xcc36x24){try{addToQueue(_0xcf2c[129],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[130],err)}});ami[_0xcf2c[74]](_0xcf2c[131],function(_0xcc36x24){try{addToQueue(_0xcf2c[131],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[132],err)}});ami[_0xcf2c[74]](_0xcf2c[133],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[88]]]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[98]]= _0xcc36x24[_0xcf2c[98]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]]= true};addToQueue(_0xcf2c[133],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[134],err)}});ami[_0xcf2c[74]](_0xcf2c[135],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[88]]]){_0xcc36x24[_0xcf2c[88]]= bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[88]]};addToQueue(_0xcf2c[135],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[136],err)}});ami[_0xcf2c[74]](_0xcf2c[137],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[138]]]){bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[139]]= _0xcf2c[137];bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[140]]= true;bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[141]]= _0xcf2c[142];bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[143]]= _0xcc36x24[_0xcf2c[144]];bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[145]]= _0xcc36x24[_0xcf2c[146]];ami[_0xcf2c[148]](_0xcf2c[131],_[_0xcf2c[147]](bill[_0xcc36x24[_0xcf2c[138]]]));bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[115]]= {};delete bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[139]];bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[149]]= true;_0xcc36x24[_0xcf2c[98]]= bill[_0xcc36x24[_0xcf2c[138]]][_0xcf2c[98]]|| null};_0xcc36x24[_0xcf2c[104]]= _0xcc36x24[_0xcf2c[150]][_0xcf2c[102]](/\/|-/)[1];addToQueue(_0xcf2c[137],_0xcc36x24,true)}catch(err){logger[_0xcf2c[27]](_0xcf2c[151],err)}});ami[_0xcf2c[74]](_0xcf2c[152],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[153]]]){bill[_0xcc36x24[_0xcf2c[153]]][_0xcf2c[139]]= _0xcf2c[152];bill[_0xcc36x24[_0xcf2c[153]]][_0xcf2c[88]]= _0xcc36x24[_0xcf2c[144]];bill[_0xcc36x24[_0xcf2c[144]]]&& (bill[_0xcc36x24[_0xcf2c[144]]][_0xcf2c[88]]= _0xcc36x24[_0xcf2c[153]]);ami[_0xcf2c[148]](_0xcf2c[131],_[_0xcf2c[147]](bill[_0xcc36x24[_0xcf2c[153]]]));delete bill[_0xcc36x24[_0xcf2c[153]]][_0xcf2c[93]];delete bill[_0xcc36x24[_0xcf2c[153]]][_0xcf2c[139]];_0xcc36x24[_0xcf2c[98]]= bill[_0xcc36x24[_0xcf2c[153]]][_0xcf2c[98]]|| null};_0xcc36x24[_0xcf2c[104]]= _0xcc36x24[_0xcf2c[154]][_0xcf2c[102]](/\/|-/)[1];addToQueue(_0xcf2c[152],_0xcc36x24,true)}catch(err){logger[_0xcf2c[27]](_0xcf2c[155],err)}});ami[_0xcf2c[74]](_0xcf2c[156],function(_0xcc36x24){try{addToQueue(_0xcf2c[156],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[157],err)}});ami[_0xcf2c[74]](_0xcf2c[115],function(_0xcc36x24){try{if(bill[_0xcc36x24[_0xcf2c[88]]]){var _0xcc36x28=_0xcc36x24[_0xcf2c[114]][_0xcf2c[102]](/\/|-/)[1];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[115]][_0xcc36x28]= bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[115]][_0xcc36x28]?false:true};addToQueue(_0xcf2c[115],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[158],err)}});ami[_0xcf2c[74]](_0xcf2c[159],function(_0xcc36x24){try{addToQueue(_0xcf2c[159],_0xcc36x24)}catch(err){faxLogger[_0xcf2c[27]](_0xcf2c[160],err)}});ami[_0xcf2c[74]](_0xcf2c[161],function(_0xcc36x24){try{addToQueue(_0xcf2c[161],_0xcc36x24)}catch(err){faxLogger[_0xcf2c[27]](_0xcf2c[162],err)}});ami[_0xcf2c[74]](_0xcf2c[163],function(_0xcc36x24){try{addToQueue(_0xcf2c[163],_0xcc36x24)}catch(err){faxLogger[_0xcf2c[27]](_0xcf2c[164],err)}});amiAction({action:_0xcf2c[165]});var applications=[_0xcf2c[166],_0xcf2c[98],_0xcf2c[167],_0xcf2c[168],_0xcf2c[169]];var dispositions=[_0xcf2c[170],_0xcf2c[171],_0xcf2c[171],_0xcf2c[170],_0xcf2c[170],_0xcf2c[170],_0xcf2c[172],_0xcf2c[173],_0xcf2c[171],_0xcf2c[171],_0xcf2c[171]];function newchannel(_0xcc36x24){if(!bill[_0xcc36x24[_0xcf2c[88]]]&&  !bill[_0xcc36x24[_0xcf2c[96]]]){bill[_0xcc36x24[_0xcf2c[88]]]= {uniqueid:_0xcc36x24[_0xcf2c[88]],linkedid:_0xcc36x24[_0xcf2c[96]],type:_0xcf2c[174],tag:_0xcf2c[175],accountcode:_0xcc36x24[_0xcf2c[176]],source:_0xcc36x24[_0xcf2c[177]],destination:_0xcc36x24[_0xcf2c[178]],destinationcontext:_0xcc36x24[_0xcf2c[179]],callerid:util[_0xcf2c[59]](_0xcf2c[180],_0xcc36x24[_0xcf2c[181]],_0xcc36x24[_0xcf2c[177]]),channel:_0xcc36x24[_0xcf2c[182]],destinationchannel:_0xcf2c[183],lastapplication:_0xcf2c[183],lastdata:_0xcf2c[183],starttime:moment()[_0xcf2c[59]](_0xcf2c[58]),answertime:_0xcf2c[183],endtime:_0xcf2c[183],duration:0,billableseconds:0,disposition:dispositions[_[_0xcf2c[185]](_0xcc36x24[_0xcf2c[184]])],amaflags:_0xcf2c[186],unmanaged:false,calleridnum:_0xcc36x24[_0xcf2c[177]],calleridname:_0xcc36x24[_0xcf2c[181]],dialend:{}}}}function newstate(_0xcc36x24){if(bill[_0xcc36x24[_0xcf2c[96]]]&& _0xcc36x24[_0xcf2c[88]]!== _0xcc36x24[_0xcf2c[96]]&& _0xcc36x24[_0xcf2c[184]]=== _0xcf2c[187]){bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[188]]= moment()[_0xcf2c[59]](_0xcf2c[58]);delete bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[93]];bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[189]]= dispositions[_[_0xcf2c[185]](_0xcc36x24[_0xcf2c[184]])];if(_[_0xcf2c[193]]([_0xcf2c[190],_0xcf2c[191]],bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[192]])){bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[176]]= _0xcc36x24[_0xcf2c[176]]};if(!_[_0xcf2c[193]]([_0xcf2c[194],_0xcf2c[191]],bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[192]])){bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[195]]= _0xcc36x24[_0xcf2c[196]];bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[197]]= util[_0xcf2c[59]](_0xcf2c[180],_0xcc36x24[_0xcf2c[198]],_0xcc36x24[_0xcf2c[196]])};bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[96]]= _0xcc36x24[_0xcf2c[88]];bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[100]]= _0xcc36x24[_0xcf2c[182]];bill[_0xcc36x24[_0xcf2c[96]]][_0xcf2c[199]]= false}}function newexten(_0xcc36x24,_0xcc36x2e){if(bill[_0xcc36x24[_0xcf2c[88]]]){_0xcc36x24[_0xcf2c[200]]= _0xcc36x24[_0xcf2c[200]][_0xcf2c[201]]();if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[97]]=== _0xcf2c[98]|| bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[99]]=== _0xcf2c[98]){if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]]&&  !bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[149]]){if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[202]]){ami[_0xcf2c[148]](_0xcf2c[203],_[_0xcf2c[147]](bill[_0xcc36x24[_0xcf2c[88]]]))}else {if(!bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]= true;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[139]]= _0xcf2c[204]};ami[_0xcf2c[148]](_0xcf2c[205],_[_0xcf2c[147]](bill[_0xcc36x24[_0xcf2c[88]]]))}};bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[99]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[202]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[139]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[206]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[207]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[208]]= null};delete bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]];if(!_0xcc36x2e){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[97]]= _0xcc36x24[_0xcf2c[200]];if(_[_0xcf2c[193]](applications,_0xcc36x24[_0xcf2c[200]])){if(_0xcc36x24[_0xcf2c[200]]=== _0xcf2c[166]){var _0xcc36x2f=_0xcc36x24[_0xcf2c[209]][_0xcf2c[201]]();if(_[_0xcf2c[211]](_0xcc36x2f,_0xcf2c[210])){_0xcc36x2f= _0xcc36x2f[_0xcf2c[102]](_0xcf2c[212]);var _0xcc36x30=_0xcc36x2f[0][_0xcf2c[213]](/cdr\((.*)\)/);if(_0xcc36x30){bill[_0xcc36x24[_0xcf2c[88]]][_0xcc36x30[1]]= _0xcc36x2f[1];if(_0xcc36x30[1]=== _0xcf2c[192]&& _0xcc36x2f[1]=== _0xcf2c[191]){var _0xcc36x31=bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[182]][_0xcf2c[102]](/\/|-/)[1];activeTrunks[_0xcc36x31]&& (bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[195]]= activeTrunks[_0xcc36x31])}}}else {if(_[_0xcf2c[211]](_0xcc36x2f,_0xcf2c[214])){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[177]]= _0xcc36x2f[_0xcf2c[102]](_0xcf2c[212])[1];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[197]]= util[_0xcf2c[59]](_0xcf2c[180],bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[181]],bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[177]]);bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[192]]=== _0xcf2c[191]&& (bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[215]]= bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[177]])}else {if(_[_0xcf2c[211]](_0xcc36x2f,_0xcf2c[216])){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[181]]= _0xcc36x2f[_0xcf2c[102]](_0xcf2c[212])[1];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[197]]= util[_0xcf2c[59]](_0xcf2c[180],bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[181]],bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[177]])}}}};bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[217]]= _0xcc36x24[_0xcf2c[200]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[103]]= _0xcc36x24[_0xcf2c[209]]};if(_0xcc36x24[_0xcf2c[200]]=== _0xcf2c[98]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[98]]= _0xcc36x24[_0xcf2c[209]][_0xcf2c[102]](_0xcf2c[101])[0];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]]= true}}else {bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[99]]= _0xcc36x24[_0xcf2c[200]][_0xcf2c[201]]();if(_0xcc36x24[_0xcf2c[200]]=== _0xcf2c[98]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[98]]= _0xcc36x24[_0xcf2c[98]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]]= true}}}}function varset(_0xcc36x24){if(_0xcc36x24[_0xcf2c[220]][_0xcf2c[219]](_0xcf2c[218])){logger[_0xcf2c[73]](_0xcf2c[221],_0xcc36x24[_0xcf2c[88]],_0xcc36x24[_0xcf2c[222]]);videoOnUrls[_0xcc36x24[_0xcf2c[88]]]= _0xcc36x24[_0xcf2c[222]][_0xcf2c[223]](/\\/g,_0xcf2c[183])}else {if(_0xcc36x24[_0xcf2c[220]][_0xcf2c[219]](_0xcf2c[89])){extraVars[_0xcc36x24[_0xcf2c[88]]]= _0xcc36x24[_0xcf2c[222]]}};if(bill[_0xcc36x24[_0xcf2c[88]]]){if(_0xcc36x24[_0xcf2c[220]][_0xcf2c[219]](_0xcf2c[224])){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]= true;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[202]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[149]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[139]]= _0xcc36x24[_0xcf2c[222]][_0xcf2c[201]]();if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[139]]=== _0xcf2c[225]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[63]]= true;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[179]]= _0xcc36x24[_0xcf2c[179]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[178]]= _0xcc36x24[_0xcf2c[178]];ami[_0xcf2c[148]](_0xcf2c[205],_[_0xcf2c[147]](bill[_0xcc36x24[_0xcf2c[88]]]));delete bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[63]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[202]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[139]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[206]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[207]]= null;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[208]]= null}}}}function queuecallerabandon(_0xcc36x24){if(bill[_0xcc36x24[_0xcf2c[88]]]&&  !bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[202]]= true;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[149]]= false;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[206]]= _0xcc36x24[_0xcf2c[206]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[207]]= _0xcc36x24[_0xcf2c[207]];bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[208]]= _0xcc36x24[_0xcf2c[208]]}}function hangup(_0xcc36x24){if(bill[_0xcc36x24[_0xcf2c[88]]]){var _0xcc36x35=moment();bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[226]]= _0xcc36x35[_0xcf2c[59]](_0xcf2c[58]);bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[227]]= _0xcc36x35[_0xcf2c[230]](bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[228]],_0xcf2c[229]);if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[188]]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[231]]= _0xcc36x35[_0xcf2c[230]](bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[188]],_0xcf2c[229])};ami[_0xcf2c[148]](_0xcf2c[78],bill[_0xcc36x24[_0xcf2c[88]]]);if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[93]]|| (bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[149]]&&  !bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[188]])){if(bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[202]]){ami[_0xcf2c[148]](_0xcf2c[203],bill[_0xcc36x24[_0xcf2c[88]]])}else {if(!bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]){bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[199]]= true;bill[_0xcc36x24[_0xcf2c[88]]][_0xcf2c[139]]= _0xcf2c[204]};ami[_0xcf2c[148]](_0xcf2c[205],bill[_0xcc36x24[_0xcf2c[88]]])}};delete bill[_0xcc36x24[_0xcf2c[88]]]}}ami[_0xcf2c[74]](_0xcf2c[205],function(_0xcc36x24){try{addToQueue(_0xcf2c[232],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[233],err)}});ami[_0xcf2c[74]](_0xcf2c[203],function(_0xcc36x24){try{addToQueue(_0xcf2c[234],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[235],err)}});ami[_0xcf2c[74]](_0xcf2c[236],function(_0xcc36x24){try{newchannel(_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[237],err)}});ami[_0xcf2c[74]](_0xcf2c[238],function(_0xcc36x24){try{newstate(_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[239],err)}});ami[_0xcf2c[74]](_0xcf2c[240],function(_0xcc36x24){try{newexten(_0xcc36x24,false)}catch(err){logger[_0xcf2c[27]](_0xcf2c[241],err)}});ami[_0xcf2c[74]](_0xcf2c[242],function(_0xcc36x24){try{varset(_0xcc36x24);addToQueue(_0xcf2c[242],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[243],err)}});ami[_0xcf2c[74]](_0xcf2c[234],function(_0xcc36x24){try{queuecallerabandon(_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[244],err)}});ami[_0xcf2c[74]](_0xcf2c[245],function(_0xcc36x24){try{delete videoOnUrls[_0xcc36x24[_0xcf2c[88]]];delete extraVars[_0xcc36x24[_0xcf2c[88]]];hangup(_0xcc36x24);addToQueue(_0xcf2c[245],_0xcc36x24)}catch(err){logger[_0xcf2c[27]](_0xcf2c[246],err)}});function handlePause(_0xcc36x37,_0xcc36x38){return function(_0xcc36x39){var _0xcc36x3a=_0xcc36x39[_0xcf2c[247]];var _0xcc36x3b=false;var _0xcc36x3c,_0xcc36x3d;_0xcc36x3c= _0xcc36x3d= _0xcc36x37[_0xcf2c[248]][_0xcf2c[192]]|| _0xcc36x38[_0xcf2c[249]]|| _0xcc36x38[_0xcf2c[250]];if(_[_0xcf2c[211]](_0xcc36x3d,_0xcf2c[251])){_0xcc36x3d= _0xcc36x3d[_0xcf2c[252]](1);_0xcc36x3b= true};var _0xcc36x3e={id:_0xcc36x39[_0xcf2c[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0xcc36x3c,lastPauseAt:moment()[_0xcf2c[59]](_0xcf2c[58])};return _0xcc36x39[_0xcf2c[269]](_0xcc36x3e)[_0xcf2c[32]](function(_0xcc36x44){if(_0xcc36x44){return events[_0xcf2c[268]](_[_0xcf2c[267]]({newValues:_0xcc36x3e},_0xcc36x44[_0xcf2c[266]]))}})[_0xcf2c[32]](function(){var _0xcc36x43=moment()[_0xcf2c[59]](_0xcf2c[58]);return models[_0xcf2c[264]][_0xcf2c[265]]({duration:moment(_0xcc36x43)[_0xcf2c[230]](moment(_0xcc36x3a),_0xcf2c[229]),exitAt:_0xcc36x43},{where:{membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[258],exitAt:null}})})[_0xcf2c[32]](function(){var _0xcc36x3f=(_0xcc36x3e[_0xcf2c[254]]&&  !_0xcc36x3b)?channels:_[_0xcf2c[255]](channels,function(_0xcc36x40){return _0xcc36x40!== _0xcf2c[20]});var _0xcc36x41=[];_0xcc36x3f[_0xcf2c[31]](function(_0xcc36x42){_0xcc36x41[_0xcf2c[262]]({channel:_0xcc36x42,membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[258],enterAt:moment()[_0xcf2c[59]](_0xcf2c[58]),data1:_0xcc36x3d,data2:_0xcc36x38[_0xcf2c[259]],data4:_0xcc36x3d,role:_0xcc36x39[_0xcf2c[260]],internal:_0xcc36x39[_0xcf2c[174]],uniqueid:_0xcc36x38[_0xcf2c[261]]})});return models[_0xcf2c[264]][_0xcf2c[263]](_0xcc36x41,{raw:true,individualHooks:true})})}}function handleUnpause(_0xcc36x37,_0xcc36x38){return function(_0xcc36x39){var _0xcc36x3e;if(!_0xcc36x37[_0xcf2c[248]]){_0xcc36x37[_0xcf2c[248]]= {}};if(_0xcc36x37[_0xcf2c[248]][_0xcf2c[192]]!== _0xcf2c[270]){events[_0xcf2c[272]](_0xcc36x39[_0xcf2c[29]],_0xcc36x39[_0xcf2c[271]],false)};switch(_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]]){case _0xcf2c[20]:_0xcc36x3e= {id:_0xcc36x39[_0xcf2c[253]],voicePause:false};return _0xcc36x39[_0xcf2c[269]](_0xcc36x3e)[_0xcf2c[32]](function(_0xcc36x44){return events[_0xcf2c[268]](_[_0xcf2c[267]]({newValues:_0xcc36x3e},_0xcc36x44[_0xcf2c[266]]))})[_0xcf2c[32]](function(){return models[_0xcf2c[264]][_0xcf2c[274]]({where:{channel:_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]],membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[258],exitAt:null}})})[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[273]}))[_0xcf2c[32]](function(_0xcc36x46){return _0xcc36x46[_0xcf2c[269]]({exitAt:moment()[_0xcf2c[59]](_0xcf2c[58])})})[_0xcf2c[32]](function(){return _0xcc36x39});case _0xcf2c[21]:;case _0xcf2c[22]:;case _0xcf2c[16]:;case _0xcf2c[23]:;case _0xcf2c[24]:var _0xcc36x47={};_0xcc36x47[util[_0xcf2c[59]](_0xcf2c[275],_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]],_0xcf2c[276])]= false;return _0xcc36x39[_0xcf2c[269]](_0xcc36x47)[_0xcf2c[32]](function(_0xcc36x39){_0xcc36x47[_0xcf2c[253]]= _0xcc36x39[_0xcf2c[253]];return events[_0xcf2c[268]](_[_0xcf2c[267]]({newValues:_0xcc36x47},_0xcc36x39[_0xcf2c[266]]))})[_0xcf2c[32]](function(){return models[_0xcf2c[264]][_0xcf2c[274]]({where:{channel:_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]],membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[258],exitAt:null}})})[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[273]}))[_0xcf2c[32]](function(_0xcc36x46){return _0xcc36x46[_0xcf2c[269]]({exitAt:moment()[_0xcf2c[59]](_0xcf2c[58])})})[_0xcf2c[32]](function(){return _0xcc36x39});default:_0xcc36x3e= {id:_0xcc36x39[_0xcf2c[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0xcc36x39[_0xcf2c[269]](_0xcc36x3e)[_0xcf2c[32]](function(_0xcc36x44){return events[_0xcf2c[268]](_[_0xcf2c[267]]({newValues:_0xcc36x3e},_0xcc36x39[_0xcf2c[266]]))})[_0xcf2c[32]](function(){return models[_0xcf2c[264]][_0xcf2c[33]]({where:{membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[258],exitAt:null}})})[_0xcf2c[32]](function(_0xcc36x48){var _0xcc36x49=[];_0xcc36x48[_0xcf2c[31]](function(_0xcc36x4a){_0xcc36x49[_0xcf2c[262]](_0xcc36x4a[_0xcf2c[269]]({exitAt:moment()[_0xcf2c[59]](_0xcf2c[58])}))});return BPromise[_0xcf2c[277]](_0xcc36x49)})[_0xcf2c[32]](function(){return _0xcc36x39})}}}function queueAddUpdate(_0xcc36x4c,_0xcc36x4d){return models[_0xcf2c[278]][_0xcf2c[274]]({where:{queue:_0xcc36x4c,membername:_0xcc36x4d}})[_0xcf2c[32]](function(_0xcc36x4e){if(_0xcc36x4e){return _0xcc36x4e[_0xcf2c[269]]({logged:true,loggedAt:moment()[_0xcf2c[59]](_0xcf2c[58])})}})}function handleLogin(_0xcc36x37,_0xcc36x38){return function(_0xcc36x39){return BPromise[_0xcf2c[288]]()[_0xcf2c[32]](function(){return events[_0xcf2c[268]](_[_0xcf2c[287]]({newValues:_0xcc36x39[_0xcf2c[266]]},_0xcc36x39[_0xcf2c[266]]))})[_0xcf2c[32]](function(){return _0xcc36x39[_0xcf2c[286]]()})[_0xcf2c[32]](function(voiceQueues){var _0xcc36x50=[];voiceQueues[_0xcf2c[31]](function(_0xcc36x51){_0xcc36x50[_0xcf2c[262]](amiAction({action:_0xcf2c[283],queue:_0xcc36x51[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),membername:_0xcc36x39[_0xcf2c[29]],penalty:_0xcc36x51[_0xcf2c[278]][_0xcf2c[284]],paused:_0xcc36x39[_0xcf2c[285]]})[_0xcf2c[28]](function(_0xcc36x19){if(_0xcc36x19[_0xcf2c[280]]=== _0xcf2c[281]){return queueAddUpdate(_0xcc36x51[_0xcf2c[29]],_0xcc36x39[_0xcf2c[29]])};logger[_0xcf2c[27]](_0xcf2c[282],_0xcc36x51[_0xcf2c[29]],_0xcc36x19)}))});return _0xcc36x50})[_0xcf2c[277]]()[_0xcf2c[32]](function(){return models[_0xcf2c[264]][_0xcf2c[33]]({where:{membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[279],exitAt:null}})})[_0xcf2c[32]](function(_0xcc36x48){var _0xcc36x49=[];_0xcc36x48[_0xcf2c[31]](function(_0xcc36x4a){_0xcc36x49[_0xcf2c[262]](_0xcc36x4a[_0xcf2c[269]]({exitAt:moment()[_0xcf2c[59]](_0xcf2c[58])}))});return BPromise[_0xcf2c[277]](_0xcc36x49)})[_0xcf2c[32]](function(){var _0xcc36x41=[];channels[_0xcf2c[31]](function(_0xcc36x42){_0xcc36x41[_0xcf2c[262]]({channel:_0xcc36x42,membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[279],enterAt:moment()[_0xcf2c[59]](_0xcf2c[58]),role:_0xcc36x39[_0xcf2c[260]],internal:_0xcc36x39[_0xcf2c[174]]})});return models[_0xcf2c[264]][_0xcf2c[263]](_0xcc36x41,{raw:true,individualHooks:true})})[_0xcf2c[32]](function(){return _0xcc36x39})}}function logoutAgent(_0xcc36x39){return BPromise[_0xcf2c[288]]()[_0xcf2c[32]](function(){return events[_0xcf2c[268]](_[_0xcf2c[287]]({newValues:{id:_0xcc36x39[_0xcf2c[253]],online:false}},_0xcc36x39[_0xcf2c[266]],{online:false}))})[_0xcf2c[32]](function(){return models[_0xcf2c[65]][_0xcf2c[33]]()})[_0xcf2c[32]](function(voiceQueues){var _0xcc36x50=[];voiceQueues[_0xcf2c[31]](function(_0xcc36x51){_0xcc36x50[_0xcf2c[262]](amiAction({action:_0xcf2c[289],queue:_0xcc36x51[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]])})[_0xcf2c[28]](function(_0xcc36x19){}))});return BPromise[_0xcf2c[277]](_0xcc36x50)})[_0xcf2c[32]](function(_0xcc36x53){return models[_0xcf2c[264]][_0xcf2c[33]]({where:{membername:_0xcc36x39[_0xcf2c[29]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),type:_0xcf2c[279],exitAt:null}})})[_0xcf2c[32]](function(_0xcc36x48){var _0xcc36x49=[];_0xcc36x48[_0xcf2c[31]](function(_0xcc36x4a){_0xcc36x49[_0xcf2c[262]](_0xcc36x4a[_0xcf2c[269]]({exitAt:moment()[_0xcf2c[59]](_0xcf2c[58])}))});return BPromise[_0xcf2c[277]](_0xcc36x49)})}function handleLogout(_0xcc36x37,_0xcc36x38){return function(_0xcc36x39){return BPromise[_0xcf2c[288]]()[_0xcf2c[32]](function(){if(_0xcc36x39[_0xcf2c[260]]=== _0xcf2c[290]){return logoutAgent(_0xcc36x39)}})[_0xcf2c[32]](function(){return _0xcc36x39[_0xcf2c[269]]({online:false})})}}function handleQueueAdd(_0xcc36x37,_0xcc36x38){return function(_0xcc36x39){var _0xcc36x56=[];switch(_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]]){case _0xcf2c[20]:_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x56[_0xcf2c[262]](models[_0xcf2c[278]][_0xcf2c[292]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],queue:_0xcc36x4c},defaults:{queue:_0xcc36x4c,location:util[_0xcf2c[59]](_0xcf2c[291],_0xcc36x39[_0xcf2c[29]]),membername:_0xcc36x39[_0xcf2c[29]],UserId:_0xcc36x39[_0xcf2c[253]],penalty:_0xcc36x38[_0xcf2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0xcf2c[277]](_0xcc36x56)[_0xcf2c[32]](function(){var _0xcc36x50=[];_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x50[_0xcf2c[262]](amiAction({action:_0xcf2c[283],queue:_0xcc36x4c,paused:_0xcc36x39[_0xcf2c[254]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]]),membername:_0xcc36x39[_0xcf2c[29]]})[_0xcf2c[28]](function(_0xcc36x19){if(_0xcc36x19[_0xcf2c[280]]=== _0xcf2c[281]){return queueAddUpdate(_0xcc36x4c,_0xcc36x39[_0xcf2c[29]])};logger[_0xcf2c[27]](_0xcf2c[294],_0xcc36x4c,_0xcc36x19)}))});return BPromise[_0xcf2c[277]](_0xcc36x50)});case _0xcf2c[21]:_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x56[_0xcf2c[262]](models[_0xcf2c[295]][_0xcf2c[292]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],ChatQueueId:_0xcc36x4c[_0xcf2c[253]]},defaults:{ChatQueueId:_0xcc36x4c[_0xcf2c[253]],queue:_0xcc36x4c[_0xcf2c[29]],UserId:_0xcc36x39[_0xcf2c[253]],penalty:_0xcc36x38[_0xcf2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0xcf2c[277]](_0xcc36x56);case _0xcf2c[22]:_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x56[_0xcf2c[262]](models[_0xcf2c[296]][_0xcf2c[292]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],MailQueueId:_0xcc36x4c[_0xcf2c[253]]},defaults:{MailQueueId:_0xcc36x4c[_0xcf2c[253]],queue:_0xcc36x4c[_0xcf2c[29]],UserId:_0xcc36x39[_0xcf2c[253]],penalty:_0xcc36x38[_0xcf2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0xcf2c[277]](_0xcc36x56);case _0xcf2c[23]:_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x56[_0xcf2c[262]](models[_0xcf2c[297]][_0xcf2c[292]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],SmsQueueId:_0xcc36x4c[_0xcf2c[253]]},defaults:{SmsQueueId:_0xcc36x4c[_0xcf2c[253]],queue:_0xcc36x4c[_0xcf2c[29]],UserId:_0xcc36x39[_0xcf2c[253]],penalty:_0xcc36x38[_0xcf2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0xcf2c[277]](_0xcc36x56);case _0xcf2c[24]:_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x56[_0xcf2c[262]](models[_0xcf2c[298]][_0xcf2c[292]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],OpenchannelQueueId:_0xcc36x4c[_0xcf2c[253]]},defaults:{OpenchannelQueueId:_0xcc36x4c[_0xcf2c[253]],queue:_0xcc36x4c[_0xcf2c[29]],UserId:_0xcc36x39[_0xcf2c[253]],penalty:_0xcc36x38[_0xcf2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0xcf2c[277]](_0xcc36x56);case _0xcf2c[16]:_0xcc36x37[_0xcf2c[248]][_0xcf2c[293]][_0xcf2c[31]](function(_0xcc36x4c){_0xcc36x56[_0xcf2c[262]](models[_0xcf2c[299]][_0xcf2c[292]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],FaxQueueId:_0xcc36x4c[_0xcf2c[253]]},defaults:{faxQueueId:_0xcc36x4c[_0xcf2c[253]],queue:_0xcc36x4c[_0xcf2c[29]],UserId:_0xcc36x39[_0xcf2c[253]],penalty:_0xcc36x38[_0xcf2c[259]]},individualHooks:true,raw:true}))});return BPromise[_0xcf2c[277]](_0xcc36x56);default:}}}function handleQueueRemove(_0xcc36x37,_0xcc36x38){return function(_0xcc36x39){switch(_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]]){case _0xcf2c[20]:return models[_0xcf2c[278]][_0xcf2c[301]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],queue:_0xcc36x37[_0xcf2c[248]][_0xcf2c[98]]},individualHooks:true,raw:true})[_0xcf2c[32]](function(){return amiAction({action:_0xcf2c[289],queue:_0xcc36x37[_0xcf2c[248]][_0xcf2c[98]],interface:util[_0xcf2c[59]](_0xcf2c[256],_0xcf2c[257],_0xcc36x39[_0xcf2c[29]])})})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[300],_0xcc36x19[_0xcf2c[26]])});case _0xcf2c[21]:return models[_0xcf2c[295]][_0xcf2c[274]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],ChatQueueId:_0xcc36x37[_0xcf2c[248]][_0xcf2c[303]]}})[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x58){return _0xcc36x58[_0xcf2c[301]]()}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[302],_0xcc36x19)});case _0xcf2c[22]:return models[_0xcf2c[296]][_0xcf2c[274]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],MailQueueId:_0xcc36x37[_0xcf2c[248]][_0xcf2c[303]]}})[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x58){return _0xcc36x58[_0xcf2c[301]]()}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[304],_0xcc36x19)});case _0xcf2c[23]:return models[_0xcf2c[297]][_0xcf2c[274]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],SmsQueueId:_0xcc36x37[_0xcf2c[248]][_0xcf2c[303]]}})[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x58){return _0xcc36x58[_0xcf2c[301]]()}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[305],_0xcc36x19)});case _0xcf2c[24]:return models[_0xcf2c[298]][_0xcf2c[274]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],OpenchannelQueueId:_0xcc36x37[_0xcf2c[248]][_0xcf2c[303]]}})[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x58){return _0xcc36x58[_0xcf2c[301]]()}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[306],_0xcc36x19)});case _0xcf2c[16]:return models[_0xcf2c[299]][_0xcf2c[274]]({where:{UserId:_0xcc36x39[_0xcf2c[253]],FaxQueueId:_0xcc36x37[_0xcf2c[248]][_0xcf2c[303]]}})[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x58){return _0xcc36x58[_0xcf2c[301]]()}})[_0xcf2c[28]](function(_0xcc36x19){faxLogger[_0xcf2c[27]](_0xcf2c[307],_0xcc36x19)});default:}}}function handleEntityNotFound(_0xcc36x5a){return function(_0xcc36x5b){if(!_0xcc36x5b){throw _0xcc36x5a};return _0xcc36x5b}}function onSave(_0xcc36x38,_0xcc36x37){switch(_0xcc36x38[_0xcf2c[29]]){case _0xcf2c[311]:return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x37[_0xcf2c[248]][_0xcf2c[290]])[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[308]}))[_0xcf2c[32]](handlePause(_0xcc36x37,_0xcc36x38));case _0xcf2c[312]:return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x37[_0xcf2c[248]][_0xcf2c[290]])[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[308]}))[_0xcf2c[32]](handleUnpause(_0xcc36x37,_0xcc36x38));case _0xcf2c[313]:return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x38[_0xcf2c[250]])[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[308]}))[_0xcf2c[32]](handleLogin(_0xcc36x37,_0xcc36x38))[_0xcf2c[32]](function(_0xcc36x5d){return _0xcc36x5d});case _0xcf2c[314]:return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x38[_0xcf2c[250]])[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[308]}))[_0xcf2c[32]](handleUnpause(_0xcc36x37,_0xcc36x38))[_0xcf2c[32]](handleLogout(_0xcc36x37,_0xcc36x38));case _0xcf2c[283]:return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x37[_0xcf2c[248]][_0xcf2c[290]])[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[308]}))[_0xcf2c[32]](handleQueueAdd(_0xcc36x37,_0xcc36x38))[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]]!== _0xcf2c[20]){return events[_0xcf2c[316]](_0xcc36x58,_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]])}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[315],_0xcc36x19[_0xcf2c[26]])});case _0xcf2c[289]:return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x37[_0xcf2c[248]][_0xcf2c[290]])[_0xcf2c[32]](handleEntityNotFound({message:_0xcf2c[308]}))[_0xcf2c[32]](handleQueueRemove(_0xcc36x37,_0xcc36x38))[_0xcf2c[32]](function(_0xcc36x58){if(_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]]!== _0xcf2c[20]){return events[_0xcf2c[318]](_0xcc36x58,_0xcc36x37[_0xcf2c[248]][_0xcf2c[182]])}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[317],_0xcc36x19[_0xcf2c[26]])});default:throw {message:_0xcf2c[319]}}}function clean(channels){removeInactiveCalls();_[_0xcf2c[31]](channels,function(_0xcc36x42){removeExpiredApplications(_0xcc36x42)})}function removeInactiveCalls(){logger[_0xcf2c[73]](_0xcf2c[320]);var _0xcc36x60=[],_0xcc36x61=[],_0xcc36x62=moment()[_0xcf2c[59]](_0xcf2c[58]);return amiAction({action:_0xcf2c[337],command:_0xcf2c[338]})[_0xcf2c[32]](function(_0xcc36x6a){var _0xcc36x6b;if(_0xcc36x6a&& _0xcc36x6a[_0xcf2c[331]]){var _0xcc36x58=_0xcc36x6a[_0xcf2c[331]][_0xcf2c[102]](_0xcf2c[332]);_[_0xcf2c[31]](_0xcc36x58,function(_0xcc36x40){if(_0xcc36x40){_0xcc36x6b= _0xcc36x40[_0xcf2c[102]](_0xcf2c[333]);_0xcc36x6b[_0xcf2c[334]]=== 14&& _0xcc36x61[_0xcf2c[262]](_0xcc36x6b[_0xcf2c[335]]())}})};return models[_0xcf2c[336]][_0xcf2c[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0xcf2c[32]](function(_0xcc36x69){_[_0xcf2c[31]](_0xcc36x69,function(_0xcc36x66){if(!_[_0xcf2c[193]](_0xcc36x61,_0xcc36x66[_0xcf2c[88]])){_0xcc36x60[_0xcf2c[262]](_0xcc36x66[_0xcf2c[269]]({queuecallerleaveAt:_0xcc36x62,queuecallerexitAt:_0xcc36x62,queuecallerexit:true,queuecallerexitreason:_0xcf2c[324]}))}});return models[_0xcf2c[330]][_0xcf2c[33]]({where:{leaveAt:null}})})[_0xcf2c[32]](function(_0xcc36x68){_[_0xcf2c[31]](_0xcc36x68,function(_0xcc36x66){if(!_[_0xcf2c[193]](_0xcc36x61,_0xcc36x66[_0xcf2c[88]])){_0xcc36x60[_0xcf2c[262]](_0xcc36x66[_0xcf2c[269]]({leaveAt:_0xcc36x62,network:_0xcf2c[328]}))}});return models[_0xcf2c[329]][_0xcf2c[33]]({where:{endtime:null}})})[_0xcf2c[32]](function(_0xcc36x67){_[_0xcf2c[31]](_0xcc36x67,function(_0xcc36x66){if(!_[_0xcf2c[193]](_0xcc36x61,_0xcc36x66[_0xcf2c[88]])){_0xcc36x60[_0xcf2c[262]](_0xcc36x66[_0xcf2c[269]]({endtime:_0xcc36x62,dialstatus:_0xcf2c[325]}))}});return models[_0xcf2c[327]][_0xcf2c[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0xcf2c[32]](function(_0xcc36x65){_[_0xcf2c[31]](_0xcc36x65,function(_0xcc36x66){if(!_[_0xcf2c[193]](_0xcc36x61,_0xcc36x66[_0xcf2c[88]])){_0xcc36x60[_0xcf2c[262]](_0xcc36x66[_0xcf2c[269]]({lastevent:_0xcf2c[199],agentringnoanswer:true,agentringnoanswerAt:_0xcc36x62,reason:_0xcf2c[325]}))}});return models[_0xcf2c[264]][_0xcf2c[33]]({where:{type:_0xcf2c[326],enterAt:{$ne:null},exitAt:null}})})[_0xcf2c[32]](function(_0xcc36x63){_[_0xcf2c[31]](_0xcc36x63,function(_0xcc36x64){if(!_[_0xcf2c[193]](_0xcc36x61,_0xcc36x64[_0xcf2c[88]])){_0xcc36x60[_0xcf2c[262]](_0xcc36x64[_0xcf2c[269]]({exitAt:_0xcc36x64[_0xcf2c[323]],data4:_0xcf2c[324]}))}});return _0xcc36x60})[_0xcf2c[277]]()[_0xcf2c[32]](function(){logger[_0xcf2c[73]](_0xcf2c[322])})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[321],_0xcc36x19[_0xcf2c[26]])})}function removeExpiredApplications(_0xcc36x42){return models[_0xcf2c[350]+ _0xcc36x42+ _0xcf2c[351]][_0xcf2c[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0xcf2c[32]](function(_0xcc36x6d){var _0xcc36x6e,_0xcc36x6f=[],_0xcc36x70=[];_[_0xcf2c[31]](_0xcc36x6d,function(_0xcc36x71){_0xcc36x6e= moment(_0xcc36x71[_0xcf2c[344]])[_0xcf2c[343]](_0xcc36x71[_0xcf2c[342]],_0xcf2c[229]);if(moment()[_0xcf2c[345]](_0xcc36x6e)){_0xcc36x70[_0xcf2c[262]](_0xcc36x71[_0xcf2c[346]]);_0xcc36x6f[_0xcf2c[262]](_0xcc36x71[_0xcf2c[269]]({timeout:true,leaveAt:moment()[_0xcf2c[59]](_0xcf2c[58])}))}});if(_0xcc36x70[_0xcf2c[334]]> 0){_0xcc36x70= _[_0xcf2c[347]](_0xcc36x70);logger[_0xcf2c[73]](_0xcf2c[348],_0xcc36x70);_0xcc36x6f[_0xcf2c[262]](models[_0xcc36x42+ _0xcf2c[349]][_0xcf2c[265]]({waiting:false},{where:{id:_0xcc36x70},individualHooks:true}))};return _0xcc36x6f})[_0xcf2c[277]]()[_0xcf2c[32]](function(){logger[_0xcf2c[73]](_0xcf2c[339]+ _0xcc36x42+ _0xcf2c[341])})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[339]+ _0xcc36x42+ _0xcf2c[340],_0xcc36x19)})}var channelModels=[_0xcf2c[352],_0xcf2c[353],_0xcf2c[354],_0xcf2c[355],_0xcf2c[356]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0xcc36x74){switch(_0xcc36x74[_0xcf2c[192]]){case _0xcf2c[367]:return models[_0xcf2c[369]][_0xcf2c[368]](_0xcf2c[367])[_0xcf2c[33]]()[_0xcf2c[32]](function(_0xcc36x75){var _0xcc36x76=_0xcf2c[183];var _0xcc36x77=_0xcf2c[358];_0xcc36x75[_0xcf2c[31]](function(_0xcc36x78){_0xcc36x76+= util[_0xcf2c[59]](_0xcf2c[359],_0xcc36x78[_0xcf2c[222]])});fs[_0xcf2c[366]](path[_0xcf2c[361]](config[_0xcf2c[360]],_0xcc36x77),_0xcc36x76,{flags:_0xcf2c[362],mode:parseInt(_0xcf2c[363],8)},function(_0xcc36x19){if(_0xcc36x19){throw _0xcc36x19};amiCommand(_0xcf2c[364]);logger[_0xcf2c[73]](_0xcf2c[365])})})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[357],_0xcc36x19)});case _0xcf2c[374]:return models[_0xcf2c[369]][_0xcf2c[368]](_0xcf2c[374])[_0xcf2c[33]]()[_0xcf2c[32]](function(_0xcc36x79){var _0xcc36x7a=_0xcf2c[183];var _0xcc36x7b=_0xcf2c[371];_0xcc36x79[_0xcf2c[31]](function(_0xcc36x7c){_0xcc36x7a+= util[_0xcf2c[59]](_0xcf2c[372],_0xcc36x7c[_0xcf2c[222]])});fs[_0xcf2c[366]](path[_0xcf2c[361]](config[_0xcf2c[360]],_0xcc36x7b),_0xcc36x7a,{flags:_0xcf2c[362],mode:parseInt(_0xcf2c[363],8)},function(_0xcc36x19){if(_0xcc36x19){throw _0xcc36x19};amiCommand(_0xcf2c[364]);logger[_0xcf2c[73]](_0xcf2c[373])})})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[370],_0xcc36x19)});default:logger[_0xcf2c[27]](_0xcf2c[375],_0xcc36x74[_0xcf2c[192]])}}function amiCommand(_0xcc36x7e){return amiAction({Action:_0xcf2c[337],command:_0xcc36x7e})[_0xcf2c[32]](function(_0xcc36x58){logger[_0xcf2c[73]](_0xcf2c[376],_0xcc36x7e,_0xcc36x58)})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[376],_0xcc36x7e,_0xcc36x19)})}function trunksRewrite(){var _0xcc36x80=_0xcf2c[183];var _0xcc36x81=_0xcf2c[183];var _0xcc36x82=_0xcf2c[377];return models[_0xcf2c[34]][_0xcf2c[33]]({where:{active:true},raw:true})[_0xcf2c[32]](function(_0xcc36x1a){activeTrunks= {};var _0xcc36x83;_0xcc36x1a[_0xcf2c[31]](function(_0xcc36x84){_0xcc36x83= null;activeTrunks[_0xcc36x84[_0xcf2c[29]]]= _0xcc36x84[_0xcf2c[30]];delete _0xcc36x84[_0xcf2c[378]];delete _0xcc36x84[_0xcf2c[344]];delete _0xcc36x84[_0xcf2c[379]];delete _0xcc36x84[_0xcf2c[380]];delete _0xcc36x84[_0xcf2c[83]];if(_0xcc36x84[_0xcf2c[381]]&& _0xcc36x84[_0xcf2c[381]]=== _0xcf2c[382]){_0xcc36x84[_0xcf2c[383]]= _0xcf2c[382];_0xcc36x84[_0xcf2c[384]]= _0xcf2c[382];_0xcc36x84[_0xcf2c[385]]= _0xcf2c[328];_0xcc36x84[_0xcf2c[386]]= _0xcf2c[387];_0xcc36x84[_0xcf2c[388]]= _0xcf2c[389];_0xcc36x84[_0xcf2c[390]]= _0xcf2c[391];_0xcc36x84[_0xcf2c[392]]= _0xcf2c[393]}else {_0xcc36x84[_0xcf2c[381]]= _0xcf2c[328]};if(_0xcc36x84[_0xcf2c[85]]){_0xcc36x81+= util[_0xcf2c[59]](_0xcc36x82,_0xcc36x84[_0xcf2c[85]])};delete _0xcc36x84[_0xcf2c[85]];_0xcc36x80+= util[_0xcf2c[59]](_0xcf2c[394],_0xcc36x84[_0xcf2c[29]]);if(_0xcc36x84[_0xcf2c[395]]){_0xcc36x83= _0xcc36x84[_0xcf2c[395]];delete _0xcc36x84[_0xcf2c[395]]};for(var _0xcc36x30 in _0xcc36x84){if(_0xcc36x84[_0xcc36x30]){switch(_0xcc36x30){case _0xcf2c[398]:var _0xcc36x85=_0xcc36x84[_0xcc36x30][_0xcf2c[102]](_0xcf2c[396]);_0xcc36x85[_0xcf2c[31]](function(_0xcc36x40){_0xcc36x80+= util[_0xcf2c[59]](_0xcf2c[397],_0xcc36x30,_0xcc36x40)});break;default:_0xcc36x80+= util[_0xcf2c[59]](_0xcf2c[397],_0xcc36x30,_0xcc36x84[_0xcc36x30])}}};if(_0xcc36x83){_0xcc36x80+= util[_0xcf2c[59]](_0xcf2c[399],_0xcc36x83)}});fs[_0xcf2c[366]](path[_0xcf2c[361]](config[_0xcf2c[360]],_0xcf2c[400]),_0xcc36x80,{flags:_0xcf2c[362],mode:parseInt(_0xcf2c[363],8)},function(_0xcc36x19){if(_0xcc36x19){throw _0xcc36x19};logger[_0xcf2c[73]](_0xcf2c[401]);fs[_0xcf2c[366]](path[_0xcf2c[361]](config[_0xcf2c[360]],_0xcf2c[402]),_0xcc36x81,{flags:_0xcf2c[362],mode:parseInt(_0xcf2c[363],8)},function(_0xcc36x19){if(_0xcc36x19){throw _0xcc36x19};amiCommand(_0xcf2c[364]);logger[_0xcf2c[73]](_0xcf2c[403])})})})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcc36x19)})}function rewriteContexts(_0xcc36x74,_0xcc36x87){return function(){var _0xcc36x88=_0xcf2c[183];if(!_0xcc36x87){_0xcc36x88= util[_0xcf2c[59]](_0xcf2c[404],_0xcc36x74[_0xcf2c[29]],_0xcc36x74[_0xcf2c[29]])};return models[_0xcf2c[409]][_0xcf2c[33]]({where:{id:{$ne:_0xcc36x74[_0xcf2c[253]]}}})[_0xcf2c[32]](function(_0xcc36x89){_0xcc36x89[_0xcf2c[31]](function(_0xcc36x84){_0xcc36x88+= util[_0xcf2c[59]](_0xcf2c[404],_0xcc36x84[_0xcf2c[29]],_0xcc36x84[_0xcf2c[29]])});fs[_0xcf2c[366]](path[_0xcf2c[361]](config[_0xcf2c[360]],_0xcf2c[406]),_0xcc36x88,{flags:_0xcf2c[362],mode:parseInt(_0xcf2c[363],8)},function(_0xcc36x19){if(_0xcc36x19){throw _0xcc36x19};logger[_0xcf2c[73]](_0xcf2c[407]);amiCommand(_0xcf2c[408])})})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[405],_0xcc36x19)})}}function createHangup(_0xcc36x74){return function(){logger[_0xcf2c[73]](_0xcf2c[410],_0xcc36x74[_0xcf2c[29]]);var _0xcc36x47=[{context:_0xcc36x74[_0xcf2c[29]],exten:_0xcf2c[411],priority:_0xcf2c[412],VoiceContextId:_0xcc36x74[_0xcf2c[253]],type:_0xcf2c[413],app:_0xcf2c[414]},{context:_0xcc36x74[_0xcf2c[29]],exten:_0xcf2c[415],priority:_0xcf2c[412],VoiceContextId:_0xcc36x74[_0xcf2c[253]],type:_0xcf2c[413],app:_0xcf2c[414]}];return models[_0xcf2c[418]][_0xcf2c[263]](_0xcc36x47)[_0xcf2c[32]](function(){logger[_0xcf2c[73]](_0xcf2c[417])})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[416],_0xcc36x19)})}}function rtpRewrite(_0xcc36x47){if(_0xcc36x47){var _0xcc36x8c=_0xcf2c[183];for(var _0xcc36x30 in _0xcc36x47){_0xcc36x47[_0xcc36x30]&& (_0xcc36x8c+= util[_0xcf2c[59]](_0xcf2c[397],_0xcc36x30,_0xcc36x47[_0xcc36x30]))};try{fs[_0xcf2c[420]](path[_0xcf2c[361]](config[_0xcf2c[360]],_0xcf2c[419]),_0xcc36x8c,{flag:_0xcf2c[362],mode:parseInt(_0xcf2c[363],8)});logger[_0xcf2c[73]](_0xcf2c[421]);amiCommand(_0xcf2c[422])}catch(err){logger[_0xcf2c[27]](_0xcf2c[423],err)}}else {logger[_0xcf2c[27]](_0xcf2c[424])}}function execRequest(_0xcc36x74,_0xcc36x8e,_0xcc36x8f){return Util[_0xcf2c[427]](_0xcc36x74,_0xcc36x8e,_0xcc36x8f)[_0xcf2c[32]](function(_0xcc36x90){faxLogger[_0xcf2c[73]](_0xcf2c[426])})[_0xcf2c[28]](function(_0xcc36x19){faxLogger[_0xcf2c[27]](_0xcf2c[425],_0xcc36x19)})}function webhook(_0xcc36x74,_0xcc36x92,_0xcc36x93){switch(_0xcc36x93){case _0xcf2c[435]:if(_0xcc36x92[_0xcf2c[428]]&& _0xcc36x92[_0xcf2c[429]]){faxLogger[_0xcf2c[73]](_0xcf2c[430]+ _0xcc36x92[_0xcf2c[29]]+ _0xcf2c[431]);execRequest(_0xcc36x74,_0xcc36x92[_0xcf2c[428]],_0xcc36x92[_0xcf2c[429]])};if(_0xcc36x92[_0xcf2c[432]][_0xcf2c[334]]){_[_0xcf2c[31]](_0xcc36x92[_0xcf2c[432]],function(_0xcc36x38){if(_0xcc36x38[_0xcf2c[433]]){Util[_0xcf2c[434]](_0xcc36x38,_0xcc36x74)}})};break;case _0xcf2c[439]:if(_0xcc36x92[_0xcf2c[436]]&& _0xcc36x92[_0xcf2c[437]]){faxLogger[_0xcf2c[73]](_0xcf2c[430]+ _0xcc36x92[_0xcf2c[29]]+ _0xcf2c[438]);execRequest(_0xcc36x74,_0xcc36x92[_0xcf2c[436]],_0xcc36x92[_0xcf2c[437]])};break;case _0xcf2c[77]:if(_0xcc36x92[_0xcf2c[440]]&& _0xcc36x92[_0xcf2c[441]]){faxLogger[_0xcf2c[73]](_0xcf2c[430]+ _0xcc36x92[_0xcf2c[29]]+ _0xcf2c[442]);execRequest(_0xcc36x74,_0xcc36x92[_0xcf2c[440]],_0xcc36x92[_0xcf2c[441]])};break;default:faxLogger[_0xcf2c[27]](_0xcf2c[443])}}function getFaxRoom(){return function(_0xcc36x92,_0xcc36x95){if(_0xcc36x95[_0xcf2c[444]]){return models[_0xcf2c[445]][_0xcf2c[309]](_0xcc36x95.FaxRoomId)}else {return models[_0xcf2c[445]][_0xcf2c[33]]({limit:1,where:{contact:_0xcc36x95[_0xcf2c[448]],FaxAccountId:_0xcc36x92[_0xcf2c[253]]},order:[[_0xcf2c[378],_0xcf2c[450]]]})[_0xcf2c[32]](function(_0xcc36x96){var _0xcc36x97=_[_0xcf2c[446]](_0xcc36x96);if(!_0xcc36x97|| _0xcc36x97[_0xcf2c[380]]=== _0xcf2c[447]){return models[_0xcf2c[445]][_0xcf2c[63]]({contact:_0xcc36x95[_0xcf2c[448]],account:_0xcc36x92[_0xcf2c[29]],status:_0xcf2c[449],FaxAccountId:_0xcc36x92[_0xcf2c[253]]})}else {return _0xcc36x97}})}}}function sendFax(_0xcc36x99,_0xcc36x9a,_0xcc36x9b){if(_0xcc36x99[_0xcf2c[380]]=== _0xcf2c[451]){faxLogger[_0xcf2c[454]](util[_0xcf2c[59]](_0xcf2c[452],_0xcc36x99[_0xcf2c[453]],_0xcc36x99[_0xcf2c[448]]));var _0xcc36x9c;var _0xcc36x9d=_0xcc36x99;var _0xcc36x9e=_0xcc36x99[_0xcf2c[453]];var _0xcc36x9f=_0xcc36x99[_0xcf2c[448]];var _0xcc36xa0;var _0xcc36xa1;var _0xcc36xa2,_0xcc36xa3;return models[_0xcf2c[505]][_0xcf2c[274]]({where:{localstationid:_0xcc36x9d[_0xcf2c[453]]}})[_0xcf2c[32]](function(_0xcc36xa7){if(!_0xcc36xa7){throw  new Error(_0xcf2c[502])};faxLogger[_0xcf2c[73]](_0xcf2c[503],_0xcc36xa7[_0xcf2c[466]]);_0xcc36xa0= _[_0xcf2c[147]](_0xcc36xa7[_0xcf2c[266]]);return models[_0xcf2c[34]][_0xcf2c[274]]({where:{name:_0xcc36xa0[_0xcf2c[504]]},attributes:[_0xcf2c[29]]})})[_0xcf2c[32]](function(_0xcc36x1b){if(!_0xcc36x1b){throw  new Error(_0xcf2c[500])};faxLogger[_0xcf2c[73]](_0xcf2c[501],_0xcc36x1b[_0xcf2c[29]]);_0xcc36xa1= _[_0xcf2c[147]](_0xcc36x1b[_0xcf2c[266]]);return})[_0xcf2c[32]](function(){return [_0xcc36xa0,_0xcc36x9d]})[_0xcf2c[490]](getFaxRoom())[_0xcf2c[32]](function(_0xcc36xa6){if(!_0xcc36xa6){throw  new Error(_0xcf2c[497])};faxLogger[_0xcf2c[73]](_0xcf2c[498],_0xcc36xa6[_0xcf2c[253]]);_0xcc36x9c= _0xcc36xa6;return _0xcc36x9c[_0xcf2c[499]](_0xcc36x9d[_0xcf2c[253]])})[_0xcf2c[32]](function(){return _0xcc36x9c[_0xcf2c[269]]({status:_0xcf2c[449],lastEvent:_0xcf2c[451],lastEventAt:moment()[_0xcf2c[59]](_0xcf2c[58]),faxOut:++_0xcc36x9c[_0xcf2c[495]]},{individualHooks:true,user:_0xcc36x9b[_0xcf2c[496]]})})[_0xcf2c[32]](function(_0xcc36x47){faxLogger[_0xcf2c[73]](_0xcf2c[493],_0xcc36x47[_0xcf2c[253]]);return _0xcc36x9c[_0xcf2c[494]](_0xcc36x9d.UserId)})[_0xcf2c[32]](function(){return models[_0xcf2c[310]][_0xcf2c[309]](_0xcc36x9d.UserId)})[_0xcf2c[32]](function(){if(_0xcc36xa0[_0xcf2c[491]]){return models[_0xcf2c[492]][_0xcf2c[292]]({where:{ListId:_0xcc36xa0[_0xcf2c[491]],$or:[{phone:_0xcc36x9f},{fax:_0xcc36x9f}]},defaults:{fax:_0xcc36x9f,phone:_0xcc36x9f,firstName:_0xcc36x9f,ListId:_0xcc36xa0[_0xcf2c[491]]}})}else {return []}})[_0xcf2c[490]](function(_0xcc36xa4,_0xcc36xa5){if(_0xcc36xa5!== undefined&&  !_0xcc36xa5){return _0xcc36xa4[_0xcf2c[269]]({fax:_0xcc36x9f})};return})[_0xcf2c[32]](function(){_0xcc36xa2= _0xcc36x9d[_0xcf2c[477]][0][_0xcf2c[6]];if(_0xcc36x9d[_0xcf2c[477]][0][_0xcf2c[192]]=== _0xcf2c[478]){_0xcc36xa3= path[_0xcf2c[361]](config[_0xcf2c[479]],_0xcf2c[480],_0xcf2c[481],_0xcf2c[16],_0xcf2c[194],_0xcf2c[482],_0xcf2c[483],path[_0xcf2c[484]](_0xcc36xa2)[_0xcf2c[29]]+ _0xcf2c[485]);return exec(_0xcf2c[486]+ _0xcc36xa3+ _0xcf2c[487]+ _0xcc36xa2)}else {_0xcc36xa3= path[_0xcf2c[361]](config[_0xcf2c[479]],_0xcf2c[480],_0xcf2c[481],_0xcf2c[16],_0xcf2c[194],_0xcf2c[482],_0xcf2c[483],path[_0xcf2c[484]](_0xcc36xa2)[_0xcf2c[488]]);fse[_0xcf2c[489]](_0xcc36xa2,_0xcc36xa3);return}})[_0xcf2c[32]](function(){fs[_0xcf2c[475]](_0xcc36xa3,511);faxLogger[_0xcf2c[73]](_0xcf2c[476]);return models[_0xcf2c[459]][_0xcf2c[265]]({filename:_0xcc36xa3,localstationid:_0xcc36x9d[_0xcf2c[453]],retry:_0xcc36x9a},{where:{id:_0xcc36x9d[_0xcf2c[253]]}})})[_0xcf2c[32]](function(_0xcc36x99){return amiAction({action:_0xcf2c[462],channel:util[_0xcf2c[59]](_0xcf2c[463],_0xcc36xa0[_0xcf2c[464]],_0xcc36xa1[_0xcf2c[29]],_0xcc36x9f),exten:_0xcc36x9f,context:_0xcf2c[465],priority:1,callerid:util[_0xcf2c[59]](_0xcf2c[180],_0xcc36xa0[_0xcf2c[466]],_0xcc36xa0[_0xcf2c[466]]),variable:{FAXNAME:_0xcc36xa0[_0xcf2c[29]],FAXNUMBER:_0xcc36x9f,FAXECM:_0xcc36xa0[_0xcf2c[467]],FAXHEADERINFO:_0xcc36xa0[_0xcf2c[468]],FAXLOCALSTATIONID:_0xcc36xa0[_0xcf2c[466]],FAXMINRATE:_0xcc36xa0[_0xcf2c[469]],FAXMAXRATE:_0xcc36xa0[_0xcf2c[470]],FAXMODEM:util[_0xcf2c[59]](_0xcf2c[471],_0xcc36xa0[_0xcf2c[472]]),FAXGATEWAY:_0xcc36xa0[_0xcf2c[473]],FAXT38TIMEOUT:_0xcc36xa0[_0xcf2c[474]],FAXOUTFILE:_0xcc36xa3},account:_0xcc36xa0[_0xcf2c[466]]})})[_0xcf2c[32]](function(_0xcc36x58){faxLogger[_0xcf2c[454]](_0xcf2c[460]);faxLogger[_0xcf2c[73]](_0xcf2c[461],_0xcc36x58)})[_0xcf2c[28]](function(_0xcc36x19){faxLogger[_0xcf2c[27]](_0xcf2c[455],_0xcc36x19);faxLogger[_0xcf2c[27]](_0xcf2c[456],_0xcc36x19[_0xcf2c[280]]);faxLogger[_0xcf2c[27]](_0xcf2c[457],_0xcc36x19[_0xcf2c[26]]);return models[_0xcf2c[459]][_0xcf2c[265]]({status:_0xcf2c[171]},{where:{id:_0xcc36x9d[_0xcf2c[253]]}})[_0xcf2c[32]](function(_0xcc36x47){if(_0xcc36x9c){return _0xcc36x9c[_0xcf2c[269]]({lastEvent:_0xcf2c[171]})};return})[_0xcf2c[28]](function(_0xcc36x19){faxLogger[_0xcf2c[27]](_0xcf2c[458],_0xcc36x19);faxLogger[_0xcf2c[27]](_0xcf2c[456],_0xcc36x19[_0xcf2c[280]]);faxLogger[_0xcf2c[27]](_0xcf2c[457],_0xcc36x19[_0xcf2c[26]])})})}}models[_0xcf2c[459]][_0xcf2c[506]](function(_0xcc36x74,_0xcc36x37){sendFax(_0xcc36x74[_0xcf2c[266]],0,_0xcc36x37)});models[_0xcf2c[459]][_0xcf2c[509]](function(_0xcc36x74,_0xcc36x37){if(_0xcc36x74[_0xcf2c[507]](_0xcf2c[380])&& _0xcc36x74[_0xcf2c[380]]=== _0xcf2c[451]){sendFax(_0xcc36x74[_0xcf2c[266]],_0xcc36x74[_0xcf2c[508]]+ 1,_0xcc36x37)}});models[_0xcf2c[445]][_0xcf2c[509]](function(_0xcc36x74){var _0xcc36xa8=_[_0xcf2c[511]](faxaccounts,{id:_0xcc36x74[_0xcf2c[510]]});if(_0xcc36xa8&& _0xcc36x74[_0xcf2c[507]](_0xcf2c[380])&& _0xcc36x74[_0xcf2c[380]]=== _0xcf2c[447]){webhook(_0xcc36x74[_0xcf2c[266]],_0xcc36xa8,_0xcf2c[77])}});models[_0xcf2c[512]][_0xcf2c[506]](function(_0xcc36x74,_0xcc36x37){onSave(_0xcc36x74,_0xcc36x37)});models[_0xcf2c[505]][_0xcf2c[33]]({raw:true})[_0xcf2c[32]](function(_0xcc36xa9){faxaccounts= _0xcc36xa9})[_0xcf2c[28]](function(_0xcc36x19){faxLogger[_0xcf2c[27]](_0xcf2c[513],_0xcc36x19)});function addToCollection(_0xcc36xab,_0xcc36xac){_0xcc36xab[_0xcf2c[262]](_0xcc36xac)}function updateCollection(_0xcc36xab,_0xcc36xac){var _0xcc36xae=_[_0xcf2c[511]](_0xcc36xab,{id:_0xcc36xac[_0xcf2c[253]]});if(_0xcc36xae){_[_0xcf2c[267]](_0xcc36xae,_0xcc36xac)}else {_0xcc36xab[_0xcf2c[514]](_0xcc36xac)}}function removeFromCollection(_0xcc36xab,_0xcc36xac){_[_0xcf2c[515]](_0xcc36xab,{id:_0xcc36xac[_0xcf2c[253]]})}function getWidgets(_0xcc36xb1){_0xcc36xb1= JSON[_0xcf2c[484]](_0xcc36xb1|| _0xcf2c[516]);var _0xcc36xb2=[];if(_0xcc36xb1[_0xcf2c[517]]){_[_0xcf2c[31]](_0xcc36xb1[_0xcf2c[517]],function(_0xcc36xb3){_0xcc36xb2[_0xcf2c[262]](_[_0xcf2c[521]](_[_0xcf2c[520]](_0xcc36xb3[_0xcf2c[518]],_0xcf2c[519])))});if(_0xcc36xb2[_0xcf2c[334]]){var _0xcc36xb4=[];_[_0xcf2c[31]](_0xcc36xb2,function(_0xcc36xb5){_[_0xcf2c[31]](_0xcc36xb5,function(_0xcc36xb6){_[_0xcf2c[193]]([_0xcf2c[522],_0xcf2c[523],_0xcf2c[524]],_0xcc36xb6[_0xcf2c[192]])&& _0xcc36xb4[_0xcf2c[262]]({config:{select:_0xcc36xb6[_0xcf2c[526]][_0xcf2c[525]],fields:_0xcc36xb6[_0xcf2c[526]][_0xcf2c[527]],condition:_0xcc36xb6[_0xcf2c[526]][_0xcf2c[528]],table:_0xcc36xb6[_0xcf2c[526]][_0xcf2c[530]][_0xcf2c[223]](_0xcf2c[529],_0xcf2c[183])},id:_0xcc36xb6[_0xcf2c[531]],type:_0xcc36xb6[_0xcf2c[192]]})})});return (_0xcc36xb4[_0xcf2c[334]]?_0xcc36xb4:null)};return null};return null}function toAddDate(_0xcc36xb8){switch(_0xcc36xb8){case _0xcf2c[532]:;case _0xcf2c[533]:;case _0xcf2c[534]:;case _0xcf2c[535]:;case _0xcf2c[536]:;case _0xcf2c[537]:;case _0xcf2c[538]:;case _0xcf2c[539]:;case _0xcf2c[540]:;case _0xcf2c[541]:;case _0xcf2c[542]:;case _0xcf2c[543]:;case _0xcf2c[544]:;case _0xcf2c[545]:return false;default:return true}}function getCounterWidgetQuery(_0xcc36xba,_0xcc36x5d){return Promise[_0xcf2c[288]]()[_0xcf2c[32]](function(){return _0xcc36xba[_0xcf2c[522]]})[_0xcf2c[32]](reportBuildUtils[_0xcf2c[561]](_0xcc36x5d))[_0xcf2c[32]](function(_0xcc36xbb){var _0xcc36xbc=util[_0xcf2c[59]](_0xcf2c[547],_0xcc36xba[_0xcf2c[525]],_0xcc36xba[_0xcf2c[522]]);if(_0xcc36xba[_0xcf2c[528]]&& _0xcc36xba[_0xcf2c[528]]!== _0xcf2c[548]){_0xcc36xbc+= util[_0xcf2c[59]](_0xcf2c[549],decodeURIComponent(_0xcc36xba[_0xcf2c[528]]))};if(toAddDate(_0xcc36xba[_0xcf2c[522]])){_0xcc36xbc+= util[_0xcf2c[59]]((_0xcc36xba[_0xcf2c[528]]&& _0xcc36xba[_0xcf2c[528]]!== _0xcf2c[548])?_0xcf2c[550]:_0xcf2c[551],moment()[_0xcf2c[553]](_0xcf2c[552])[_0xcf2c[59]](_0xcf2c[58]))};if(!_0xcc36xbb|| _0xcc36xbb!== _0xcf2c[554]){if(_0xcc36xbb){_0xcc36xbc+= _0xcc36xba[_0xcf2c[528]]?_0xcf2c[555]+ _0xcc36xbb:_0xcf2c[556]+ _0xcc36xbb};logger[_0xcf2c[73]](_0xcf2c[557]);logger[_0xcf2c[73]](_0xcc36xbc);logger[_0xcf2c[73]](_0xcf2c[558]);return _0xcc36xbc}else {logger[_0xcf2c[27]](_0xcf2c[559]);logger[_0xcf2c[27]](_0xcf2c[560]);logger[_0xcf2c[27]](_0xcf2c[558]);return []}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[546],_0xcc36x19[_0xcf2c[26]])})}function getPieChartWidgetQuery(_0xcc36xba,_0xcc36x5d){return Promise[_0xcf2c[277]]([])[_0xcf2c[32]](function(){return _0xcc36xba[_0xcf2c[522]]})[_0xcf2c[32]](reportBuildUtils[_0xcf2c[561]](_0xcc36x5d))[_0xcf2c[32]](function(_0xcc36xbb){var _0xcc36xbe=[];var _0xcc36x40;if(_0xcc36xba[_0xcf2c[527]]){if(_[_0xcf2c[563]](_0xcc36xba[_0xcf2c[527]])){_0xcc36xba[_0xcf2c[527]][_0xcf2c[31]](function(_0xcc36x84){if(_0xcc36x84[_0xcf2c[564]]&& _0xcc36x84[_0xcf2c[565]]){_0xcc36xbe[_0xcf2c[262]](_0xcc36x84[_0xcf2c[564]]+ _0xcf2c[566]+ _0xcc36x84[_0xcf2c[565]]+ _0xcf2c[567])}})}else {if(_[_0xcf2c[568]](_0xcc36xba[_0xcf2c[527]])){var _0xcc36x84=JSON[_0xcf2c[484]](_0xcc36xba[_0xcf2c[527]]);if(_0xcc36x84[_0xcf2c[564]]&& _0xcc36x84[_0xcf2c[565]]){_0xcc36xbe[_0xcf2c[262]](_0xcc36x84[_0xcf2c[564]]+ _0xcf2c[566]+ _0xcc36x84[_0xcf2c[565]]+ _0xcf2c[567])}}}};var _0xcc36xbf=_0xcc36xbe[_0xcf2c[334]]?_0xcc36xbe[_0xcf2c[361]](_0xcf2c[101]):_0xcf2c[569];var _0xcc36xc0=_0xcf2c[183];if(_0xcc36xba[_0xcf2c[528]]&& _0xcc36xba[_0xcf2c[528]]!== _0xcf2c[570]&& _0xcc36xba[_0xcf2c[528]]!== _0xcf2c[548]){_0xcc36xc0= util[_0xcf2c[59]](_0xcf2c[549],decodeURIComponent(_0xcc36xba[_0xcf2c[528]]))};if(toAddDate(_0xcc36xba[_0xcf2c[522]])){_0xcc36xc0+= util[_0xcf2c[59]]((_0xcc36xba[_0xcf2c[528]]&& _0xcc36xba[_0xcf2c[528]]!== _0xcf2c[548])?_0xcf2c[550]:_0xcf2c[551],moment()[_0xcf2c[553]](_0xcf2c[552])[_0xcf2c[59]](_0xcf2c[58]))};if(!_0xcc36xbb|| _0xcc36xbb!== _0xcf2c[554]){if(_0xcc36xbb){_0xcc36xc0+= _0xcc36xc0?_0xcf2c[555]+ _0xcc36xbb:_0xcf2c[556]+ _0xcc36xbb};var _0xcc36xbc=util[_0xcf2c[59]](_0xcf2c[571],_0xcc36xbf,_0xcc36xba[_0xcf2c[522]],_0xcc36xc0);logger[_0xcf2c[73]](_0xcf2c[557]);logger[_0xcf2c[73]](_0xcc36xbc);logger[_0xcf2c[73]](_0xcf2c[558]);return _0xcc36xbc}else {logger[_0xcf2c[27]](_0xcf2c[559]);logger[_0xcf2c[27]](_0xcf2c[560]);logger[_0xcf2c[27]](_0xcf2c[558]);return []}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[562],_0xcc36x19[_0xcf2c[26]])})}function getWidgetQuery(_0xcc36xba,_0xcc36x5d){switch(_0xcc36xba[_0xcf2c[192]]){case _0xcf2c[524]:return getCounterWidgetQuery(_0xcc36xba[_0xcf2c[526]],_0xcc36x5d);case _0xcf2c[523]:return getPieChartWidgetQuery(_0xcc36xba[_0xcf2c[526]],_0xcc36x5d);default:return Promise[_0xcf2c[288]]()[_0xcf2c[32]](function(){return null})}}function getCustomDashboardValues(_0xcc36xc3,_0xcc36x5d){var _0xcc36xc4={};var _0xcc36xc5=[],_0xcc36xc6=[],_0xcc36xbc;return models[_0xcf2c[583]][_0xcf2c[309]](_0xcc36xc3)[_0xcf2c[32]](function(_0xcc36xc7){if(!_0xcc36xc7){logger[_0xcf2c[27]](_0xcf2c[575],_0xcc36xc3,_0xcf2c[576]);return};var _0xcc36xb4=getWidgets(_0xcc36xc7[_0xcf2c[577]]);if(_0xcc36xb4){_[_0xcf2c[31]](_0xcc36xb4,function(_0xcc36xba){_0xcc36xc5[_0xcf2c[262]](getWidgetQuery(_0xcc36xba,_0xcc36x5d)[_0xcf2c[32]](function(_0xcc36xbc){_0xcc36xc6[_0xcf2c[262]](Promise[_0xcf2c[288]]()[_0xcf2c[32]](function(){if(_0xcc36xbc){return models[_0xcf2c[581]][_0xcf2c[582]](_0xcc36xbc,{type:models[_0xcf2c[581]][_0xcf2c[580]][_0xcf2c[579]]})}else {return []}})[_0xcf2c[32]](function(_0xcc36x58){_0xcc36xc4[_0xcc36xba[_0xcf2c[253]]]= _0xcc36x58})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[578],_0xcc36xba[_0xcf2c[253]],_0xcc36x19);_0xcc36xc4[_0xcc36xba[_0xcf2c[253]]]= []}))}))});return _0xcc36xc5};return []})[_0xcf2c[277]]()[_0xcf2c[32]](function(){return _0xcc36xc6})[_0xcf2c[277]]()[_0xcf2c[32]](function(){if(!_[_0xcf2c[573]](_0xcc36xc4)){return events[_0xcf2c[574]](_0xcc36xc4,_0xcc36x5d)}})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[572],_0xcc36xc3,_0xcc36x19)})}process[_0xcf2c[74]](_0xcf2c[280],function(_0xcc36xc8){switch(_0xcc36xc8[_0xcf2c[280]]){case _0xcf2c[584]:;case _0xcf2c[585]:;case _0xcf2c[587]:networkRewrite(_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[589]:return BPromise[_0xcf2c[288]]()[_0xcf2c[32]](rewriteContexts(_0xcc36xc8[_0xcf2c[586]],false))[_0xcf2c[32]](createHangup(_0xcc36xc8[_0xcf2c[586]]))[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[588],_0xcc36x19)});case _0xcf2c[591]:return BPromise[_0xcf2c[288]]()[_0xcf2c[32]](rewriteContexts(_0xcc36xc8[_0xcf2c[586]],true))[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[590],_0xcc36x19)});case _0xcf2c[592]:addToCollection(faxaccounts,_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[593]:updateCollection(faxaccounts,_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[594]:removeFromCollection(faxaccounts,_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[595]:trunksRewrite();break;case _0xcf2c[596]:rtpRewrite(_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[597]:;case _0xcf2c[598]:sendFax(_0xcc36xc8[_0xcf2c[586]],0,_0xcc36xc8[_0xcf2c[48]]);break;case _0xcf2c[599]:var _0xcc36xa8=_[_0xcf2c[511]](faxaccounts,{id:_0xcc36xc8[_0xcf2c[586]][_0xcf2c[510]]});if(_0xcc36xa8){webhook(_0xcc36xc8[_0xcf2c[586]],_0xcc36xa8,_0xcc36xc8[_0xcf2c[41]])};break;case _0xcf2c[601]:return amiAction({action:_0xcf2c[337],command:_0xcc36xc8[_0xcf2c[603]]})[_0xcf2c[32]](function(_0xcc36x6a){return events[_0xcf2c[601]]({type:_0xcf2c[602],data:_0xcc36x6a,socket:_0xcc36xc8[_0xcf2c[600]]})})[_0xcf2c[28]](function(_0xcc36x19){events[_0xcf2c[601]]({type:_0xcf2c[27],data:_0xcc36x19,socket:_0xcc36xc8[_0xcf2c[600]]})});case _0xcf2c[608]:return amiAction(_0xcc36xc8[_0xcf2c[41]])[_0xcf2c[32]](function(_0xcc36x6a){events[_0xcf2c[272]](_0xcc36xc8[_0xcf2c[290]],_0xcc36xc8[_0xcf2c[271]],_0xcc36xc8[_0xcf2c[41]][_0xcf2c[605]]);logger[_0xcf2c[454]](util[_0xcf2c[59]](_0xcf2c[606],_0xcc36xc8[_0xcf2c[290]],_0xcc36xc8[_0xcf2c[41]][_0xcf2c[605]]?_0xcf2c[605]:_0xcf2c[607]))})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](util[_0xcf2c[59]](_0xcf2c[604],_0xcc36xc8[_0xcf2c[290]],_0xcc36xc8[_0xcf2c[41]][_0xcf2c[605]]?_0xcf2c[311]:_0xcf2c[312]),_0xcc36x19)});case _0xcf2c[610]:var _0xcc36x92=_[_0xcf2c[511]](faxaccounts,{id:parseInt(_0xcc36xc8[_0xcf2c[586]][_0xcf2c[609]])});if(_0xcc36x92){webhook(_0xcc36xc8[_0xcf2c[586]],_0xcc36x92,_0xcc36xc8[_0xcf2c[41]])};break;case _0xcf2c[611]:return onSave(_0xcc36xc8[_0xcf2c[586]],_0xcc36xc8[_0xcf2c[48]]);case _0xcf2c[612]:return events[_0xcf2c[612]](_0xcc36xc8[_0xcf2c[293]]);case _0xcf2c[613]:;case _0xcf2c[614]:;case _0xcf2c[615]:;case _0xcf2c[616]:;case _0xcf2c[617]:;case _0xcf2c[618]:;case _0xcf2c[619]:;case _0xcf2c[620]:;case _0xcf2c[621]:;case _0xcf2c[622]:;case _0xcf2c[623]:;case _0xcf2c[625]:return events[_0xcf2c[624]](_0xcc36xc8);case _0xcf2c[627]:return BPromise[_0xcf2c[288]]()[_0xcf2c[32]](function(){return amiUtil[_0xcf2c[627]](amiAction,_0xcc36xc8[_0xcf2c[586]])})[_0xcf2c[28]](function(_0xcc36x19){logger[_0xcf2c[27]](_0xcf2c[626],_0xcc36x19)});case _0xcf2c[628]:;case _0xcf2c[629]:;case _0xcf2c[630]:;case _0xcf2c[631]:;case _0xcf2c[632]:;case _0xcf2c[633]:;case _0xcf2c[634]:;case _0xcf2c[635]:;case _0xcf2c[636]:;case _0xcf2c[638]:return events[_0xcf2c[637]](_0xcc36xc8);case _0xcf2c[643]:switch(_0xcc36xc8[_0xcf2c[522]]){case _0xcf2c[640]:return events[_0xcf2c[639]]();case _0xcf2c[642]:return events[_0xcf2c[641]]();default:};break;case _0xcf2c[644]:newexten(_0xcc36xc8[_0xcf2c[52]],true);break;case _0xcf2c[645]:addToCollection(voiceQueues,_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[646]:updateCollection(voiceQueues,_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[647]:removeFromCollection(voiceQueues,_0xcc36xc8[_0xcf2c[586]]);break;case _0xcf2c[648]:getCustomDashboardValues(_0xcc36xc8[_0xcf2c[253]],_0xcc36xc8[_0xcf2c[496]]);break;case _0xcf2c[650]:return events[_0xcf2c[649]](_0xcc36xc8[_0xcf2c[586]]);default:}})
\ No newline at end of file