Built motion from commit 3c79b9529.|1.0.22
[motion.git] / server / config / ami / ami.js
1 var _0x91d5=["\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"];_0x91d5[0];var _=require(_0x91d5[1]);var BPromise=require(_0x91d5[2]);var util=require(_0x91d5[3]);var moment=require(_0x91d5[4]);var fs=require(_0x91d5[5]);var path=require(_0x91d5[6]);var Util=require(_0x91d5[7]);var amiUtil=require(_0x91d5[8]);var exec=require(_0x91d5[10])[_0x91d5[9]];var fse=require(_0x91d5[11]);var kue=require(_0x91d5[12]);var reportBuildUtils=require(_0x91d5[13]);var logger=require(_0x91d5[15])(_0x91d5[14]);var faxLogger=require(_0x91d5[15])(_0x91d5[16]);var config=require(_0x91d5[17]);var events=require(_0x91d5[18]);var models=require(_0x91d5[19]);var channels=[_0x91d5[20],_0x91d5[21],_0x91d5[22],_0x91d5[16],_0x91d5[23],_0x91d5[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0x91d5[34]][_0x91d5[33]]({where:{active:true},attributes:[_0x91d5[29],_0x91d5[30]],raw:true})[_0x91d5[32]](function(_0xbc3cx1a){_[_0x91d5[31]](_0xbc3cx1a,function(_0xbc3cx1b){activeTrunks[_0xbc3cx1b[_0x91d5[29]]]= _0xbc3cx1b[_0x91d5[30]]})})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[25],_0xbc3cx19[_0x91d5[26]])});var ami= new require(_0x91d5[40])(config[_0x91d5[36]][_0x91d5[35]],config[_0x91d5[36]][_0x91d5[37]],config[_0x91d5[36]][_0x91d5[38]],config[_0x91d5[36]][_0x91d5[39]],true);var amiAction=BPromise[_0x91d5[42]](ami[_0x91d5[41]]);var kueConfig={prefix:_0x91d5[43],jobEvents:false,redis:{port:6379,host:config[_0x91d5[44]]}};if(config[_0x91d5[45]]){kueConfig[_0x91d5[47]][_0x91d5[46]]= _0x91d5[39];kueConfig[_0x91d5[47]][_0x91d5[48]]= {password:config[_0x91d5[45]]}};var q=kue[_0x91d5[49]](kueConfig);q[_0x91d5[56]](_0x91d5[50],function(_0xbc3cx20,_0xbc3cx21){try{events[_0xbc3cx20[_0x91d5[53]][_0x91d5[29]]](_0xbc3cx20[_0x91d5[53]][_0x91d5[52]],_0xbc3cx20[_0x91d5[53]][_0x91d5[54]]?amiAction:undefined)[_0x91d5[51]](function(){_0xbc3cx21()})}catch(e){logger[_0x91d5[27]](_0x91d5[55],_0xbc3cx20[_0x91d5[53]][_0x91d5[29]],e)}});function addToQueue(_0xbc3cx23,_0xbc3cx24,_0xbc3cx25){_0xbc3cx24[_0x91d5[57]]= moment()[_0x91d5[59]](_0x91d5[58]);q[_0x91d5[63]](_0x91d5[50],{name:_0xbc3cx23,evt:_0xbc3cx24,needAmi:_0xbc3cx25})[_0x91d5[62]](true)[_0x91d5[61]](function(_0xbc3cx19){if(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[60],_0xbc3cx19)}else {}})}models[_0x91d5[65]][_0x91d5[33]]({raw:true})[_0x91d5[32]](function(_0xbc3cx26){voiceQueues= _0xbc3cx26})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[64],_0xbc3cx19)});ami[_0x91d5[66]]();setInterval(function(){if(global[_0x91d5[67]]){global[_0x91d5[67]]()}else {logger[_0x91d5[70]](_0x91d5[68]+ _0x91d5[69])}},20000);process[_0x91d5[74]](_0x91d5[71],function(_0xbc3cx27){logger[_0x91d5[73]](_0x91d5[72],_0xbc3cx27)});ami[_0x91d5[74]](_0x91d5[75],events[_0x91d5[75]]);ami[_0x91d5[74]](_0x91d5[76],events[_0x91d5[76]]);ami[_0x91d5[74]](_0x91d5[77],events[_0x91d5[77]]);ami[_0x91d5[74]](_0x91d5[27],events[_0x91d5[27]]);ami[_0x91d5[74]](_0x91d5[78],function(_0xbc3cx24){try{addToQueue(_0x91d5[79],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[80],err)}});ami[_0x91d5[74]](_0x91d5[81],function(_0xbc3cx24){try{addToQueue(_0x91d5[81],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[82],err)}});ami[_0x91d5[74]](_0x91d5[83],function(_0xbc3cx24){try{addToQueue(_0x91d5[83],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[84],err)}});ami[_0x91d5[74]](_0x91d5[85],function(_0xbc3cx24){try{addToQueue(_0x91d5[85],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[86],err)}});ami[_0x91d5[74]](_0x91d5[87],function(_0xbc3cx24){try{if(extraVars[_0xbc3cx24[_0x91d5[88]]]){_0xbc3cx24[_0x91d5[89]]= extraVars[_0xbc3cx24[_0x91d5[88]]]};addToQueue(_0x91d5[87],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[90],err)}});ami[_0x91d5[74]](_0x91d5[91],function(_0xbc3cx24){try{if(extraVars[_0xbc3cx24[_0x91d5[88]]]){_0xbc3cx24[_0x91d5[89]]= extraVars[_0xbc3cx24[_0x91d5[88]]]};if(bill[_0xbc3cx24[_0x91d5[88]]]&& bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[88]]!== _0xbc3cx24[_0x91d5[88]]){if(!bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[92]]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[92]]= true}else {delete bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]];_0xbc3cx24[_0x91d5[88]]= bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[88]]}};addToQueue(_0x91d5[91],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[94],err)}});ami[_0x91d5[74]](_0x91d5[95],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[96]]]&& (bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[97]]=== _0x91d5[98]|| bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[99]]=== _0x91d5[98])&& bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[100]]){_0xbc3cx24[_0x91d5[98]]= bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[103]][_0x91d5[102]](_0x91d5[101])[0];_0xbc3cx24[_0x91d5[104]]= bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[100]][_0x91d5[102]](/\/|-/)[1];addToQueue(_0x91d5[95],_0xbc3cx24,true)}}catch(err){logger[_0x91d5[27]](_0x91d5[105],err)}});ami[_0x91d5[74]](_0x91d5[106],function(_0xbc3cx24){try{if(videoOnUrls[_0xbc3cx24[_0x91d5[88]]]){logger[_0x91d5[73]](_0x91d5[107],_0xbc3cx24[_0x91d5[88]],_0x91d5[108]);_0xbc3cx24[_0x91d5[109]]= videoOnUrls[_0xbc3cx24[_0x91d5[88]]];events[_0x91d5[110]](_0xbc3cx24)};if(extraVars[_0xbc3cx24[_0x91d5[88]]]){_0xbc3cx24[_0x91d5[89]]= extraVars[_0xbc3cx24[_0x91d5[88]]]};addToQueue(_0x91d5[106],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[111],err)}});ami[_0x91d5[74]](_0x91d5[112],events[_0x91d5[112]]);ami[_0x91d5[74]](_0x91d5[113],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[88]]]){var _0xbc3cx28=_0xbc3cx24[_0x91d5[114]][_0x91d5[102]](/\/|-/)[1];if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[115]][_0xbc3cx28]){_0xbc3cx24[_0x91d5[116]]= _0x91d5[117];delete bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[115]][_0xbc3cx28]}else {_0xbc3cx24[_0x91d5[116]]= _0x91d5[113]}};addToQueue(_0x91d5[113],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[118],err)}});ami[_0x91d5[74]](_0x91d5[119],function(_0xbc3cx24){try{addToQueue(_0x91d5[119],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[120],err)}});ami[_0x91d5[74]](_0x91d5[121],function(_0xbc3cx24){try{addToQueue(_0x91d5[121],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[122],err)}});ami[_0x91d5[74]](_0x91d5[123],function(_0xbc3cx24){try{addToQueue(_0x91d5[123],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[124],err)}});ami[_0x91d5[74]](_0x91d5[125],function(_0xbc3cx24){try{addToQueue(_0x91d5[125],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[126],err)}});ami[_0x91d5[74]](_0x91d5[127],function(_0xbc3cx24){try{addToQueue(_0x91d5[127],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[128],err)}});ami[_0x91d5[74]](_0x91d5[129],function(_0xbc3cx24){try{addToQueue(_0x91d5[129],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[130],err)}});ami[_0x91d5[74]](_0x91d5[131],function(_0xbc3cx24){try{addToQueue(_0x91d5[131],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[132],err)}});ami[_0x91d5[74]](_0x91d5[133],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[88]]]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[98]]= _0xbc3cx24[_0x91d5[98]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]]= true};addToQueue(_0x91d5[133],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[134],err)}});ami[_0x91d5[74]](_0x91d5[135],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[88]]]){_0xbc3cx24[_0x91d5[88]]= bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[88]]};addToQueue(_0x91d5[135],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[136],err)}});ami[_0x91d5[74]](_0x91d5[137],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[138]]]){bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[139]]= _0x91d5[137];bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[140]]= true;bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[141]]= _0x91d5[142];bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[143]]= _0xbc3cx24[_0x91d5[144]];bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[145]]= _0xbc3cx24[_0x91d5[146]];ami[_0x91d5[148]](_0x91d5[131],_[_0x91d5[147]](bill[_0xbc3cx24[_0x91d5[138]]]));bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[115]]= {};delete bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[139]];bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[149]]= true;_0xbc3cx24[_0x91d5[98]]= bill[_0xbc3cx24[_0x91d5[138]]][_0x91d5[98]]|| null};_0xbc3cx24[_0x91d5[104]]= _0xbc3cx24[_0x91d5[150]][_0x91d5[102]](/\/|-/)[1];addToQueue(_0x91d5[137],_0xbc3cx24,true)}catch(err){logger[_0x91d5[27]](_0x91d5[151],err)}});ami[_0x91d5[74]](_0x91d5[152],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[153]]]){bill[_0xbc3cx24[_0x91d5[153]]][_0x91d5[139]]= _0x91d5[152];bill[_0xbc3cx24[_0x91d5[153]]][_0x91d5[88]]= _0xbc3cx24[_0x91d5[144]];bill[_0xbc3cx24[_0x91d5[144]]]&& (bill[_0xbc3cx24[_0x91d5[144]]][_0x91d5[88]]= _0xbc3cx24[_0x91d5[153]]);ami[_0x91d5[148]](_0x91d5[131],_[_0x91d5[147]](bill[_0xbc3cx24[_0x91d5[153]]]));delete bill[_0xbc3cx24[_0x91d5[153]]][_0x91d5[93]];delete bill[_0xbc3cx24[_0x91d5[153]]][_0x91d5[139]];_0xbc3cx24[_0x91d5[98]]= bill[_0xbc3cx24[_0x91d5[153]]][_0x91d5[98]]|| null};_0xbc3cx24[_0x91d5[104]]= _0xbc3cx24[_0x91d5[154]][_0x91d5[102]](/\/|-/)[1];addToQueue(_0x91d5[152],_0xbc3cx24,true)}catch(err){logger[_0x91d5[27]](_0x91d5[155],err)}});ami[_0x91d5[74]](_0x91d5[156],function(_0xbc3cx24){try{addToQueue(_0x91d5[156],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[157],err)}});ami[_0x91d5[74]](_0x91d5[115],function(_0xbc3cx24){try{if(bill[_0xbc3cx24[_0x91d5[88]]]){var _0xbc3cx28=_0xbc3cx24[_0x91d5[114]][_0x91d5[102]](/\/|-/)[1];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[115]][_0xbc3cx28]= bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[115]][_0xbc3cx28]?false:true};addToQueue(_0x91d5[115],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[158],err)}});ami[_0x91d5[74]](_0x91d5[159],function(_0xbc3cx24){try{addToQueue(_0x91d5[159],_0xbc3cx24)}catch(err){faxLogger[_0x91d5[27]](_0x91d5[160],err)}});ami[_0x91d5[74]](_0x91d5[161],function(_0xbc3cx24){try{addToQueue(_0x91d5[161],_0xbc3cx24)}catch(err){faxLogger[_0x91d5[27]](_0x91d5[162],err)}});ami[_0x91d5[74]](_0x91d5[163],function(_0xbc3cx24){try{addToQueue(_0x91d5[163],_0xbc3cx24)}catch(err){faxLogger[_0x91d5[27]](_0x91d5[164],err)}});amiAction({action:_0x91d5[165]});var applications=[_0x91d5[166],_0x91d5[98],_0x91d5[167],_0x91d5[168],_0x91d5[169]];var dispositions=[_0x91d5[170],_0x91d5[171],_0x91d5[171],_0x91d5[170],_0x91d5[170],_0x91d5[170],_0x91d5[172],_0x91d5[173],_0x91d5[171],_0x91d5[171],_0x91d5[171]];function newchannel(_0xbc3cx24){if(!bill[_0xbc3cx24[_0x91d5[88]]]&&  !bill[_0xbc3cx24[_0x91d5[96]]]){bill[_0xbc3cx24[_0x91d5[88]]]= {uniqueid:_0xbc3cx24[_0x91d5[88]],linkedid:_0xbc3cx24[_0x91d5[96]],type:_0x91d5[174],tag:_0x91d5[175],accountcode:_0xbc3cx24[_0x91d5[176]],source:_0xbc3cx24[_0x91d5[177]],destination:_0xbc3cx24[_0x91d5[178]],destinationcontext:_0xbc3cx24[_0x91d5[179]],callerid:util[_0x91d5[59]](_0x91d5[180],_0xbc3cx24[_0x91d5[181]],_0xbc3cx24[_0x91d5[177]]),channel:_0xbc3cx24[_0x91d5[182]],destinationchannel:_0x91d5[183],lastapplication:_0x91d5[183],lastdata:_0x91d5[183],starttime:moment()[_0x91d5[59]](_0x91d5[58]),answertime:_0x91d5[183],endtime:_0x91d5[183],duration:0,billableseconds:0,disposition:dispositions[_[_0x91d5[185]](_0xbc3cx24[_0x91d5[184]])],amaflags:_0x91d5[186],unmanaged:false,calleridnum:_0xbc3cx24[_0x91d5[177]],calleridname:_0xbc3cx24[_0x91d5[181]],dialend:{}}}}function newstate(_0xbc3cx24){if(bill[_0xbc3cx24[_0x91d5[96]]]&& _0xbc3cx24[_0x91d5[88]]!== _0xbc3cx24[_0x91d5[96]]&& _0xbc3cx24[_0x91d5[184]]=== _0x91d5[187]){bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[188]]= moment()[_0x91d5[59]](_0x91d5[58]);delete bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[93]];bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[189]]= dispositions[_[_0x91d5[185]](_0xbc3cx24[_0x91d5[184]])];if(_[_0x91d5[193]]([_0x91d5[190],_0x91d5[191]],bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[192]])){bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[176]]= _0xbc3cx24[_0x91d5[176]]};if(!_[_0x91d5[193]]([_0x91d5[194],_0x91d5[191]],bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[192]])){bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[195]]= _0xbc3cx24[_0x91d5[196]];bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[197]]= util[_0x91d5[59]](_0x91d5[180],_0xbc3cx24[_0x91d5[198]],_0xbc3cx24[_0x91d5[196]])};bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[96]]= _0xbc3cx24[_0x91d5[88]];bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[100]]= _0xbc3cx24[_0x91d5[182]];bill[_0xbc3cx24[_0x91d5[96]]][_0x91d5[199]]= false}}function newexten(_0xbc3cx24,_0xbc3cx2e){if(bill[_0xbc3cx24[_0x91d5[88]]]){_0xbc3cx24[_0x91d5[200]]= _0xbc3cx24[_0x91d5[200]][_0x91d5[201]]();if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[97]]=== _0x91d5[98]|| bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[99]]=== _0x91d5[98]){if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]]&&  !bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[149]]){if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[202]]){ami[_0x91d5[148]](_0x91d5[203],_[_0x91d5[147]](bill[_0xbc3cx24[_0x91d5[88]]]))}else {if(!bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]= true;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[139]]= _0x91d5[204]};ami[_0x91d5[148]](_0x91d5[205],_[_0x91d5[147]](bill[_0xbc3cx24[_0x91d5[88]]]))}};bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[99]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[202]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[139]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[206]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[207]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[208]]= null};delete bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]];if(!_0xbc3cx2e){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[97]]= _0xbc3cx24[_0x91d5[200]];if(_[_0x91d5[193]](applications,_0xbc3cx24[_0x91d5[200]])){if(_0xbc3cx24[_0x91d5[200]]=== _0x91d5[166]){var _0xbc3cx2f=_0xbc3cx24[_0x91d5[209]][_0x91d5[201]]();if(_[_0x91d5[211]](_0xbc3cx2f,_0x91d5[210])){_0xbc3cx2f= _0xbc3cx2f[_0x91d5[102]](_0x91d5[212]);var _0xbc3cx30=_0xbc3cx2f[0][_0x91d5[213]](/cdr\((.*)\)/);if(_0xbc3cx30){bill[_0xbc3cx24[_0x91d5[88]]][_0xbc3cx30[1]]= _0xbc3cx2f[1];if(_0xbc3cx30[1]=== _0x91d5[192]&& _0xbc3cx2f[1]=== _0x91d5[191]){var _0xbc3cx31=bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[182]][_0x91d5[102]](/\/|-/)[1];activeTrunks[_0xbc3cx31]&& (bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[195]]= activeTrunks[_0xbc3cx31])}}}else {if(_[_0x91d5[211]](_0xbc3cx2f,_0x91d5[214])){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[177]]= _0xbc3cx2f[_0x91d5[102]](_0x91d5[212])[1];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[197]]= util[_0x91d5[59]](_0x91d5[180],bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[181]],bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[177]]);bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[192]]=== _0x91d5[191]&& (bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[215]]= bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[177]])}else {if(_[_0x91d5[211]](_0xbc3cx2f,_0x91d5[216])){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[181]]= _0xbc3cx2f[_0x91d5[102]](_0x91d5[212])[1];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[197]]= util[_0x91d5[59]](_0x91d5[180],bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[181]],bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[177]])}}}};bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[217]]= _0xbc3cx24[_0x91d5[200]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[103]]= _0xbc3cx24[_0x91d5[209]]};if(_0xbc3cx24[_0x91d5[200]]=== _0x91d5[98]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[98]]= _0xbc3cx24[_0x91d5[209]][_0x91d5[102]](_0x91d5[101])[0];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]]= true}}else {bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[99]]= _0xbc3cx24[_0x91d5[200]][_0x91d5[201]]();if(_0xbc3cx24[_0x91d5[200]]=== _0x91d5[98]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[98]]= _0xbc3cx24[_0x91d5[98]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]]= true}}}}function varset(_0xbc3cx24){if(_0xbc3cx24[_0x91d5[220]][_0x91d5[219]](_0x91d5[218])){logger[_0x91d5[73]](_0x91d5[221],_0xbc3cx24[_0x91d5[88]],_0xbc3cx24[_0x91d5[222]]);videoOnUrls[_0xbc3cx24[_0x91d5[88]]]= _0xbc3cx24[_0x91d5[222]][_0x91d5[223]](/\\/g,_0x91d5[183])}else {if(_0xbc3cx24[_0x91d5[220]][_0x91d5[219]](_0x91d5[89])){extraVars[_0xbc3cx24[_0x91d5[88]]]= _0xbc3cx24[_0x91d5[222]]}};if(bill[_0xbc3cx24[_0x91d5[88]]]){if(_0xbc3cx24[_0x91d5[220]][_0x91d5[219]](_0x91d5[224])){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]= true;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[202]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[149]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[139]]= _0xbc3cx24[_0x91d5[222]][_0x91d5[201]]();if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[139]]=== _0x91d5[225]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[63]]= true;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[179]]= _0xbc3cx24[_0x91d5[179]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[178]]= _0xbc3cx24[_0x91d5[178]];ami[_0x91d5[148]](_0x91d5[205],_[_0x91d5[147]](bill[_0xbc3cx24[_0x91d5[88]]]));delete bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[63]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[202]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[139]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[206]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[207]]= null;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[208]]= null}}}}function queuecallerabandon(_0xbc3cx24){if(bill[_0xbc3cx24[_0x91d5[88]]]&&  !bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[202]]= true;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[149]]= false;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[206]]= _0xbc3cx24[_0x91d5[206]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[207]]= _0xbc3cx24[_0x91d5[207]];bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[208]]= _0xbc3cx24[_0x91d5[208]]}}function hangup(_0xbc3cx24){if(bill[_0xbc3cx24[_0x91d5[88]]]){var _0xbc3cx35=moment();bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[226]]= _0xbc3cx35[_0x91d5[59]](_0x91d5[58]);bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[227]]= _0xbc3cx35[_0x91d5[230]](bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[228]],_0x91d5[229]);if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[188]]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[231]]= _0xbc3cx35[_0x91d5[230]](bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[188]],_0x91d5[229])};ami[_0x91d5[148]](_0x91d5[78],bill[_0xbc3cx24[_0x91d5[88]]]);if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[93]]|| (bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[149]]&&  !bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[188]])){if(bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[202]]){ami[_0x91d5[148]](_0x91d5[203],bill[_0xbc3cx24[_0x91d5[88]]])}else {if(!bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]){bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[199]]= true;bill[_0xbc3cx24[_0x91d5[88]]][_0x91d5[139]]= _0x91d5[204]};ami[_0x91d5[148]](_0x91d5[205],bill[_0xbc3cx24[_0x91d5[88]]])}};delete bill[_0xbc3cx24[_0x91d5[88]]]}}ami[_0x91d5[74]](_0x91d5[205],function(_0xbc3cx24){try{addToQueue(_0x91d5[232],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[233],err)}});ami[_0x91d5[74]](_0x91d5[203],function(_0xbc3cx24){try{addToQueue(_0x91d5[234],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[235],err)}});ami[_0x91d5[74]](_0x91d5[236],function(_0xbc3cx24){try{newchannel(_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[237],err)}});ami[_0x91d5[74]](_0x91d5[238],function(_0xbc3cx24){try{newstate(_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[239],err)}});ami[_0x91d5[74]](_0x91d5[240],function(_0xbc3cx24){try{newexten(_0xbc3cx24,false)}catch(err){logger[_0x91d5[27]](_0x91d5[241],err)}});ami[_0x91d5[74]](_0x91d5[242],function(_0xbc3cx24){try{varset(_0xbc3cx24);addToQueue(_0x91d5[242],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[243],err)}});ami[_0x91d5[74]](_0x91d5[234],function(_0xbc3cx24){try{queuecallerabandon(_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[244],err)}});ami[_0x91d5[74]](_0x91d5[245],function(_0xbc3cx24){try{delete videoOnUrls[_0xbc3cx24[_0x91d5[88]]];delete extraVars[_0xbc3cx24[_0x91d5[88]]];hangup(_0xbc3cx24);addToQueue(_0x91d5[245],_0xbc3cx24)}catch(err){logger[_0x91d5[27]](_0x91d5[246],err)}});function handlePause(_0xbc3cx37,_0xbc3cx38){return function(_0xbc3cx39){var _0xbc3cx3a=_0xbc3cx39[_0x91d5[247]];var _0xbc3cx3b=false;var _0xbc3cx3c,_0xbc3cx3d;_0xbc3cx3c= _0xbc3cx3d= _0xbc3cx37[_0x91d5[248]][_0x91d5[192]]|| _0xbc3cx38[_0x91d5[249]]|| _0xbc3cx38[_0x91d5[250]];if(_[_0x91d5[211]](_0xbc3cx3d,_0x91d5[251])){_0xbc3cx3d= _0xbc3cx3d[_0x91d5[252]](1);_0xbc3cx3b= true};var _0xbc3cx3e={id:_0xbc3cx39[_0x91d5[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0xbc3cx3c,lastPauseAt:moment()[_0x91d5[59]](_0x91d5[58])};return _0xbc3cx39[_0x91d5[269]](_0xbc3cx3e)[_0x91d5[32]](function(_0xbc3cx44){if(_0xbc3cx44){return events[_0x91d5[268]](_[_0x91d5[267]]({newValues:_0xbc3cx3e},_0xbc3cx44[_0x91d5[266]]))}})[_0x91d5[32]](function(){var _0xbc3cx43=moment()[_0x91d5[59]](_0x91d5[58]);return models[_0x91d5[264]][_0x91d5[265]]({duration:moment(_0xbc3cx43)[_0x91d5[230]](moment(_0xbc3cx3a),_0x91d5[229]),exitAt:_0xbc3cx43},{where:{membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[258],exitAt:null}})})[_0x91d5[32]](function(){var _0xbc3cx3f=(_0xbc3cx3e[_0x91d5[254]]&&  !_0xbc3cx3b)?channels:_[_0x91d5[255]](channels,function(_0xbc3cx40){return _0xbc3cx40!== _0x91d5[20]});var _0xbc3cx41=[];_0xbc3cx3f[_0x91d5[31]](function(_0xbc3cx42){_0xbc3cx41[_0x91d5[262]]({channel:_0xbc3cx42,membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[258],enterAt:moment()[_0x91d5[59]](_0x91d5[58]),data1:_0xbc3cx3d,data2:_0xbc3cx38[_0x91d5[259]],data4:_0xbc3cx3d,role:_0xbc3cx39[_0x91d5[260]],internal:_0xbc3cx39[_0x91d5[174]],uniqueid:_0xbc3cx38[_0x91d5[261]]})});return models[_0x91d5[264]][_0x91d5[263]](_0xbc3cx41,{raw:true,individualHooks:true})})}}function handleUnpause(_0xbc3cx37,_0xbc3cx38){return function(_0xbc3cx39){var _0xbc3cx3e;if(!_0xbc3cx37[_0x91d5[248]]){_0xbc3cx37[_0x91d5[248]]= {}};if(_0xbc3cx37[_0x91d5[248]][_0x91d5[192]]!== _0x91d5[270]){events[_0x91d5[272]](_0xbc3cx39[_0x91d5[29]],_0xbc3cx39[_0x91d5[271]],false)};switch(_0xbc3cx37[_0x91d5[248]][_0x91d5[182]]){case _0x91d5[20]:_0xbc3cx3e= {id:_0xbc3cx39[_0x91d5[253]],voicePause:false};return _0xbc3cx39[_0x91d5[269]](_0xbc3cx3e)[_0x91d5[32]](function(_0xbc3cx44){return events[_0x91d5[268]](_[_0x91d5[267]]({newValues:_0xbc3cx3e},_0xbc3cx44[_0x91d5[266]]))})[_0x91d5[32]](function(){return models[_0x91d5[264]][_0x91d5[274]]({where:{channel:_0xbc3cx37[_0x91d5[248]][_0x91d5[182]],membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[258],exitAt:null}})})[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[273]}))[_0x91d5[32]](function(_0xbc3cx46){return _0xbc3cx46[_0x91d5[269]]({exitAt:moment()[_0x91d5[59]](_0x91d5[58])})})[_0x91d5[32]](function(){return _0xbc3cx39});case _0x91d5[21]:;case _0x91d5[22]:;case _0x91d5[16]:;case _0x91d5[23]:;case _0x91d5[24]:var _0xbc3cx47={};_0xbc3cx47[util[_0x91d5[59]](_0x91d5[275],_0xbc3cx37[_0x91d5[248]][_0x91d5[182]],_0x91d5[276])]= false;return _0xbc3cx39[_0x91d5[269]](_0xbc3cx47)[_0x91d5[32]](function(_0xbc3cx39){_0xbc3cx47[_0x91d5[253]]= _0xbc3cx39[_0x91d5[253]];return events[_0x91d5[268]](_[_0x91d5[267]]({newValues:_0xbc3cx47},_0xbc3cx39[_0x91d5[266]]))})[_0x91d5[32]](function(){return models[_0x91d5[264]][_0x91d5[274]]({where:{channel:_0xbc3cx37[_0x91d5[248]][_0x91d5[182]],membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[258],exitAt:null}})})[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[273]}))[_0x91d5[32]](function(_0xbc3cx46){return _0xbc3cx46[_0x91d5[269]]({exitAt:moment()[_0x91d5[59]](_0x91d5[58])})})[_0x91d5[32]](function(){return _0xbc3cx39});default:_0xbc3cx3e= {id:_0xbc3cx39[_0x91d5[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0xbc3cx39[_0x91d5[269]](_0xbc3cx3e)[_0x91d5[32]](function(_0xbc3cx44){return events[_0x91d5[268]](_[_0x91d5[267]]({newValues:_0xbc3cx3e},_0xbc3cx39[_0x91d5[266]]))})[_0x91d5[32]](function(){return models[_0x91d5[264]][_0x91d5[33]]({where:{membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[258],exitAt:null}})})[_0x91d5[32]](function(_0xbc3cx48){var _0xbc3cx49=[];_0xbc3cx48[_0x91d5[31]](function(_0xbc3cx4a){_0xbc3cx49[_0x91d5[262]](_0xbc3cx4a[_0x91d5[269]]({exitAt:moment()[_0x91d5[59]](_0x91d5[58])}))});return BPromise[_0x91d5[277]](_0xbc3cx49)})[_0x91d5[32]](function(){return _0xbc3cx39})}}}function queueAddUpdate(_0xbc3cx4c,_0xbc3cx4d){return models[_0x91d5[278]][_0x91d5[274]]({where:{queue:_0xbc3cx4c,membername:_0xbc3cx4d}})[_0x91d5[32]](function(_0xbc3cx4e){if(_0xbc3cx4e){return _0xbc3cx4e[_0x91d5[269]]({logged:true,loggedAt:moment()[_0x91d5[59]](_0x91d5[58])})}})}function handleLogin(_0xbc3cx37,_0xbc3cx38){return function(_0xbc3cx39){if(!_0xbc3cx39[_0x91d5[279]]){_0xbc3cx39[_0x91d5[279]]= true;return BPromise[_0x91d5[289]]()[_0x91d5[32]](function(){return events[_0x91d5[268]](_[_0x91d5[288]]({newValues:_0xbc3cx39[_0x91d5[266]]},_0xbc3cx39[_0x91d5[266]]))})[_0x91d5[32]](function(){return _0xbc3cx39[_0x91d5[287]]()})[_0x91d5[32]](function(voiceQueues){var _0xbc3cx50=[];voiceQueues[_0x91d5[31]](function(_0xbc3cx51){_0xbc3cx50[_0x91d5[262]](amiAction({action:_0x91d5[284],queue:_0xbc3cx51[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),membername:_0xbc3cx39[_0x91d5[29]],penalty:_0xbc3cx51[_0x91d5[278]][_0x91d5[285]],paused:_0xbc3cx39[_0x91d5[286]]})[_0x91d5[28]](function(_0xbc3cx19){if(_0xbc3cx19[_0x91d5[281]]=== _0x91d5[282]){return queueAddUpdate(_0xbc3cx51[_0x91d5[29]],_0xbc3cx39[_0x91d5[29]])};logger[_0x91d5[27]](_0x91d5[283],_0xbc3cx51[_0x91d5[29]],_0xbc3cx19)}))});return _0xbc3cx50})[_0x91d5[277]]()[_0x91d5[32]](function(){var _0xbc3cx41=[];channels[_0x91d5[31]](function(_0xbc3cx42){_0xbc3cx41[_0x91d5[262]]({channel:_0xbc3cx42,membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[280],enterAt:moment()[_0x91d5[59]](_0x91d5[58]),role:_0xbc3cx39[_0x91d5[260]],internal:_0xbc3cx39[_0x91d5[174]]})});return models[_0x91d5[264]][_0x91d5[263]](_0xbc3cx41,{raw:true,individualHooks:true})})}}}function logoutAgent(_0xbc3cx39){return BPromise[_0x91d5[289]]()[_0x91d5[32]](function(){return events[_0x91d5[268]](_[_0x91d5[288]]({newValues:{id:_0xbc3cx39[_0x91d5[253]],online:false}},_0xbc3cx39[_0x91d5[266]],{online:false}))})[_0x91d5[32]](function(){return models[_0x91d5[65]][_0x91d5[33]]()})[_0x91d5[32]](function(voiceQueues){var _0xbc3cx50=[];voiceQueues[_0x91d5[31]](function(_0xbc3cx51){_0xbc3cx50[_0x91d5[262]](amiAction({action:_0x91d5[290],queue:_0xbc3cx51[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]])})[_0x91d5[28]](function(_0xbc3cx19){}))});return BPromise[_0x91d5[277]](_0xbc3cx50)})[_0x91d5[32]](function(_0xbc3cx53){return models[_0x91d5[264]][_0x91d5[33]]({where:{membername:_0xbc3cx39[_0x91d5[29]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),type:_0x91d5[280],exitAt:null}})})[_0x91d5[32]](function(_0xbc3cx48){var _0xbc3cx49=[];_0xbc3cx48[_0x91d5[31]](function(_0xbc3cx4a){_0xbc3cx49[_0x91d5[262]](_0xbc3cx4a[_0x91d5[269]]({exitAt:moment()[_0x91d5[59]](_0x91d5[58])}))});return BPromise[_0x91d5[277]](_0xbc3cx49)})}function handleLogout(_0xbc3cx37,_0xbc3cx38){return function(_0xbc3cx39){return BPromise[_0x91d5[289]]()[_0x91d5[32]](function(){if(_0xbc3cx39[_0x91d5[260]]=== _0x91d5[291]){return logoutAgent(_0xbc3cx39)}})[_0x91d5[32]](function(){return _0xbc3cx39[_0x91d5[269]]({online:false})})}}function handleQueueAdd(_0xbc3cx37,_0xbc3cx38){return function(_0xbc3cx39){var _0xbc3cx56=[];switch(_0xbc3cx37[_0x91d5[248]][_0x91d5[182]]){case _0x91d5[20]:_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx56[_0x91d5[262]](models[_0x91d5[278]][_0x91d5[293]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],queue:_0xbc3cx4c},defaults:{queue:_0xbc3cx4c,location:util[_0x91d5[59]](_0x91d5[292],_0xbc3cx39[_0x91d5[29]]),membername:_0xbc3cx39[_0x91d5[29]],UserId:_0xbc3cx39[_0x91d5[253]],penalty:_0xbc3cx38[_0x91d5[259]]},individualHooks:true,raw:true}))});return BPromise[_0x91d5[277]](_0xbc3cx56)[_0x91d5[32]](function(){var _0xbc3cx50=[];_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx50[_0x91d5[262]](amiAction({action:_0x91d5[284],queue:_0xbc3cx4c,paused:_0xbc3cx39[_0x91d5[254]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]]),membername:_0xbc3cx39[_0x91d5[29]]})[_0x91d5[28]](function(_0xbc3cx19){if(_0xbc3cx19[_0x91d5[281]]=== _0x91d5[282]){return queueAddUpdate(_0xbc3cx4c,_0xbc3cx39[_0x91d5[29]])};logger[_0x91d5[27]](_0x91d5[295],_0xbc3cx4c,_0xbc3cx19)}))});return BPromise[_0x91d5[277]](_0xbc3cx50)});case _0x91d5[21]:_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx56[_0x91d5[262]](models[_0x91d5[296]][_0x91d5[293]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],ChatQueueId:_0xbc3cx4c[_0x91d5[253]]},defaults:{ChatQueueId:_0xbc3cx4c[_0x91d5[253]],queue:_0xbc3cx4c[_0x91d5[29]],UserId:_0xbc3cx39[_0x91d5[253]],penalty:_0xbc3cx38[_0x91d5[259]]},individualHooks:true,raw:true}))});return BPromise[_0x91d5[277]](_0xbc3cx56);case _0x91d5[22]:_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx56[_0x91d5[262]](models[_0x91d5[297]][_0x91d5[293]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],MailQueueId:_0xbc3cx4c[_0x91d5[253]]},defaults:{MailQueueId:_0xbc3cx4c[_0x91d5[253]],queue:_0xbc3cx4c[_0x91d5[29]],UserId:_0xbc3cx39[_0x91d5[253]],penalty:_0xbc3cx38[_0x91d5[259]]},individualHooks:true,raw:true}))});return BPromise[_0x91d5[277]](_0xbc3cx56);case _0x91d5[23]:_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx56[_0x91d5[262]](models[_0x91d5[298]][_0x91d5[293]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],SmsQueueId:_0xbc3cx4c[_0x91d5[253]]},defaults:{SmsQueueId:_0xbc3cx4c[_0x91d5[253]],queue:_0xbc3cx4c[_0x91d5[29]],UserId:_0xbc3cx39[_0x91d5[253]],penalty:_0xbc3cx38[_0x91d5[259]]},individualHooks:true,raw:true}))});return BPromise[_0x91d5[277]](_0xbc3cx56);case _0x91d5[24]:_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx56[_0x91d5[262]](models[_0x91d5[299]][_0x91d5[293]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],OpenchannelQueueId:_0xbc3cx4c[_0x91d5[253]]},defaults:{OpenchannelQueueId:_0xbc3cx4c[_0x91d5[253]],queue:_0xbc3cx4c[_0x91d5[29]],UserId:_0xbc3cx39[_0x91d5[253]],penalty:_0xbc3cx38[_0x91d5[259]]},individualHooks:true,raw:true}))});return BPromise[_0x91d5[277]](_0xbc3cx56);case _0x91d5[16]:_0xbc3cx37[_0x91d5[248]][_0x91d5[294]][_0x91d5[31]](function(_0xbc3cx4c){_0xbc3cx56[_0x91d5[262]](models[_0x91d5[300]][_0x91d5[293]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],FaxQueueId:_0xbc3cx4c[_0x91d5[253]]},defaults:{faxQueueId:_0xbc3cx4c[_0x91d5[253]],queue:_0xbc3cx4c[_0x91d5[29]],UserId:_0xbc3cx39[_0x91d5[253]],penalty:_0xbc3cx38[_0x91d5[259]]},individualHooks:true,raw:true}))});return BPromise[_0x91d5[277]](_0xbc3cx56);default:}}}function handleQueueRemove(_0xbc3cx37,_0xbc3cx38){return function(_0xbc3cx39){switch(_0xbc3cx37[_0x91d5[248]][_0x91d5[182]]){case _0x91d5[20]:return models[_0x91d5[278]][_0x91d5[302]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],queue:_0xbc3cx37[_0x91d5[248]][_0x91d5[98]]},individualHooks:true,raw:true})[_0x91d5[32]](function(){return amiAction({action:_0x91d5[290],queue:_0xbc3cx37[_0x91d5[248]][_0x91d5[98]],interface:util[_0x91d5[59]](_0x91d5[256],_0x91d5[257],_0xbc3cx39[_0x91d5[29]])})})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[301],_0xbc3cx19[_0x91d5[26]])});case _0x91d5[21]:return models[_0x91d5[296]][_0x91d5[274]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],ChatQueueId:_0xbc3cx37[_0x91d5[248]][_0x91d5[304]]}})[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx58){return _0xbc3cx58[_0x91d5[302]]()}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[303],_0xbc3cx19)});case _0x91d5[22]:return models[_0x91d5[297]][_0x91d5[274]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],MailQueueId:_0xbc3cx37[_0x91d5[248]][_0x91d5[304]]}})[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx58){return _0xbc3cx58[_0x91d5[302]]()}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[305],_0xbc3cx19)});case _0x91d5[23]:return models[_0x91d5[298]][_0x91d5[274]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],SmsQueueId:_0xbc3cx37[_0x91d5[248]][_0x91d5[304]]}})[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx58){return _0xbc3cx58[_0x91d5[302]]()}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[306],_0xbc3cx19)});case _0x91d5[24]:return models[_0x91d5[299]][_0x91d5[274]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],OpenchannelQueueId:_0xbc3cx37[_0x91d5[248]][_0x91d5[304]]}})[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx58){return _0xbc3cx58[_0x91d5[302]]()}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[307],_0xbc3cx19)});case _0x91d5[16]:return models[_0x91d5[300]][_0x91d5[274]]({where:{UserId:_0xbc3cx39[_0x91d5[253]],FaxQueueId:_0xbc3cx37[_0x91d5[248]][_0x91d5[304]]}})[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx58){return _0xbc3cx58[_0x91d5[302]]()}})[_0x91d5[28]](function(_0xbc3cx19){faxLogger[_0x91d5[27]](_0x91d5[308],_0xbc3cx19)});default:}}}function handleEntityNotFound(_0xbc3cx5a){return function(_0xbc3cx5b){if(!_0xbc3cx5b){throw _0xbc3cx5a};return _0xbc3cx5b}}function onSave(_0xbc3cx38,_0xbc3cx37){switch(_0xbc3cx38[_0x91d5[29]]){case _0x91d5[312]:return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx37[_0x91d5[248]][_0x91d5[291]])[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[309]}))[_0x91d5[32]](handlePause(_0xbc3cx37,_0xbc3cx38));case _0x91d5[313]:return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx37[_0x91d5[248]][_0x91d5[291]])[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[309]}))[_0x91d5[32]](handleUnpause(_0xbc3cx37,_0xbc3cx38));case _0x91d5[314]:return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx38[_0x91d5[250]])[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[309]}))[_0x91d5[32]](handleLogin(_0xbc3cx37,_0xbc3cx38))[_0x91d5[32]](function(_0xbc3cx5d){return _0xbc3cx5d});case _0x91d5[315]:return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx38[_0x91d5[250]])[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[309]}))[_0x91d5[32]](handleUnpause(_0xbc3cx37,_0xbc3cx38))[_0x91d5[32]](handleLogout(_0xbc3cx37,_0xbc3cx38));case _0x91d5[284]:return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx37[_0x91d5[248]][_0x91d5[291]])[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[309]}))[_0x91d5[32]](handleQueueAdd(_0xbc3cx37,_0xbc3cx38))[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx37[_0x91d5[248]][_0x91d5[182]]!== _0x91d5[20]){return events[_0x91d5[317]](_0xbc3cx58,_0xbc3cx37[_0x91d5[248]][_0x91d5[182]])}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[316],_0xbc3cx19[_0x91d5[26]])});case _0x91d5[290]:return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx37[_0x91d5[248]][_0x91d5[291]])[_0x91d5[32]](handleEntityNotFound({message:_0x91d5[309]}))[_0x91d5[32]](handleQueueRemove(_0xbc3cx37,_0xbc3cx38))[_0x91d5[32]](function(_0xbc3cx58){if(_0xbc3cx37[_0x91d5[248]][_0x91d5[182]]!== _0x91d5[20]){return events[_0x91d5[319]](_0xbc3cx58,_0xbc3cx37[_0x91d5[248]][_0x91d5[182]])}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[318],_0xbc3cx19[_0x91d5[26]])});default:throw {message:_0x91d5[320]}}}function clean(channels){removeInactiveCalls();_[_0x91d5[31]](channels,function(_0xbc3cx42){removeExpiredApplications(_0xbc3cx42)})}function removeInactiveCalls(){logger[_0x91d5[73]](_0x91d5[321]);var _0xbc3cx60=[],_0xbc3cx61=[],_0xbc3cx62=moment()[_0x91d5[59]](_0x91d5[58]);return amiAction({action:_0x91d5[338],command:_0x91d5[339]})[_0x91d5[32]](function(_0xbc3cx6a){var _0xbc3cx6b;if(_0xbc3cx6a&& _0xbc3cx6a[_0x91d5[332]]){var _0xbc3cx58=_0xbc3cx6a[_0x91d5[332]][_0x91d5[102]](_0x91d5[333]);_[_0x91d5[31]](_0xbc3cx58,function(_0xbc3cx40){if(_0xbc3cx40){_0xbc3cx6b= _0xbc3cx40[_0x91d5[102]](_0x91d5[334]);_0xbc3cx6b[_0x91d5[335]]=== 14&& _0xbc3cx61[_0x91d5[262]](_0xbc3cx6b[_0x91d5[336]]())}})};return models[_0x91d5[337]][_0x91d5[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0x91d5[32]](function(_0xbc3cx69){_[_0x91d5[31]](_0xbc3cx69,function(_0xbc3cx66){if(!_[_0x91d5[193]](_0xbc3cx61,_0xbc3cx66[_0x91d5[88]])){_0xbc3cx60[_0x91d5[262]](_0xbc3cx66[_0x91d5[269]]({queuecallerleaveAt:_0xbc3cx62,queuecallerexitAt:_0xbc3cx62,queuecallerexit:true,queuecallerexitreason:_0x91d5[325]}))}});return models[_0x91d5[331]][_0x91d5[33]]({where:{leaveAt:null}})})[_0x91d5[32]](function(_0xbc3cx68){_[_0x91d5[31]](_0xbc3cx68,function(_0xbc3cx66){if(!_[_0x91d5[193]](_0xbc3cx61,_0xbc3cx66[_0x91d5[88]])){_0xbc3cx60[_0x91d5[262]](_0xbc3cx66[_0x91d5[269]]({leaveAt:_0xbc3cx62,network:_0x91d5[329]}))}});return models[_0x91d5[330]][_0x91d5[33]]({where:{endtime:null}})})[_0x91d5[32]](function(_0xbc3cx67){_[_0x91d5[31]](_0xbc3cx67,function(_0xbc3cx66){if(!_[_0x91d5[193]](_0xbc3cx61,_0xbc3cx66[_0x91d5[88]])){_0xbc3cx60[_0x91d5[262]](_0xbc3cx66[_0x91d5[269]]({endtime:_0xbc3cx62,dialstatus:_0x91d5[326]}))}});return models[_0x91d5[328]][_0x91d5[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0x91d5[32]](function(_0xbc3cx65){_[_0x91d5[31]](_0xbc3cx65,function(_0xbc3cx66){if(!_[_0x91d5[193]](_0xbc3cx61,_0xbc3cx66[_0x91d5[88]])){_0xbc3cx60[_0x91d5[262]](_0xbc3cx66[_0x91d5[269]]({lastevent:_0x91d5[199],agentringnoanswer:true,agentringnoanswerAt:_0xbc3cx62,reason:_0x91d5[326]}))}});return models[_0x91d5[264]][_0x91d5[33]]({where:{type:_0x91d5[327],enterAt:{$ne:null},exitAt:null}})})[_0x91d5[32]](function(_0xbc3cx63){_[_0x91d5[31]](_0xbc3cx63,function(_0xbc3cx64){if(!_[_0x91d5[193]](_0xbc3cx61,_0xbc3cx64[_0x91d5[88]])){_0xbc3cx60[_0x91d5[262]](_0xbc3cx64[_0x91d5[269]]({exitAt:_0xbc3cx64[_0x91d5[324]],data4:_0x91d5[325]}))}});return _0xbc3cx60})[_0x91d5[277]]()[_0x91d5[32]](function(){logger[_0x91d5[73]](_0x91d5[323])})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[322],_0xbc3cx19[_0x91d5[26]])})}function removeExpiredApplications(_0xbc3cx42){return models[_0x91d5[347]+ _0xbc3cx42+ _0x91d5[348]][_0x91d5[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0x91d5[32]](function(_0xbc3cx6d){var _0xbc3cx6e,_0xbc3cx6f=[];_[_0x91d5[31]](_0xbc3cx6d,function(_0xbc3cx70){_0xbc3cx6e= moment(_0xbc3cx70[_0x91d5[345]])[_0x91d5[344]](_0xbc3cx70[_0x91d5[343]],_0x91d5[229]);if(moment()[_0x91d5[346]](_0xbc3cx6e)){_0xbc3cx6f[_0x91d5[262]](_0xbc3cx70[_0x91d5[269]]({timeout:true,leaveAt:moment()[_0x91d5[59]](_0x91d5[58])}))}});return _0xbc3cx6f})[_0x91d5[277]]()[_0x91d5[32]](function(){logger[_0x91d5[73]](_0x91d5[340]+ _0xbc3cx42+ _0x91d5[342])})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[340]+ _0xbc3cx42+ _0x91d5[341],_0xbc3cx19)})}var channelModels=[_0x91d5[349],_0x91d5[350],_0x91d5[351],_0x91d5[352],_0x91d5[353]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0xbc3cx73){switch(_0xbc3cx73[_0x91d5[192]]){case _0x91d5[364]:return models[_0x91d5[366]][_0x91d5[365]](_0x91d5[364])[_0x91d5[33]]()[_0x91d5[32]](function(_0xbc3cx74){var _0xbc3cx75=_0x91d5[183];var _0xbc3cx76=_0x91d5[355];_0xbc3cx74[_0x91d5[31]](function(_0xbc3cx77){_0xbc3cx75+= util[_0x91d5[59]](_0x91d5[356],_0xbc3cx77[_0x91d5[222]])});fs[_0x91d5[363]](path[_0x91d5[358]](config[_0x91d5[357]],_0xbc3cx76),_0xbc3cx75,{flags:_0x91d5[359],mode:parseInt(_0x91d5[360],8)},function(_0xbc3cx19){if(_0xbc3cx19){throw _0xbc3cx19};amiCommand(_0x91d5[361]);logger[_0x91d5[73]](_0x91d5[362])})})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[354],_0xbc3cx19)});case _0x91d5[371]:return models[_0x91d5[366]][_0x91d5[365]](_0x91d5[371])[_0x91d5[33]]()[_0x91d5[32]](function(_0xbc3cx78){var _0xbc3cx79=_0x91d5[183];var _0xbc3cx7a=_0x91d5[368];_0xbc3cx78[_0x91d5[31]](function(_0xbc3cx7b){_0xbc3cx79+= util[_0x91d5[59]](_0x91d5[369],_0xbc3cx7b[_0x91d5[222]])});fs[_0x91d5[363]](path[_0x91d5[358]](config[_0x91d5[357]],_0xbc3cx7a),_0xbc3cx79,{flags:_0x91d5[359],mode:parseInt(_0x91d5[360],8)},function(_0xbc3cx19){if(_0xbc3cx19){throw _0xbc3cx19};amiCommand(_0x91d5[361]);logger[_0x91d5[73]](_0x91d5[370])})})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[367],_0xbc3cx19)});default:logger[_0x91d5[27]](_0x91d5[372],_0xbc3cx73[_0x91d5[192]])}}function amiCommand(_0xbc3cx7d){return amiAction({Action:_0x91d5[338],command:_0xbc3cx7d})[_0x91d5[32]](function(_0xbc3cx58){logger[_0x91d5[73]](_0x91d5[373],_0xbc3cx7d,_0xbc3cx58)})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[373],_0xbc3cx7d,_0xbc3cx19)})}function trunksRewrite(){var _0xbc3cx7f=_0x91d5[183];var _0xbc3cx80=_0x91d5[183];var _0xbc3cx81=_0x91d5[374];return models[_0x91d5[34]][_0x91d5[33]]({where:{active:true},raw:true})[_0x91d5[32]](function(_0xbc3cx1a){activeTrunks= {};_0xbc3cx1a[_0x91d5[31]](function(_0xbc3cx82){activeTrunks[_0xbc3cx82[_0x91d5[29]]]= _0xbc3cx82[_0x91d5[30]];delete _0xbc3cx82[_0x91d5[375]];delete _0xbc3cx82[_0x91d5[345]];delete _0xbc3cx82[_0x91d5[376]];delete _0xbc3cx82[_0x91d5[377]];delete _0xbc3cx82[_0x91d5[83]];if(_0xbc3cx82[_0x91d5[85]]){_0xbc3cx80+= util[_0x91d5[59]](_0xbc3cx81,_0xbc3cx82[_0x91d5[85]])};delete _0xbc3cx82[_0x91d5[85]];_0xbc3cx7f+= util[_0x91d5[59]](_0x91d5[378],_0xbc3cx82[_0x91d5[29]]);if(_0xbc3cx82[_0x91d5[379]]){_0xbc3cx7f+= util[_0x91d5[59]](_0x91d5[380],_0xbc3cx82[_0x91d5[379]]);delete _0xbc3cx82[_0x91d5[379]]};for(var _0xbc3cx30 in _0xbc3cx82){if(_0xbc3cx82[_0xbc3cx30]){switch(_0xbc3cx30){case _0x91d5[383]:var _0xbc3cx83=_0xbc3cx82[_0xbc3cx30][_0x91d5[102]](_0x91d5[381]);_0xbc3cx83[_0x91d5[31]](function(_0xbc3cx40){_0xbc3cx7f+= util[_0x91d5[59]](_0x91d5[382],_0xbc3cx30,_0xbc3cx40)});break;default:_0xbc3cx7f+= util[_0x91d5[59]](_0x91d5[382],_0xbc3cx30,_0xbc3cx82[_0xbc3cx30])}}}});fs[_0x91d5[363]](path[_0x91d5[358]](config[_0x91d5[357]],_0x91d5[384]),_0xbc3cx7f,{flags:_0x91d5[359],mode:parseInt(_0x91d5[360],8)},function(_0xbc3cx19){if(_0xbc3cx19){throw _0xbc3cx19};logger[_0x91d5[73]](_0x91d5[385]);fs[_0x91d5[363]](path[_0x91d5[358]](config[_0x91d5[357]],_0x91d5[386]),_0xbc3cx80,{flags:_0x91d5[359],mode:parseInt(_0x91d5[360],8)},function(_0xbc3cx19){if(_0xbc3cx19){throw _0xbc3cx19};amiCommand(_0x91d5[361]);logger[_0x91d5[73]](_0x91d5[387])})})})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0xbc3cx19)})}function rewriteContexts(_0xbc3cx73,_0xbc3cx85){return function(){var _0xbc3cx86=_0x91d5[183];if(!_0xbc3cx85){_0xbc3cx86= util[_0x91d5[59]](_0x91d5[388],_0xbc3cx73[_0x91d5[29]],_0xbc3cx73[_0x91d5[29]])};return models[_0x91d5[393]][_0x91d5[33]]({where:{id:{$ne:_0xbc3cx73[_0x91d5[253]]}}})[_0x91d5[32]](function(_0xbc3cx87){_0xbc3cx87[_0x91d5[31]](function(_0xbc3cx82){_0xbc3cx86+= util[_0x91d5[59]](_0x91d5[388],_0xbc3cx82[_0x91d5[29]],_0xbc3cx82[_0x91d5[29]])});fs[_0x91d5[363]](path[_0x91d5[358]](config[_0x91d5[357]],_0x91d5[390]),_0xbc3cx86,{flags:_0x91d5[359],mode:parseInt(_0x91d5[360],8)},function(_0xbc3cx19){if(_0xbc3cx19){throw _0xbc3cx19};logger[_0x91d5[73]](_0x91d5[391]);amiCommand(_0x91d5[392])})})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[389],_0xbc3cx19)})}}function createHangup(_0xbc3cx73){return function(){logger[_0x91d5[73]](_0x91d5[394],_0xbc3cx73[_0x91d5[29]]);var _0xbc3cx47=[{context:_0xbc3cx73[_0x91d5[29]],exten:_0x91d5[395],priority:_0x91d5[396],VoiceContextId:_0xbc3cx73[_0x91d5[253]],type:_0x91d5[397],app:_0x91d5[398]},{context:_0xbc3cx73[_0x91d5[29]],exten:_0x91d5[399],priority:_0x91d5[396],VoiceContextId:_0xbc3cx73[_0x91d5[253]],type:_0x91d5[397],app:_0x91d5[398]}];return models[_0x91d5[402]][_0x91d5[263]](_0xbc3cx47)[_0x91d5[32]](function(){logger[_0x91d5[73]](_0x91d5[401])})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[400],_0xbc3cx19)})}}function rtpRewrite(_0xbc3cx47){if(_0xbc3cx47){var _0xbc3cx8a=_0x91d5[183];for(var _0xbc3cx30 in _0xbc3cx47){_0xbc3cx47[_0xbc3cx30]&& (_0xbc3cx8a+= util[_0x91d5[59]](_0x91d5[382],_0xbc3cx30,_0xbc3cx47[_0xbc3cx30]))};try{fs[_0x91d5[404]](path[_0x91d5[358]](config[_0x91d5[357]],_0x91d5[403]),_0xbc3cx8a,{flag:_0x91d5[359],mode:parseInt(_0x91d5[360],8)});logger[_0x91d5[73]](_0x91d5[405]);amiCommand(_0x91d5[406])}catch(err){logger[_0x91d5[27]](_0x91d5[407],err)}}else {logger[_0x91d5[27]](_0x91d5[408])}}function execRequest(_0xbc3cx73,_0xbc3cx8c,_0xbc3cx8d){return Util[_0x91d5[411]](_0xbc3cx73,_0xbc3cx8c,_0xbc3cx8d)[_0x91d5[32]](function(_0xbc3cx8e){faxLogger[_0x91d5[73]](_0x91d5[410])})[_0x91d5[28]](function(_0xbc3cx19){faxLogger[_0x91d5[27]](_0x91d5[409],_0xbc3cx19)})}function webhook(_0xbc3cx73,_0xbc3cx90,_0xbc3cx91){switch(_0xbc3cx91){case _0x91d5[419]:if(_0xbc3cx90[_0x91d5[412]]&& _0xbc3cx90[_0x91d5[413]]){faxLogger[_0x91d5[73]](_0x91d5[414]+ _0xbc3cx90[_0x91d5[29]]+ _0x91d5[415]);execRequest(_0xbc3cx73,_0xbc3cx90[_0x91d5[412]],_0xbc3cx90[_0x91d5[413]])};if(_0xbc3cx90[_0x91d5[416]][_0x91d5[335]]){_[_0x91d5[31]](_0xbc3cx90[_0x91d5[416]],function(_0xbc3cx38){if(_0xbc3cx38[_0x91d5[417]]){Util[_0x91d5[418]](_0xbc3cx38,_0xbc3cx73)}})};break;case _0x91d5[423]:if(_0xbc3cx90[_0x91d5[420]]&& _0xbc3cx90[_0x91d5[421]]){faxLogger[_0x91d5[73]](_0x91d5[414]+ _0xbc3cx90[_0x91d5[29]]+ _0x91d5[422]);execRequest(_0xbc3cx73,_0xbc3cx90[_0x91d5[420]],_0xbc3cx90[_0x91d5[421]])};break;case _0x91d5[77]:if(_0xbc3cx90[_0x91d5[424]]&& _0xbc3cx90[_0x91d5[425]]){faxLogger[_0x91d5[73]](_0x91d5[414]+ _0xbc3cx90[_0x91d5[29]]+ _0x91d5[426]);execRequest(_0xbc3cx73,_0xbc3cx90[_0x91d5[424]],_0xbc3cx90[_0x91d5[425]])};break;default:faxLogger[_0x91d5[27]](_0x91d5[427])}}function getFaxRoom(){return function(_0xbc3cx90,_0xbc3cx93){if(_0xbc3cx93[_0x91d5[428]]){return models[_0x91d5[429]][_0x91d5[310]](_0xbc3cx93.FaxRoomId)}else {return models[_0x91d5[429]][_0x91d5[33]]({limit:1,where:{contact:_0xbc3cx93[_0x91d5[432]],FaxAccountId:_0xbc3cx90[_0x91d5[253]]},order:[[_0x91d5[375],_0x91d5[434]]]})[_0x91d5[32]](function(_0xbc3cx94){var _0xbc3cx95=_[_0x91d5[430]](_0xbc3cx94);if(!_0xbc3cx95|| _0xbc3cx95[_0x91d5[377]]=== _0x91d5[431]){return models[_0x91d5[429]][_0x91d5[63]]({contact:_0xbc3cx93[_0x91d5[432]],account:_0xbc3cx90[_0x91d5[29]],status:_0x91d5[433],FaxAccountId:_0xbc3cx90[_0x91d5[253]]})}else {return _0xbc3cx95}})}}}function sendFax(_0xbc3cx97,_0xbc3cx98,_0xbc3cx99){if(_0xbc3cx97[_0x91d5[377]]=== _0x91d5[435]){faxLogger[_0x91d5[438]](util[_0x91d5[59]](_0x91d5[436],_0xbc3cx97[_0x91d5[437]],_0xbc3cx97[_0x91d5[432]]));var _0xbc3cx9a;var _0xbc3cx9b=_0xbc3cx97;var _0xbc3cx9c=_0xbc3cx97[_0x91d5[437]];var _0xbc3cx9d=_0xbc3cx97[_0x91d5[432]];var _0xbc3cx9e;var _0xbc3cx9f;var _0xbc3cxa0,_0xbc3cxa1;return models[_0x91d5[489]][_0x91d5[274]]({where:{localstationid:_0xbc3cx9b[_0x91d5[437]]}})[_0x91d5[32]](function(_0xbc3cxa5){if(!_0xbc3cxa5){throw  new Error(_0x91d5[486])};faxLogger[_0x91d5[73]](_0x91d5[487],_0xbc3cxa5[_0x91d5[450]]);_0xbc3cx9e= _[_0x91d5[147]](_0xbc3cxa5[_0x91d5[266]]);return models[_0x91d5[34]][_0x91d5[274]]({where:{name:_0xbc3cx9e[_0x91d5[488]]},attributes:[_0x91d5[29]]})})[_0x91d5[32]](function(_0xbc3cx1b){if(!_0xbc3cx1b){throw  new Error(_0x91d5[484])};faxLogger[_0x91d5[73]](_0x91d5[485],_0xbc3cx1b[_0x91d5[29]]);_0xbc3cx9f= _[_0x91d5[147]](_0xbc3cx1b[_0x91d5[266]]);return})[_0x91d5[32]](function(){return [_0xbc3cx9e,_0xbc3cx9b]})[_0x91d5[474]](getFaxRoom())[_0x91d5[32]](function(_0xbc3cxa4){if(!_0xbc3cxa4){throw  new Error(_0x91d5[481])};faxLogger[_0x91d5[73]](_0x91d5[482],_0xbc3cxa4[_0x91d5[253]]);_0xbc3cx9a= _0xbc3cxa4;return _0xbc3cx9a[_0x91d5[483]](_0xbc3cx9b[_0x91d5[253]])})[_0x91d5[32]](function(){return _0xbc3cx9a[_0x91d5[269]]({status:_0x91d5[433],lastEvent:_0x91d5[435],lastEventAt:moment()[_0x91d5[59]](_0x91d5[58]),faxOut:++_0xbc3cx9a[_0x91d5[479]]},{individualHooks:true,user:_0xbc3cx99[_0x91d5[480]]})})[_0x91d5[32]](function(_0xbc3cx47){faxLogger[_0x91d5[73]](_0x91d5[477],_0xbc3cx47[_0x91d5[253]]);return _0xbc3cx9a[_0x91d5[478]](_0xbc3cx9b.UserId)})[_0x91d5[32]](function(){return models[_0x91d5[311]][_0x91d5[310]](_0xbc3cx9b.UserId)})[_0x91d5[32]](function(){if(_0xbc3cx9e[_0x91d5[475]]){return models[_0x91d5[476]][_0x91d5[293]]({where:{ListId:_0xbc3cx9e[_0x91d5[475]],$or:[{phone:_0xbc3cx9d},{fax:_0xbc3cx9d}]},defaults:{fax:_0xbc3cx9d,phone:_0xbc3cx9d,firstName:_0xbc3cx9d,ListId:_0xbc3cx9e[_0x91d5[475]]}})}else {return []}})[_0x91d5[474]](function(_0xbc3cxa2,_0xbc3cxa3){if(_0xbc3cxa3!== undefined&&  !_0xbc3cxa3){return _0xbc3cxa2[_0x91d5[269]]({fax:_0xbc3cx9d})};return})[_0x91d5[32]](function(){_0xbc3cxa0= _0xbc3cx9b[_0x91d5[461]][0][_0x91d5[6]];if(_0xbc3cx9b[_0x91d5[461]][0][_0x91d5[192]]=== _0x91d5[462]){_0xbc3cxa1= path[_0x91d5[358]](config[_0x91d5[463]],_0x91d5[464],_0x91d5[465],_0x91d5[16],_0x91d5[194],_0x91d5[466],_0x91d5[467],path[_0x91d5[468]](_0xbc3cxa0)[_0x91d5[29]]+ _0x91d5[469]);return exec(_0x91d5[470]+ _0xbc3cxa1+ _0x91d5[471]+ _0xbc3cxa0)}else {_0xbc3cxa1= path[_0x91d5[358]](config[_0x91d5[463]],_0x91d5[464],_0x91d5[465],_0x91d5[16],_0x91d5[194],_0x91d5[466],_0x91d5[467],path[_0x91d5[468]](_0xbc3cxa0)[_0x91d5[472]]);fse[_0x91d5[473]](_0xbc3cxa0,_0xbc3cxa1);return}})[_0x91d5[32]](function(){fs[_0x91d5[459]](_0xbc3cxa1,511);faxLogger[_0x91d5[73]](_0x91d5[460]);return models[_0x91d5[443]][_0x91d5[265]]({filename:_0xbc3cxa1,localstationid:_0xbc3cx9b[_0x91d5[437]],retry:_0xbc3cx98},{where:{id:_0xbc3cx9b[_0x91d5[253]]}})})[_0x91d5[32]](function(_0xbc3cx97){return amiAction({action:_0x91d5[446],channel:util[_0x91d5[59]](_0x91d5[447],_0xbc3cx9e[_0x91d5[448]],_0xbc3cx9f[_0x91d5[29]],_0xbc3cx9d),exten:_0xbc3cx9d,context:_0x91d5[449],priority:1,callerid:util[_0x91d5[59]](_0x91d5[180],_0xbc3cx9e[_0x91d5[450]],_0xbc3cx9e[_0x91d5[450]]),variable:{FAXNAME:_0xbc3cx9e[_0x91d5[29]],FAXNUMBER:_0xbc3cx9d,FAXECM:_0xbc3cx9e[_0x91d5[451]],FAXHEADERINFO:_0xbc3cx9e[_0x91d5[452]],FAXLOCALSTATIONID:_0xbc3cx9e[_0x91d5[450]],FAXMINRATE:_0xbc3cx9e[_0x91d5[453]],FAXMAXRATE:_0xbc3cx9e[_0x91d5[454]],FAXMODEM:util[_0x91d5[59]](_0x91d5[455],_0xbc3cx9e[_0x91d5[456]]),FAXGATEWAY:_0xbc3cx9e[_0x91d5[457]],FAXT38TIMEOUT:_0xbc3cx9e[_0x91d5[458]],FAXOUTFILE:_0xbc3cxa1},account:_0xbc3cx9e[_0x91d5[450]]})})[_0x91d5[32]](function(_0xbc3cx58){faxLogger[_0x91d5[438]](_0x91d5[444]);faxLogger[_0x91d5[73]](_0x91d5[445],_0xbc3cx58)})[_0x91d5[28]](function(_0xbc3cx19){faxLogger[_0x91d5[27]](_0x91d5[439],_0xbc3cx19);faxLogger[_0x91d5[27]](_0x91d5[440],_0xbc3cx19[_0x91d5[281]]);faxLogger[_0x91d5[27]](_0x91d5[441],_0xbc3cx19[_0x91d5[26]]);return models[_0x91d5[443]][_0x91d5[265]]({status:_0x91d5[171]},{where:{id:_0xbc3cx9b[_0x91d5[253]]}})[_0x91d5[32]](function(_0xbc3cx47){if(_0xbc3cx9a){return _0xbc3cx9a[_0x91d5[269]]({lastEvent:_0x91d5[171]})};return})[_0x91d5[28]](function(_0xbc3cx19){faxLogger[_0x91d5[27]](_0x91d5[442],_0xbc3cx19);faxLogger[_0x91d5[27]](_0x91d5[440],_0xbc3cx19[_0x91d5[281]]);faxLogger[_0x91d5[27]](_0x91d5[441],_0xbc3cx19[_0x91d5[26]])})})}}models[_0x91d5[443]][_0x91d5[490]](function(_0xbc3cx73,_0xbc3cx37){sendFax(_0xbc3cx73[_0x91d5[266]],0,_0xbc3cx37)});models[_0x91d5[443]][_0x91d5[493]](function(_0xbc3cx73,_0xbc3cx37){if(_0xbc3cx73[_0x91d5[491]](_0x91d5[377])&& _0xbc3cx73[_0x91d5[377]]=== _0x91d5[435]){sendFax(_0xbc3cx73[_0x91d5[266]],_0xbc3cx73[_0x91d5[492]]+ 1,_0xbc3cx37)}});models[_0x91d5[429]][_0x91d5[493]](function(_0xbc3cx73){var _0xbc3cxa6=_[_0x91d5[495]](faxaccounts,{id:_0xbc3cx73[_0x91d5[494]]});if(_0xbc3cxa6&& _0xbc3cx73[_0x91d5[491]](_0x91d5[377])&& _0xbc3cx73[_0x91d5[377]]=== _0x91d5[431]){webhook(_0xbc3cx73[_0x91d5[266]],_0xbc3cxa6,_0x91d5[77])}});models[_0x91d5[496]][_0x91d5[490]](function(_0xbc3cx73,_0xbc3cx37){onSave(_0xbc3cx73,_0xbc3cx37)});models[_0x91d5[489]][_0x91d5[33]]({raw:true})[_0x91d5[32]](function(_0xbc3cxa7){faxaccounts= _0xbc3cxa7})[_0x91d5[28]](function(_0xbc3cx19){faxLogger[_0x91d5[27]](_0x91d5[497],_0xbc3cx19)});function addToCollection(_0xbc3cxa9,_0xbc3cxaa){_0xbc3cxa9[_0x91d5[262]](_0xbc3cxaa)}function updateCollection(_0xbc3cxa9,_0xbc3cxaa){var _0xbc3cxac=_[_0x91d5[495]](_0xbc3cxa9,{id:_0xbc3cxaa[_0x91d5[253]]});if(_0xbc3cxac){_[_0x91d5[267]](_0xbc3cxac,_0xbc3cxaa)}else {_0xbc3cxa9[_0x91d5[498]](_0xbc3cxaa)}}function removeFromCollection(_0xbc3cxa9,_0xbc3cxaa){_[_0x91d5[499]](_0xbc3cxa9,{id:_0xbc3cxaa[_0x91d5[253]]})}function getWidgets(_0xbc3cxaf){_0xbc3cxaf= JSON[_0x91d5[468]](_0xbc3cxaf|| _0x91d5[500]);var _0xbc3cxb0=[];if(_0xbc3cxaf[_0x91d5[501]]){_[_0x91d5[31]](_0xbc3cxaf[_0x91d5[501]],function(_0xbc3cxb1){_0xbc3cxb0[_0x91d5[262]](_[_0x91d5[505]](_[_0x91d5[504]](_0xbc3cxb1[_0x91d5[502]],_0x91d5[503])))});if(_0xbc3cxb0[_0x91d5[335]]){var _0xbc3cxb2=[];_[_0x91d5[31]](_0xbc3cxb0,function(_0xbc3cxb3){_[_0x91d5[31]](_0xbc3cxb3,function(_0xbc3cxb4){_[_0x91d5[193]]([_0x91d5[506],_0x91d5[507],_0x91d5[508]],_0xbc3cxb4[_0x91d5[192]])&& _0xbc3cxb2[_0x91d5[262]]({config:{select:_0xbc3cxb4[_0x91d5[510]][_0x91d5[509]],fields:_0xbc3cxb4[_0x91d5[510]][_0x91d5[511]],condition:_0xbc3cxb4[_0x91d5[510]][_0x91d5[512]],table:_0xbc3cxb4[_0x91d5[510]][_0x91d5[514]][_0x91d5[223]](_0x91d5[513],_0x91d5[183])},id:_0xbc3cxb4[_0x91d5[515]],type:_0xbc3cxb4[_0x91d5[192]]})})});return (_0xbc3cxb2[_0x91d5[335]]?_0xbc3cxb2:null)};return null};return null}function toAddDate(_0xbc3cxb6){switch(_0xbc3cxb6){case _0x91d5[516]:;case _0x91d5[517]:;case _0x91d5[518]:;case _0x91d5[519]:;case _0x91d5[520]:;case _0x91d5[521]:;case _0x91d5[522]:;case _0x91d5[523]:;case _0x91d5[524]:;case _0x91d5[525]:;case _0x91d5[526]:;case _0x91d5[527]:;case _0x91d5[528]:;case _0x91d5[529]:return false;default:return true}}function getCounterWidgetQuery(_0xbc3cxb8,_0xbc3cx5d){return Promise[_0x91d5[289]]()[_0x91d5[32]](function(){return _0xbc3cxb8[_0x91d5[506]]})[_0x91d5[32]](reportBuildUtils[_0x91d5[545]](_0xbc3cx5d))[_0x91d5[32]](function(_0xbc3cxb9){var _0xbc3cxba=util[_0x91d5[59]](_0x91d5[531],_0xbc3cxb8[_0x91d5[509]],_0xbc3cxb8[_0x91d5[506]]);if(_0xbc3cxb8[_0x91d5[512]]&& _0xbc3cxb8[_0x91d5[512]]!== _0x91d5[532]){_0xbc3cxba+= util[_0x91d5[59]](_0x91d5[533],decodeURIComponent(_0xbc3cxb8[_0x91d5[512]]))};if(toAddDate(_0xbc3cxb8[_0x91d5[506]])){_0xbc3cxba+= util[_0x91d5[59]]((_0xbc3cxb8[_0x91d5[512]]&& _0xbc3cxb8[_0x91d5[512]]!== _0x91d5[532])?_0x91d5[534]:_0x91d5[535],moment()[_0x91d5[537]](_0x91d5[536])[_0x91d5[59]](_0x91d5[58]))};if(!_0xbc3cxb9|| _0xbc3cxb9!== _0x91d5[538]){if(_0xbc3cxb9){_0xbc3cxba+= _0xbc3cxb8[_0x91d5[512]]?_0x91d5[539]+ _0xbc3cxb9:_0x91d5[540]+ _0xbc3cxb9};logger[_0x91d5[73]](_0x91d5[541]);logger[_0x91d5[73]](_0xbc3cxba);logger[_0x91d5[73]](_0x91d5[542]);return _0xbc3cxba}else {logger[_0x91d5[27]](_0x91d5[543]);logger[_0x91d5[27]](_0x91d5[544]);logger[_0x91d5[27]](_0x91d5[542]);return []}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[530],_0xbc3cx19[_0x91d5[26]])})}function getPieChartWidgetQuery(_0xbc3cxb8,_0xbc3cx5d){return Promise[_0x91d5[277]]([])[_0x91d5[32]](function(){return _0xbc3cxb8[_0x91d5[506]]})[_0x91d5[32]](reportBuildUtils[_0x91d5[545]](_0xbc3cx5d))[_0x91d5[32]](function(_0xbc3cxb9){var _0xbc3cxbc=[];var _0xbc3cx40;if(_0xbc3cxb8[_0x91d5[511]]){if(_[_0x91d5[547]](_0xbc3cxb8[_0x91d5[511]])){_0xbc3cxb8[_0x91d5[511]][_0x91d5[31]](function(_0xbc3cx82){if(_0xbc3cx82[_0x91d5[548]]&& _0xbc3cx82[_0x91d5[549]]){_0xbc3cxbc[_0x91d5[262]](_0xbc3cx82[_0x91d5[548]]+ _0x91d5[550]+ _0xbc3cx82[_0x91d5[549]]+ _0x91d5[551])}})}else {if(_[_0x91d5[552]](_0xbc3cxb8[_0x91d5[511]])){var _0xbc3cx82=JSON[_0x91d5[468]](_0xbc3cxb8[_0x91d5[511]]);if(_0xbc3cx82[_0x91d5[548]]&& _0xbc3cx82[_0x91d5[549]]){_0xbc3cxbc[_0x91d5[262]](_0xbc3cx82[_0x91d5[548]]+ _0x91d5[550]+ _0xbc3cx82[_0x91d5[549]]+ _0x91d5[551])}}}};var _0xbc3cxbd=_0xbc3cxbc[_0x91d5[335]]?_0xbc3cxbc[_0x91d5[358]](_0x91d5[101]):_0x91d5[553];var _0xbc3cxbe=_0x91d5[183];if(_0xbc3cxb8[_0x91d5[512]]&& _0xbc3cxb8[_0x91d5[512]]!== _0x91d5[554]&& _0xbc3cxb8[_0x91d5[512]]!== _0x91d5[532]){_0xbc3cxbe= util[_0x91d5[59]](_0x91d5[533],decodeURIComponent(_0xbc3cxb8[_0x91d5[512]]))};if(toAddDate(_0xbc3cxb8[_0x91d5[506]])){_0xbc3cxbe+= util[_0x91d5[59]]((_0xbc3cxb8[_0x91d5[512]]&& _0xbc3cxb8[_0x91d5[512]]!== _0x91d5[532])?_0x91d5[534]:_0x91d5[535],moment()[_0x91d5[537]](_0x91d5[536])[_0x91d5[59]](_0x91d5[58]))};if(!_0xbc3cxb9|| _0xbc3cxb9!== _0x91d5[538]){if(_0xbc3cxb9){_0xbc3cxbe+= _0xbc3cxbe?_0x91d5[539]+ _0xbc3cxb9:_0x91d5[540]+ _0xbc3cxb9};var _0xbc3cxba=util[_0x91d5[59]](_0x91d5[555],_0xbc3cxbd,_0xbc3cxb8[_0x91d5[506]],_0xbc3cxbe);logger[_0x91d5[73]](_0x91d5[541]);logger[_0x91d5[73]](_0xbc3cxba);logger[_0x91d5[73]](_0x91d5[542]);return _0xbc3cxba}else {logger[_0x91d5[27]](_0x91d5[543]);logger[_0x91d5[27]](_0x91d5[544]);logger[_0x91d5[27]](_0x91d5[542]);return []}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[546],_0xbc3cx19[_0x91d5[26]])})}function getWidgetQuery(_0xbc3cxb8,_0xbc3cx5d){switch(_0xbc3cxb8[_0x91d5[192]]){case _0x91d5[508]:return getCounterWidgetQuery(_0xbc3cxb8[_0x91d5[510]],_0xbc3cx5d);case _0x91d5[507]:return getPieChartWidgetQuery(_0xbc3cxb8[_0x91d5[510]],_0xbc3cx5d);default:return Promise[_0x91d5[289]]()[_0x91d5[32]](function(){return null})}}function getCustomDashboardValues(_0xbc3cxc1,_0xbc3cx5d){var _0xbc3cxc2={};var _0xbc3cxc3=[],_0xbc3cxc4=[],_0xbc3cxba;return models[_0x91d5[567]][_0x91d5[310]](_0xbc3cxc1)[_0x91d5[32]](function(_0xbc3cxc5){if(!_0xbc3cxc5){logger[_0x91d5[27]](_0x91d5[559],_0xbc3cxc1,_0x91d5[560]);return};var _0xbc3cxb2=getWidgets(_0xbc3cxc5[_0x91d5[561]]);if(_0xbc3cxb2){_[_0x91d5[31]](_0xbc3cxb2,function(_0xbc3cxb8){_0xbc3cxc3[_0x91d5[262]](getWidgetQuery(_0xbc3cxb8,_0xbc3cx5d)[_0x91d5[32]](function(_0xbc3cxba){_0xbc3cxc4[_0x91d5[262]](Promise[_0x91d5[289]]()[_0x91d5[32]](function(){if(_0xbc3cxba){return models[_0x91d5[565]][_0x91d5[566]](_0xbc3cxba,{type:models[_0x91d5[565]][_0x91d5[564]][_0x91d5[563]]})}else {return []}})[_0x91d5[32]](function(_0xbc3cx58){_0xbc3cxc2[_0xbc3cxb8[_0x91d5[253]]]= _0xbc3cx58})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[562],_0xbc3cxb8[_0x91d5[253]],_0xbc3cx19);_0xbc3cxc2[_0xbc3cxb8[_0x91d5[253]]]= []}))}))});return _0xbc3cxc3};return []})[_0x91d5[277]]()[_0x91d5[32]](function(){return _0xbc3cxc4})[_0x91d5[277]]()[_0x91d5[32]](function(){if(!_[_0x91d5[557]](_0xbc3cxc2)){return events[_0x91d5[558]](_0xbc3cxc2,_0xbc3cx5d)}})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[556],_0xbc3cxc1,_0xbc3cx19)})}process[_0x91d5[74]](_0x91d5[281],function(_0xbc3cxc6){switch(_0xbc3cxc6[_0x91d5[281]]){case _0x91d5[568]:;case _0x91d5[569]:;case _0x91d5[571]:networkRewrite(_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[573]:return BPromise[_0x91d5[289]]()[_0x91d5[32]](rewriteContexts(_0xbc3cxc6[_0x91d5[570]],false))[_0x91d5[32]](createHangup(_0xbc3cxc6[_0x91d5[570]]))[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[572],_0xbc3cx19)});case _0x91d5[575]:return BPromise[_0x91d5[289]]()[_0x91d5[32]](rewriteContexts(_0xbc3cxc6[_0x91d5[570]],true))[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[574],_0xbc3cx19)});case _0x91d5[576]:addToCollection(faxaccounts,_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[577]:updateCollection(faxaccounts,_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[578]:removeFromCollection(faxaccounts,_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[579]:trunksRewrite();break;case _0x91d5[580]:rtpRewrite(_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[581]:;case _0x91d5[582]:sendFax(_0xbc3cxc6[_0x91d5[570]],0,_0xbc3cxc6[_0x91d5[48]]);break;case _0x91d5[583]:var _0xbc3cxa6=_[_0x91d5[495]](faxaccounts,{id:_0xbc3cxc6[_0x91d5[570]][_0x91d5[494]]});if(_0xbc3cxa6){webhook(_0xbc3cxc6[_0x91d5[570]],_0xbc3cxa6,_0xbc3cxc6[_0x91d5[41]])};break;case _0x91d5[585]:return amiAction({action:_0x91d5[338],command:_0xbc3cxc6[_0x91d5[587]]})[_0x91d5[32]](function(_0xbc3cx6a){return events[_0x91d5[585]]({type:_0x91d5[586],data:_0xbc3cx6a,socket:_0xbc3cxc6[_0x91d5[584]]})})[_0x91d5[28]](function(_0xbc3cx19){events[_0x91d5[585]]({type:_0x91d5[27],data:_0xbc3cx19,socket:_0xbc3cxc6[_0x91d5[584]]})});case _0x91d5[592]:return amiAction(_0xbc3cxc6[_0x91d5[41]])[_0x91d5[32]](function(_0xbc3cx6a){events[_0x91d5[272]](_0xbc3cxc6[_0x91d5[291]],_0xbc3cxc6[_0x91d5[271]],_0xbc3cxc6[_0x91d5[41]][_0x91d5[589]]);logger[_0x91d5[438]](util[_0x91d5[59]](_0x91d5[590],_0xbc3cxc6[_0x91d5[291]],_0xbc3cxc6[_0x91d5[41]][_0x91d5[589]]?_0x91d5[589]:_0x91d5[591]))})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](util[_0x91d5[59]](_0x91d5[588],_0xbc3cxc6[_0x91d5[291]],_0xbc3cxc6[_0x91d5[41]][_0x91d5[589]]?_0x91d5[312]:_0x91d5[313]),_0xbc3cx19)});case _0x91d5[594]:var _0xbc3cx90=_[_0x91d5[495]](faxaccounts,{id:parseInt(_0xbc3cxc6[_0x91d5[570]][_0x91d5[593]])});if(_0xbc3cx90){webhook(_0xbc3cxc6[_0x91d5[570]],_0xbc3cx90,_0xbc3cxc6[_0x91d5[41]])};break;case _0x91d5[595]:return onSave(_0xbc3cxc6[_0x91d5[570]],_0xbc3cxc6[_0x91d5[48]]);case _0x91d5[596]:return events[_0x91d5[596]](_0xbc3cxc6[_0x91d5[294]]);case _0x91d5[597]:;case _0x91d5[598]:;case _0x91d5[599]:;case _0x91d5[600]:;case _0x91d5[601]:;case _0x91d5[602]:;case _0x91d5[603]:;case _0x91d5[604]:;case _0x91d5[605]:;case _0x91d5[606]:;case _0x91d5[607]:;case _0x91d5[609]:return events[_0x91d5[608]](_0xbc3cxc6);case _0x91d5[611]:return BPromise[_0x91d5[289]]()[_0x91d5[32]](function(){return amiUtil[_0x91d5[611]](amiAction,_0xbc3cxc6[_0x91d5[570]])})[_0x91d5[28]](function(_0xbc3cx19){logger[_0x91d5[27]](_0x91d5[610],_0xbc3cx19)});case _0x91d5[612]:;case _0x91d5[613]:;case _0x91d5[614]:;case _0x91d5[615]:;case _0x91d5[616]:;case _0x91d5[617]:;case _0x91d5[618]:;case _0x91d5[619]:;case _0x91d5[620]:;case _0x91d5[622]:return events[_0x91d5[621]](_0xbc3cxc6);case _0x91d5[627]:switch(_0xbc3cxc6[_0x91d5[506]]){case _0x91d5[624]:return events[_0x91d5[623]]();case _0x91d5[626]:return events[_0x91d5[625]]();default:};break;case _0x91d5[628]:newexten(_0xbc3cxc6[_0x91d5[52]],true);break;case _0x91d5[629]:addToCollection(voiceQueues,_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[630]:updateCollection(voiceQueues,_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[631]:removeFromCollection(voiceQueues,_0xbc3cxc6[_0x91d5[570]]);break;case _0x91d5[632]:getCustomDashboardValues(_0xbc3cxc6[_0x91d5[253]],_0xbc3cxc6[_0x91d5[480]]);break;default:}})