1d35d876ed7233b7ec3730f9719a5ebf197820f3
[motion.git] / server / config / ami / ami.js
1 var _0x61a2=["\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","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\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"];_0x61a2[0];var _=require(_0x61a2[1]);var BPromise=require(_0x61a2[2]);var util=require(_0x61a2[3]);var moment=require(_0x61a2[4]);var fs=require(_0x61a2[5]);var path=require(_0x61a2[6]);var Util=require(_0x61a2[7]);var amiUtil=require(_0x61a2[8]);var exec=require(_0x61a2[10])[_0x61a2[9]];var fse=require(_0x61a2[11]);var kue=require(_0x61a2[12]);var reportBuildUtils=require(_0x61a2[13]);var logger=require(_0x61a2[15])(_0x61a2[14]);var faxLogger=require(_0x61a2[15])(_0x61a2[16]);var config=require(_0x61a2[17]);var events=require(_0x61a2[18]);var models=require(_0x61a2[19]);var channels=[_0x61a2[20],_0x61a2[21],_0x61a2[22],_0x61a2[16],_0x61a2[23],_0x61a2[24]];var faxaccounts=[];var bill=[];var voiceQueues=[];var activeTrunks={};var videoOnUrls={};var extraVars={};models[_0x61a2[34]][_0x61a2[33]]({where:{active:true},attributes:[_0x61a2[29],_0x61a2[30]],raw:true})[_0x61a2[32]](function(_0xa8a3x1a){_[_0x61a2[31]](_0xa8a3x1a,function(_0xa8a3x1b){activeTrunks[_0xa8a3x1b[_0x61a2[29]]]= _0xa8a3x1b[_0x61a2[30]]})})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[25],_0xa8a3x19[_0x61a2[26]])});var ami= new require(_0x61a2[40])(config[_0x61a2[36]][_0x61a2[35]],config[_0x61a2[36]][_0x61a2[37]],config[_0x61a2[36]][_0x61a2[38]],config[_0x61a2[36]][_0x61a2[39]],true);var amiAction=BPromise[_0x61a2[42]](ami[_0x61a2[41]]);var kueConfig={prefix:_0x61a2[43],jobEvents:false,redis:{port:6379,host:config[_0x61a2[44]]}};if(config[_0x61a2[45]]){kueConfig[_0x61a2[47]][_0x61a2[46]]= _0x61a2[39];kueConfig[_0x61a2[47]][_0x61a2[48]]= {password:config[_0x61a2[45]]}};var q=kue[_0x61a2[49]](kueConfig);q[_0x61a2[56]](_0x61a2[50],function(_0xa8a3x20,_0xa8a3x21){try{events[_0xa8a3x20[_0x61a2[53]][_0x61a2[29]]](_0xa8a3x20[_0x61a2[53]][_0x61a2[52]],_0xa8a3x20[_0x61a2[53]][_0x61a2[54]]?amiAction:undefined)[_0x61a2[51]](function(){_0xa8a3x21()})}catch(e){logger[_0x61a2[27]](_0x61a2[55],_0xa8a3x20[_0x61a2[53]][_0x61a2[29]],e)}});function addToQueue(_0xa8a3x23,_0xa8a3x24,_0xa8a3x25){_0xa8a3x24[_0x61a2[57]]= moment()[_0x61a2[59]](_0x61a2[58]);q[_0x61a2[63]](_0x61a2[50],{name:_0xa8a3x23,evt:_0xa8a3x24,needAmi:_0xa8a3x25})[_0x61a2[62]](true)[_0x61a2[61]](function(_0xa8a3x19){if(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[60],_0xa8a3x19)}else {}})}models[_0x61a2[65]][_0x61a2[33]]({raw:true})[_0x61a2[32]](function(_0xa8a3x26){voiceQueues= _0xa8a3x26})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[64],_0xa8a3x19)});ami[_0x61a2[66]]();setInterval(function(){if(global[_0x61a2[67]]){global[_0x61a2[67]]()}else {logger[_0x61a2[70]](_0x61a2[68]+ _0x61a2[69])}},20000);process[_0x61a2[74]](_0x61a2[71],function(_0xa8a3x27){logger[_0x61a2[73]](_0x61a2[72],_0xa8a3x27)});ami[_0x61a2[74]](_0x61a2[75],events[_0x61a2[75]]);ami[_0x61a2[74]](_0x61a2[76],events[_0x61a2[76]]);ami[_0x61a2[74]](_0x61a2[77],events[_0x61a2[77]]);ami[_0x61a2[74]](_0x61a2[27],events[_0x61a2[27]]);ami[_0x61a2[74]](_0x61a2[78],function(_0xa8a3x24){try{addToQueue(_0x61a2[79],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[80],err)}});ami[_0x61a2[74]](_0x61a2[81],function(_0xa8a3x24){try{addToQueue(_0x61a2[81],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[82],err)}});ami[_0x61a2[74]](_0x61a2[83],function(_0xa8a3x24){try{addToQueue(_0x61a2[83],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[84],err)}});ami[_0x61a2[74]](_0x61a2[85],function(_0xa8a3x24){try{addToQueue(_0x61a2[85],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[86],err)}});ami[_0x61a2[74]](_0x61a2[87],function(_0xa8a3x24){try{if(extraVars[_0xa8a3x24[_0x61a2[88]]]){_0xa8a3x24[_0x61a2[89]]= extraVars[_0xa8a3x24[_0x61a2[88]]]};addToQueue(_0x61a2[87],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[90],err)}});ami[_0x61a2[74]](_0x61a2[91],function(_0xa8a3x24){try{if(extraVars[_0xa8a3x24[_0x61a2[88]]]){_0xa8a3x24[_0x61a2[89]]= extraVars[_0xa8a3x24[_0x61a2[88]]]};if(bill[_0xa8a3x24[_0x61a2[88]]]&& bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[88]]!== _0xa8a3x24[_0x61a2[88]]){if(!bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[92]]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[92]]= true}else {delete bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]];_0xa8a3x24[_0x61a2[88]]= bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[88]]}};addToQueue(_0x61a2[91],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[94],err)}});ami[_0x61a2[74]](_0x61a2[95],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[96]]]&& (bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[97]]=== _0x61a2[98]|| bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[99]]=== _0x61a2[98])&& bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[100]]){_0xa8a3x24[_0x61a2[98]]= bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[103]][_0x61a2[102]](_0x61a2[101])[0];_0xa8a3x24[_0x61a2[104]]= bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[100]][_0x61a2[102]](/\/|-/)[1];addToQueue(_0x61a2[95],_0xa8a3x24,true)}}catch(err){logger[_0x61a2[27]](_0x61a2[105],err)}});ami[_0x61a2[74]](_0x61a2[106],function(_0xa8a3x24){try{if(videoOnUrls[_0xa8a3x24[_0x61a2[88]]]){logger[_0x61a2[73]](_0x61a2[107],_0xa8a3x24[_0x61a2[88]],_0x61a2[108]);_0xa8a3x24[_0x61a2[109]]= videoOnUrls[_0xa8a3x24[_0x61a2[88]]];events[_0x61a2[110]](_0xa8a3x24)};if(extraVars[_0xa8a3x24[_0x61a2[88]]]){_0xa8a3x24[_0x61a2[89]]= extraVars[_0xa8a3x24[_0x61a2[88]]]};addToQueue(_0x61a2[106],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[111],err)}});ami[_0x61a2[74]](_0x61a2[112],events[_0x61a2[112]]);ami[_0x61a2[74]](_0x61a2[113],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[88]]]){var _0xa8a3x28=_0xa8a3x24[_0x61a2[114]][_0x61a2[102]](/\/|-/)[1];if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[115]][_0xa8a3x28]){_0xa8a3x24[_0x61a2[116]]= _0x61a2[117];delete bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[115]][_0xa8a3x28]}else {_0xa8a3x24[_0x61a2[116]]= _0x61a2[113]}};addToQueue(_0x61a2[113],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[118],err)}});ami[_0x61a2[74]](_0x61a2[119],function(_0xa8a3x24){try{addToQueue(_0x61a2[119],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[120],err)}});ami[_0x61a2[74]](_0x61a2[121],function(_0xa8a3x24){try{addToQueue(_0x61a2[121],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[122],err)}});ami[_0x61a2[74]](_0x61a2[123],function(_0xa8a3x24){try{addToQueue(_0x61a2[123],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[124],err)}});ami[_0x61a2[74]](_0x61a2[125],function(_0xa8a3x24){try{addToQueue(_0x61a2[125],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[126],err)}});ami[_0x61a2[74]](_0x61a2[127],function(_0xa8a3x24){try{addToQueue(_0x61a2[127],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[128],err)}});ami[_0x61a2[74]](_0x61a2[129],function(_0xa8a3x24){try{addToQueue(_0x61a2[129],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[130],err)}});ami[_0x61a2[74]](_0x61a2[131],function(_0xa8a3x24){try{addToQueue(_0x61a2[131],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[132],err)}});ami[_0x61a2[74]](_0x61a2[133],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[88]]]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[98]]= _0xa8a3x24[_0x61a2[98]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]]= true};addToQueue(_0x61a2[133],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[134],err)}});ami[_0x61a2[74]](_0x61a2[135],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[88]]]){_0xa8a3x24[_0x61a2[88]]= bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[88]]};addToQueue(_0x61a2[135],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[136],err)}});ami[_0x61a2[74]](_0x61a2[137],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[138]]]){bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[139]]= _0x61a2[137];bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[140]]= true;bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[141]]= _0x61a2[142];bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[143]]= _0xa8a3x24[_0x61a2[144]];bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[145]]= _0xa8a3x24[_0x61a2[146]];ami[_0x61a2[148]](_0x61a2[131],_[_0x61a2[147]](bill[_0xa8a3x24[_0x61a2[138]]]));bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[115]]= {};delete bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[139]];bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[149]]= true;_0xa8a3x24[_0x61a2[98]]= bill[_0xa8a3x24[_0x61a2[138]]][_0x61a2[98]]|| null};_0xa8a3x24[_0x61a2[104]]= _0xa8a3x24[_0x61a2[150]][_0x61a2[102]](/\/|-/)[1];addToQueue(_0x61a2[137],_0xa8a3x24,true)}catch(err){logger[_0x61a2[27]](_0x61a2[151],err)}});ami[_0x61a2[74]](_0x61a2[152],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[153]]]){bill[_0xa8a3x24[_0x61a2[153]]][_0x61a2[139]]= _0x61a2[152];bill[_0xa8a3x24[_0x61a2[153]]][_0x61a2[88]]= _0xa8a3x24[_0x61a2[144]];bill[_0xa8a3x24[_0x61a2[144]]]&& (bill[_0xa8a3x24[_0x61a2[144]]][_0x61a2[88]]= _0xa8a3x24[_0x61a2[153]]);ami[_0x61a2[148]](_0x61a2[131],_[_0x61a2[147]](bill[_0xa8a3x24[_0x61a2[153]]]));delete bill[_0xa8a3x24[_0x61a2[153]]][_0x61a2[93]];delete bill[_0xa8a3x24[_0x61a2[153]]][_0x61a2[139]];_0xa8a3x24[_0x61a2[98]]= bill[_0xa8a3x24[_0x61a2[153]]][_0x61a2[98]]|| null};_0xa8a3x24[_0x61a2[104]]= _0xa8a3x24[_0x61a2[154]][_0x61a2[102]](/\/|-/)[1];addToQueue(_0x61a2[152],_0xa8a3x24,true)}catch(err){logger[_0x61a2[27]](_0x61a2[155],err)}});ami[_0x61a2[74]](_0x61a2[156],function(_0xa8a3x24){try{addToQueue(_0x61a2[156],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[157],err)}});ami[_0x61a2[74]](_0x61a2[115],function(_0xa8a3x24){try{if(bill[_0xa8a3x24[_0x61a2[88]]]){var _0xa8a3x28=_0xa8a3x24[_0x61a2[114]][_0x61a2[102]](/\/|-/)[1];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[115]][_0xa8a3x28]= bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[115]][_0xa8a3x28]?false:true};addToQueue(_0x61a2[115],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[158],err)}});ami[_0x61a2[74]](_0x61a2[159],function(_0xa8a3x24){try{addToQueue(_0x61a2[159],_0xa8a3x24)}catch(err){faxLogger[_0x61a2[27]](_0x61a2[160],err)}});ami[_0x61a2[74]](_0x61a2[161],function(_0xa8a3x24){try{addToQueue(_0x61a2[161],_0xa8a3x24)}catch(err){faxLogger[_0x61a2[27]](_0x61a2[162],err)}});ami[_0x61a2[74]](_0x61a2[163],function(_0xa8a3x24){try{addToQueue(_0x61a2[163],_0xa8a3x24)}catch(err){faxLogger[_0x61a2[27]](_0x61a2[164],err)}});amiAction({action:_0x61a2[165]});var applications=[_0x61a2[166],_0x61a2[98],_0x61a2[167],_0x61a2[168],_0x61a2[169]];var dispositions=[_0x61a2[170],_0x61a2[171],_0x61a2[171],_0x61a2[170],_0x61a2[170],_0x61a2[170],_0x61a2[172],_0x61a2[173],_0x61a2[171],_0x61a2[171],_0x61a2[171]];function newchannel(_0xa8a3x24){if(!bill[_0xa8a3x24[_0x61a2[88]]]&&  !bill[_0xa8a3x24[_0x61a2[96]]]){bill[_0xa8a3x24[_0x61a2[88]]]= {uniqueid:_0xa8a3x24[_0x61a2[88]],linkedid:_0xa8a3x24[_0x61a2[96]],type:_0x61a2[174],tag:_0x61a2[175],accountcode:_0xa8a3x24[_0x61a2[176]],source:_0xa8a3x24[_0x61a2[177]],destination:_0xa8a3x24[_0x61a2[178]],destinationcontext:_0xa8a3x24[_0x61a2[179]],callerid:util[_0x61a2[59]](_0x61a2[180],_0xa8a3x24[_0x61a2[181]],_0xa8a3x24[_0x61a2[177]]),channel:_0xa8a3x24[_0x61a2[182]],destinationchannel:_0x61a2[183],lastapplication:_0x61a2[183],lastdata:_0x61a2[183],starttime:moment()[_0x61a2[59]](_0x61a2[58]),answertime:_0x61a2[183],endtime:_0x61a2[183],duration:0,billableseconds:0,disposition:dispositions[_[_0x61a2[185]](_0xa8a3x24[_0x61a2[184]])],amaflags:_0x61a2[186],unmanaged:false,calleridnum:_0xa8a3x24[_0x61a2[177]],calleridname:_0xa8a3x24[_0x61a2[181]],dialend:{}}}}function newstate(_0xa8a3x24){if(bill[_0xa8a3x24[_0x61a2[96]]]&& _0xa8a3x24[_0x61a2[88]]!== _0xa8a3x24[_0x61a2[96]]&& _0xa8a3x24[_0x61a2[184]]=== _0x61a2[187]){bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[188]]= moment()[_0x61a2[59]](_0x61a2[58]);delete bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[93]];bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[189]]= dispositions[_[_0x61a2[185]](_0xa8a3x24[_0x61a2[184]])];if(_[_0x61a2[193]]([_0x61a2[190],_0x61a2[191]],bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[192]])){bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[176]]= _0xa8a3x24[_0x61a2[176]]};if(!_[_0x61a2[193]]([_0x61a2[194],_0x61a2[191]],bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[192]])){bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[195]]= _0xa8a3x24[_0x61a2[196]];bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[197]]= util[_0x61a2[59]](_0x61a2[180],_0xa8a3x24[_0x61a2[198]],_0xa8a3x24[_0x61a2[196]])};bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[96]]= _0xa8a3x24[_0x61a2[88]];bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[100]]= _0xa8a3x24[_0x61a2[182]];bill[_0xa8a3x24[_0x61a2[96]]][_0x61a2[199]]= false}}function newexten(_0xa8a3x24,_0xa8a3x2e){if(bill[_0xa8a3x24[_0x61a2[88]]]){_0xa8a3x24[_0x61a2[200]]= _0xa8a3x24[_0x61a2[200]][_0x61a2[201]]();if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[97]]=== _0x61a2[98]|| bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[99]]=== _0x61a2[98]){if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]]&&  !bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[149]]){if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[202]]){ami[_0x61a2[148]](_0x61a2[203],_[_0x61a2[147]](bill[_0xa8a3x24[_0x61a2[88]]]))}else {if(!bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]= true;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[139]]= _0x61a2[204]};ami[_0x61a2[148]](_0x61a2[205],_[_0x61a2[147]](bill[_0xa8a3x24[_0x61a2[88]]]))}};bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[99]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[202]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[139]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[206]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[207]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[208]]= null};delete bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]];if(!_0xa8a3x2e){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[97]]= _0xa8a3x24[_0x61a2[200]];if(_[_0x61a2[193]](applications,_0xa8a3x24[_0x61a2[200]])){if(_0xa8a3x24[_0x61a2[200]]=== _0x61a2[166]){var _0xa8a3x2f=_0xa8a3x24[_0x61a2[209]][_0x61a2[201]]();if(_[_0x61a2[211]](_0xa8a3x2f,_0x61a2[210])){_0xa8a3x2f= _0xa8a3x2f[_0x61a2[102]](_0x61a2[212]);var _0xa8a3x30=_0xa8a3x2f[0][_0x61a2[213]](/cdr\((.*)\)/);if(_0xa8a3x30){bill[_0xa8a3x24[_0x61a2[88]]][_0xa8a3x30[1]]= _0xa8a3x2f[1];if(_0xa8a3x30[1]=== _0x61a2[192]&& _0xa8a3x2f[1]=== _0x61a2[191]){var _0xa8a3x31=bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[182]][_0x61a2[102]](/\/|-/)[1];activeTrunks[_0xa8a3x31]&& (bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[195]]= activeTrunks[_0xa8a3x31])}}}else {if(_[_0x61a2[211]](_0xa8a3x2f,_0x61a2[214])){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[177]]= _0xa8a3x2f[_0x61a2[102]](_0x61a2[212])[1];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[197]]= util[_0x61a2[59]](_0x61a2[180],bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[181]],bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[177]]);bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[192]]=== _0x61a2[191]&& (bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[215]]= bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[177]])}else {if(_[_0x61a2[211]](_0xa8a3x2f,_0x61a2[216])){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[181]]= _0xa8a3x2f[_0x61a2[102]](_0x61a2[212])[1];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[197]]= util[_0x61a2[59]](_0x61a2[180],bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[181]],bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[177]])}}}};bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[217]]= _0xa8a3x24[_0x61a2[200]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[103]]= _0xa8a3x24[_0x61a2[209]]};if(_0xa8a3x24[_0x61a2[200]]=== _0x61a2[98]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[98]]= _0xa8a3x24[_0x61a2[209]][_0x61a2[102]](_0x61a2[101])[0];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]]= true}}else {bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[99]]= _0xa8a3x24[_0x61a2[200]][_0x61a2[201]]();if(_0xa8a3x24[_0x61a2[200]]=== _0x61a2[98]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[98]]= _0xa8a3x24[_0x61a2[98]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]]= true}}}}function varset(_0xa8a3x24){if(_0xa8a3x24[_0x61a2[220]][_0x61a2[219]](_0x61a2[218])){logger[_0x61a2[73]](_0x61a2[221],_0xa8a3x24[_0x61a2[88]],_0xa8a3x24[_0x61a2[222]]);videoOnUrls[_0xa8a3x24[_0x61a2[88]]]= _0xa8a3x24[_0x61a2[222]][_0x61a2[223]](/\\/g,_0x61a2[183])}else {if(_0xa8a3x24[_0x61a2[220]][_0x61a2[219]](_0x61a2[89])){extraVars[_0xa8a3x24[_0x61a2[88]]]= _0xa8a3x24[_0x61a2[222]]}};if(bill[_0xa8a3x24[_0x61a2[88]]]){if(_0xa8a3x24[_0x61a2[220]][_0x61a2[219]](_0x61a2[224])){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]= true;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[202]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[149]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[139]]= _0xa8a3x24[_0x61a2[222]][_0x61a2[201]]();if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[139]]=== _0x61a2[225]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[63]]= true;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[179]]= _0xa8a3x24[_0x61a2[179]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[178]]= _0xa8a3x24[_0x61a2[178]];ami[_0x61a2[148]](_0x61a2[205],_[_0x61a2[147]](bill[_0xa8a3x24[_0x61a2[88]]]));delete bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[63]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[202]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[139]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[206]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[207]]= null;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[208]]= null}}}}function queuecallerabandon(_0xa8a3x24){if(bill[_0xa8a3x24[_0x61a2[88]]]&&  !bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[202]]= true;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[149]]= false;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[206]]= _0xa8a3x24[_0x61a2[206]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[207]]= _0xa8a3x24[_0x61a2[207]];bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[208]]= _0xa8a3x24[_0x61a2[208]]}}function hangup(_0xa8a3x24){if(bill[_0xa8a3x24[_0x61a2[88]]]){var _0xa8a3x35=moment();bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[226]]= _0xa8a3x35[_0x61a2[59]](_0x61a2[58]);bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[227]]= _0xa8a3x35[_0x61a2[230]](bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[228]],_0x61a2[229]);if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[188]]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[231]]= _0xa8a3x35[_0x61a2[230]](bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[188]],_0x61a2[229])};ami[_0x61a2[148]](_0x61a2[78],bill[_0xa8a3x24[_0x61a2[88]]]);if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[93]]|| (bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[149]]&&  !bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[188]])){if(bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[202]]){ami[_0x61a2[148]](_0x61a2[203],bill[_0xa8a3x24[_0x61a2[88]]])}else {if(!bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]){bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[199]]= true;bill[_0xa8a3x24[_0x61a2[88]]][_0x61a2[139]]= _0x61a2[204]};ami[_0x61a2[148]](_0x61a2[205],bill[_0xa8a3x24[_0x61a2[88]]])}};delete bill[_0xa8a3x24[_0x61a2[88]]]}}ami[_0x61a2[74]](_0x61a2[205],function(_0xa8a3x24){try{addToQueue(_0x61a2[232],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[233],err)}});ami[_0x61a2[74]](_0x61a2[203],function(_0xa8a3x24){try{addToQueue(_0x61a2[234],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[235],err)}});ami[_0x61a2[74]](_0x61a2[236],function(_0xa8a3x24){try{newchannel(_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[237],err)}});ami[_0x61a2[74]](_0x61a2[238],function(_0xa8a3x24){try{newstate(_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[239],err)}});ami[_0x61a2[74]](_0x61a2[240],function(_0xa8a3x24){try{newexten(_0xa8a3x24,false)}catch(err){logger[_0x61a2[27]](_0x61a2[241],err)}});ami[_0x61a2[74]](_0x61a2[242],function(_0xa8a3x24){try{varset(_0xa8a3x24);addToQueue(_0x61a2[242],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[243],err)}});ami[_0x61a2[74]](_0x61a2[234],function(_0xa8a3x24){try{queuecallerabandon(_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[244],err)}});ami[_0x61a2[74]](_0x61a2[245],function(_0xa8a3x24){try{delete videoOnUrls[_0xa8a3x24[_0x61a2[88]]];delete extraVars[_0xa8a3x24[_0x61a2[88]]];hangup(_0xa8a3x24);addToQueue(_0x61a2[245],_0xa8a3x24)}catch(err){logger[_0x61a2[27]](_0x61a2[246],err)}});function handlePause(_0xa8a3x37,_0xa8a3x38){return function(_0xa8a3x39){var _0xa8a3x3a=_0xa8a3x39[_0x61a2[247]];var _0xa8a3x3b=false;var _0xa8a3x3c,_0xa8a3x3d;_0xa8a3x3c= _0xa8a3x3d= _0xa8a3x37[_0x61a2[248]][_0x61a2[192]]|| _0xa8a3x38[_0x61a2[249]]|| _0xa8a3x38[_0x61a2[250]];if(_[_0x61a2[211]](_0xa8a3x3d,_0x61a2[251])){_0xa8a3x3d= _0xa8a3x3d[_0x61a2[252]](1);_0xa8a3x3b= true};var _0xa8a3x3e={id:_0xa8a3x39[_0x61a2[253]],voicePause:true,chatPause:true,mailPause:true,faxPause:true,smsPause:true,openchannelPause:true,pauseType:_0xa8a3x3c,lastPauseAt:moment()[_0x61a2[59]](_0x61a2[58])};return _0xa8a3x39[_0x61a2[270]](_0xa8a3x3e,{transaction:_0xa8a3x37[_0x61a2[263]]|| null})[_0x61a2[32]](function(_0xa8a3x44){if(_0xa8a3x44){return events[_0x61a2[269]](_[_0x61a2[268]]({newValues:_0xa8a3x3e},_0xa8a3x44[_0x61a2[267]]))}})[_0x61a2[32]](function(){var _0xa8a3x43=moment()[_0x61a2[59]](_0x61a2[58]);return models[_0x61a2[265]][_0x61a2[266]]({duration:moment(_0xa8a3x43)[_0x61a2[230]](moment(_0xa8a3x3a),_0x61a2[229]),exitAt:_0xa8a3x43},{where:{membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[258],exitAt:null}})})[_0x61a2[32]](function(){var _0xa8a3x3f=(_0xa8a3x3e[_0x61a2[254]]&&  !_0xa8a3x3b)?channels:_[_0x61a2[255]](channels,function(_0xa8a3x40){return _0xa8a3x40!== _0x61a2[20]});var _0xa8a3x41=[];_0xa8a3x3f[_0x61a2[31]](function(_0xa8a3x42){_0xa8a3x41[_0x61a2[262]]({channel:_0xa8a3x42,membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[258],enterAt:moment()[_0x61a2[59]](_0x61a2[58]),data1:_0xa8a3x3d,data2:_0xa8a3x38[_0x61a2[259]],data4:_0xa8a3x3d,role:_0xa8a3x39[_0x61a2[260]],internal:_0xa8a3x39[_0x61a2[174]],uniqueid:_0xa8a3x38[_0x61a2[261]]})});return models[_0x61a2[265]][_0x61a2[264]](_0xa8a3x41,{raw:true,individualHooks:true,transaction:_0xa8a3x37[_0x61a2[263]]|| null})})}}function handleUnpause(_0xa8a3x37,_0xa8a3x38){return function(_0xa8a3x39){var _0xa8a3x3e;if(!_0xa8a3x37[_0x61a2[248]]){_0xa8a3x37[_0x61a2[248]]= {}};if(_0xa8a3x37[_0x61a2[248]][_0x61a2[192]]!== _0x61a2[271]){events[_0x61a2[273]](_0xa8a3x39[_0x61a2[29]],_0xa8a3x39[_0x61a2[272]],false)};switch(_0xa8a3x37[_0x61a2[248]][_0x61a2[182]]){case _0x61a2[20]:_0xa8a3x3e= {id:_0xa8a3x39[_0x61a2[253]],voicePause:false};return _0xa8a3x39[_0x61a2[270]](_0xa8a3x3e,{transaction:_0xa8a3x37[_0x61a2[263]]|| null})[_0x61a2[32]](function(_0xa8a3x44){return events[_0x61a2[269]](_[_0x61a2[268]]({newValues:_0xa8a3x3e},_0xa8a3x44[_0x61a2[267]]))})[_0x61a2[32]](function(){return models[_0x61a2[265]][_0x61a2[275]]({where:{channel:_0xa8a3x37[_0x61a2[248]][_0x61a2[182]],membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[258],exitAt:null}})})[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[274]}))[_0x61a2[32]](function(_0xa8a3x46){return _0xa8a3x46[_0x61a2[270]]({exitAt:moment()[_0x61a2[59]](_0x61a2[58])},{transaction:_0xa8a3x37[_0x61a2[263]]|| null})})[_0x61a2[32]](function(){return _0xa8a3x39});case _0x61a2[21]:;case _0x61a2[22]:;case _0x61a2[16]:;case _0x61a2[23]:;case _0x61a2[24]:var _0xa8a3x47={};_0xa8a3x47[util[_0x61a2[59]](_0x61a2[276],_0xa8a3x37[_0x61a2[248]][_0x61a2[182]],_0x61a2[277])]= false;return _0xa8a3x39[_0x61a2[270]](_0xa8a3x47,{transaction:_0xa8a3x37[_0x61a2[263]]|| null})[_0x61a2[32]](function(_0xa8a3x39){_0xa8a3x47[_0x61a2[253]]= _0xa8a3x39[_0x61a2[253]];return events[_0x61a2[269]](_[_0x61a2[268]]({newValues:_0xa8a3x47},_0xa8a3x39[_0x61a2[267]]))})[_0x61a2[32]](function(){return models[_0x61a2[265]][_0x61a2[275]]({where:{channel:_0xa8a3x37[_0x61a2[248]][_0x61a2[182]],membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[258],exitAt:null}})})[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[274]}))[_0x61a2[32]](function(_0xa8a3x46){return _0xa8a3x46[_0x61a2[270]]({exitAt:moment()[_0x61a2[59]](_0x61a2[58])},{transaction:_0xa8a3x37[_0x61a2[263]]|| null})})[_0x61a2[32]](function(){return _0xa8a3x39});default:_0xa8a3x3e= {id:_0xa8a3x39[_0x61a2[253]],voicePause:false,mailPause:false,chatPause:false,faxPause:false,smsPause:false,openchannelPause:false};return _0xa8a3x39[_0x61a2[270]](_0xa8a3x3e,{transaction:_0xa8a3x37[_0x61a2[263]]|| null})[_0x61a2[32]](function(_0xa8a3x44){return events[_0x61a2[269]](_[_0x61a2[268]]({newValues:_0xa8a3x3e},_0xa8a3x39[_0x61a2[267]]))})[_0x61a2[32]](function(){return models[_0x61a2[265]][_0x61a2[33]]({where:{membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[258],exitAt:null}})})[_0x61a2[32]](function(_0xa8a3x48){var _0xa8a3x49=[];_0xa8a3x48[_0x61a2[31]](function(_0xa8a3x4a){_0xa8a3x49[_0x61a2[262]](_0xa8a3x4a[_0x61a2[270]]({exitAt:moment()[_0x61a2[59]](_0x61a2[58])}))});return BPromise[_0x61a2[278]](_0xa8a3x49)})[_0x61a2[32]](function(){return _0xa8a3x39})}}}function queueAddUpdate(_0xa8a3x4c,_0xa8a3x4d){return models[_0x61a2[279]][_0x61a2[275]]({where:{queue:_0xa8a3x4c,membername:_0xa8a3x4d}})[_0x61a2[32]](function(_0xa8a3x4e){if(_0xa8a3x4e){return _0xa8a3x4e[_0x61a2[270]]({logged:true,loggedAt:moment()[_0x61a2[59]](_0x61a2[58])})}})}function handleLogin(_0xa8a3x37,_0xa8a3x38){return function(_0xa8a3x39){if(!_0xa8a3x39[_0x61a2[280]]){return BPromise[_0x61a2[290]]()[_0x61a2[32]](function(){return events[_0x61a2[269]](_[_0x61a2[289]]({newValues:_0xa8a3x39[_0x61a2[267]]},_0xa8a3x39[_0x61a2[267]]))})[_0x61a2[32]](function(){return _0xa8a3x39[_0x61a2[288]]()})[_0x61a2[32]](function(voiceQueues){var _0xa8a3x50=[];voiceQueues[_0x61a2[31]](function(_0xa8a3x51){_0xa8a3x50[_0x61a2[262]](amiAction({action:_0x61a2[285],queue:_0xa8a3x51[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),membername:_0xa8a3x39[_0x61a2[29]],penalty:_0xa8a3x51[_0x61a2[279]][_0x61a2[286]],paused:_0xa8a3x39[_0x61a2[287]]})[_0x61a2[28]](function(_0xa8a3x19){if(_0xa8a3x19[_0x61a2[282]]=== _0x61a2[283]){return queueAddUpdate(_0xa8a3x51[_0x61a2[29]],_0xa8a3x39[_0x61a2[29]])};logger[_0x61a2[27]](_0x61a2[284],_0xa8a3x51[_0x61a2[29]],_0xa8a3x19)}))});return _0xa8a3x50})[_0x61a2[278]]()[_0x61a2[32]](function(){var _0xa8a3x41=[];channels[_0x61a2[31]](function(_0xa8a3x42){_0xa8a3x41[_0x61a2[262]]({channel:_0xa8a3x42,membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[281],enterAt:moment()[_0x61a2[59]](_0x61a2[58]),role:_0xa8a3x39[_0x61a2[260]],internal:_0xa8a3x39[_0x61a2[174]]})});return models[_0x61a2[265]][_0x61a2[264]](_0xa8a3x41,{raw:true,individualHooks:true})})}}}function logoutAgent(_0xa8a3x39){return BPromise[_0x61a2[290]]()[_0x61a2[32]](function(){return events[_0x61a2[269]](_[_0x61a2[289]]({newValues:{id:_0xa8a3x39[_0x61a2[253]],online:false}},_0xa8a3x39[_0x61a2[267]],{online:false}))})[_0x61a2[32]](function(){return models[_0x61a2[65]][_0x61a2[33]]()})[_0x61a2[32]](function(voiceQueues){var _0xa8a3x50=[];voiceQueues[_0x61a2[31]](function(_0xa8a3x51){_0xa8a3x50[_0x61a2[262]](amiAction({action:_0x61a2[291],queue:_0xa8a3x51[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]])})[_0x61a2[28]](function(_0xa8a3x19){}))});return BPromise[_0x61a2[278]](_0xa8a3x50)})[_0x61a2[32]](function(_0xa8a3x53){return models[_0x61a2[265]][_0x61a2[33]]({where:{membername:_0xa8a3x39[_0x61a2[29]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),type:_0x61a2[281],exitAt:null}})})[_0x61a2[32]](function(_0xa8a3x48){var _0xa8a3x49=[];_0xa8a3x48[_0x61a2[31]](function(_0xa8a3x4a){_0xa8a3x49[_0x61a2[262]](_0xa8a3x4a[_0x61a2[270]]({exitAt:moment()[_0x61a2[59]](_0x61a2[58])}))});return BPromise[_0x61a2[278]](_0xa8a3x49)})}function handleLogout(_0xa8a3x37,_0xa8a3x38){return function(_0xa8a3x39){if(_0xa8a3x39[_0x61a2[280]]){return BPromise[_0x61a2[290]]()[_0x61a2[32]](function(){if(_0xa8a3x39[_0x61a2[260]]=== _0x61a2[292]){return logoutAgent(_0xa8a3x39)}})[_0x61a2[32]](function(){return _0xa8a3x39[_0x61a2[270]]({online:false})})}}}function handleQueueAdd(_0xa8a3x37,_0xa8a3x38){return function(_0xa8a3x39){var _0xa8a3x56=[];switch(_0xa8a3x37[_0x61a2[248]][_0x61a2[182]]){case _0x61a2[20]:_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x56[_0x61a2[262]](models[_0x61a2[279]][_0x61a2[294]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],queue:_0xa8a3x4c},defaults:{queue:_0xa8a3x4c,location:util[_0x61a2[59]](_0x61a2[293],_0xa8a3x39[_0x61a2[29]]),membername:_0xa8a3x39[_0x61a2[29]],UserId:_0xa8a3x39[_0x61a2[253]],penalty:_0xa8a3x38[_0x61a2[259]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x61a2[278]](_0xa8a3x56)[_0x61a2[32]](function(){var _0xa8a3x50=[];_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x50[_0x61a2[262]](amiAction({action:_0x61a2[285],queue:_0xa8a3x4c,paused:_0xa8a3x39[_0x61a2[254]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]]),membername:_0xa8a3x39[_0x61a2[29]]})[_0x61a2[28]](function(_0xa8a3x19){if(_0xa8a3x19[_0x61a2[282]]=== _0x61a2[283]){return queueAddUpdate(_0xa8a3x4c,_0xa8a3x39[_0x61a2[29]])};logger[_0x61a2[27]](_0x61a2[296],_0xa8a3x4c,_0xa8a3x19)}))});return BPromise[_0x61a2[278]](_0xa8a3x50)});case _0x61a2[21]:_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x56[_0x61a2[262]](models[_0x61a2[297]][_0x61a2[294]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],ChatQueueId:_0xa8a3x4c[_0x61a2[253]]},defaults:{ChatQueueId:_0xa8a3x4c[_0x61a2[253]],queue:_0xa8a3x4c[_0x61a2[29]],UserId:_0xa8a3x39[_0x61a2[253]],penalty:_0xa8a3x38[_0x61a2[259]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x61a2[278]](_0xa8a3x56);case _0x61a2[22]:_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x56[_0x61a2[262]](models[_0x61a2[298]][_0x61a2[294]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],MailQueueId:_0xa8a3x4c[_0x61a2[253]]},defaults:{MailQueueId:_0xa8a3x4c[_0x61a2[253]],queue:_0xa8a3x4c[_0x61a2[29]],UserId:_0xa8a3x39[_0x61a2[253]],penalty:_0xa8a3x38[_0x61a2[259]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x61a2[278]](_0xa8a3x56);case _0x61a2[23]:_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x56[_0x61a2[262]](models[_0x61a2[299]][_0x61a2[294]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],SmsQueueId:_0xa8a3x4c[_0x61a2[253]]},defaults:{SmsQueueId:_0xa8a3x4c[_0x61a2[253]],queue:_0xa8a3x4c[_0x61a2[29]],UserId:_0xa8a3x39[_0x61a2[253]],penalty:_0xa8a3x38[_0x61a2[259]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x61a2[278]](_0xa8a3x56);case _0x61a2[24]:_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x56[_0x61a2[262]](models[_0x61a2[300]][_0x61a2[294]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],OpenchannelQueueId:_0xa8a3x4c[_0x61a2[253]]},defaults:{OpenchannelQueueId:_0xa8a3x4c[_0x61a2[253]],queue:_0xa8a3x4c[_0x61a2[29]],UserId:_0xa8a3x39[_0x61a2[253]],penalty:_0xa8a3x38[_0x61a2[259]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x61a2[278]](_0xa8a3x56);case _0x61a2[16]:_0xa8a3x37[_0x61a2[248]][_0x61a2[295]][_0x61a2[31]](function(_0xa8a3x4c){_0xa8a3x56[_0x61a2[262]](models[_0x61a2[301]][_0x61a2[294]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],FaxQueueId:_0xa8a3x4c[_0x61a2[253]]},defaults:{faxQueueId:_0xa8a3x4c[_0x61a2[253]],queue:_0xa8a3x4c[_0x61a2[29]],UserId:_0xa8a3x39[_0x61a2[253]],penalty:_0xa8a3x38[_0x61a2[259]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true}))});return BPromise[_0x61a2[278]](_0xa8a3x56);default:}}}function handleQueueRemove(_0xa8a3x37,_0xa8a3x38){return function(_0xa8a3x39){switch(_0xa8a3x37[_0x61a2[248]][_0x61a2[182]]){case _0x61a2[20]:return models[_0x61a2[279]][_0x61a2[303]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],queue:_0xa8a3x37[_0x61a2[248]][_0x61a2[98]]},transaction:_0xa8a3x37[_0x61a2[263]]|| null,individualHooks:true,raw:true})[_0x61a2[32]](function(){return amiAction({action:_0x61a2[291],queue:_0xa8a3x37[_0x61a2[248]][_0x61a2[98]],interface:util[_0x61a2[59]](_0x61a2[256],_0x61a2[257],_0xa8a3x39[_0x61a2[29]])})})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[302],_0xa8a3x19[_0x61a2[26]])});case _0x61a2[21]:return models[_0x61a2[297]][_0x61a2[275]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],ChatQueueId:_0xa8a3x37[_0x61a2[248]][_0x61a2[305]]}})[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x58){return _0xa8a3x58[_0x61a2[303]]({transaction:_0xa8a3x37[_0x61a2[263]]|| null})}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[304],_0xa8a3x19)});case _0x61a2[22]:return models[_0x61a2[298]][_0x61a2[275]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],MailQueueId:_0xa8a3x37[_0x61a2[248]][_0x61a2[305]]}})[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x58){return _0xa8a3x58[_0x61a2[303]]({transaction:_0xa8a3x37[_0x61a2[263]]|| null})}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[306],_0xa8a3x19)});case _0x61a2[23]:return models[_0x61a2[299]][_0x61a2[275]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],SmsQueueId:_0xa8a3x37[_0x61a2[248]][_0x61a2[305]]}})[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x58){return _0xa8a3x58[_0x61a2[303]]({transaction:_0xa8a3x37[_0x61a2[263]]|| null})}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[307],_0xa8a3x19)});case _0x61a2[24]:return models[_0x61a2[300]][_0x61a2[275]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],OpenchannelQueueId:_0xa8a3x37[_0x61a2[248]][_0x61a2[305]]}})[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x58){return _0xa8a3x58[_0x61a2[303]]({transaction:_0xa8a3x37[_0x61a2[263]]|| null})}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[308],_0xa8a3x19)});case _0x61a2[16]:return models[_0x61a2[301]][_0x61a2[275]]({where:{UserId:_0xa8a3x39[_0x61a2[253]],FaxQueueId:_0xa8a3x37[_0x61a2[248]][_0x61a2[305]]}})[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x58){return _0xa8a3x58[_0x61a2[303]]({transaction:_0xa8a3x37[_0x61a2[263]]|| null})}})[_0x61a2[28]](function(_0xa8a3x19){faxLogger[_0x61a2[27]](_0x61a2[309],_0xa8a3x19)});default:}}}function handleEntityNotFound(_0xa8a3x5a){return function(_0xa8a3x5b){if(!_0xa8a3x5b){throw _0xa8a3x5a};return _0xa8a3x5b}}function onSave(_0xa8a3x38,_0xa8a3x37){switch(_0xa8a3x38[_0x61a2[29]]){case _0x61a2[313]:return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x37[_0x61a2[248]][_0x61a2[292]])[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[310]}))[_0x61a2[32]](handlePause(_0xa8a3x37,_0xa8a3x38));case _0x61a2[314]:return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x37[_0x61a2[248]][_0x61a2[292]])[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[310]}))[_0x61a2[32]](handleUnpause(_0xa8a3x37,_0xa8a3x38));case _0x61a2[315]:return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x38[_0x61a2[250]])[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[310]}))[_0x61a2[32]](handleLogin(_0xa8a3x37,_0xa8a3x38))[_0x61a2[32]](function(_0xa8a3x5d){return _0xa8a3x5d});case _0x61a2[316]:return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x38[_0x61a2[250]])[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[310]}))[_0x61a2[32]](handleUnpause(_0xa8a3x37,_0xa8a3x38))[_0x61a2[32]](handleLogout(_0xa8a3x37,_0xa8a3x38));case _0x61a2[285]:return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x37[_0x61a2[248]][_0x61a2[292]])[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[310]}))[_0x61a2[32]](handleQueueAdd(_0xa8a3x37,_0xa8a3x38))[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x37[_0x61a2[248]][_0x61a2[182]]!== _0x61a2[20]){return events[_0x61a2[318]](_0xa8a3x58,_0xa8a3x37[_0x61a2[248]][_0x61a2[182]])}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[317],_0xa8a3x19[_0x61a2[26]])});case _0x61a2[291]:return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x37[_0x61a2[248]][_0x61a2[292]])[_0x61a2[32]](handleEntityNotFound({message:_0x61a2[310]}))[_0x61a2[32]](handleQueueRemove(_0xa8a3x37,_0xa8a3x38))[_0x61a2[32]](function(_0xa8a3x58){if(_0xa8a3x37[_0x61a2[248]][_0x61a2[182]]!== _0x61a2[20]){return events[_0x61a2[320]](_0xa8a3x58,_0xa8a3x37[_0x61a2[248]][_0x61a2[182]])}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[319],_0xa8a3x19[_0x61a2[26]])});default:throw {message:_0x61a2[321]}}}function clean(channels){removeInactiveCalls();_[_0x61a2[31]](channels,function(_0xa8a3x42){removeExpiredApplications(_0xa8a3x42)})}function removeInactiveCalls(){logger[_0x61a2[73]](_0x61a2[322]);var _0xa8a3x60=[],_0xa8a3x61=[],_0xa8a3x62=moment()[_0x61a2[59]](_0x61a2[58]);return amiAction({action:_0x61a2[339],command:_0x61a2[340]})[_0x61a2[32]](function(_0xa8a3x6a){var _0xa8a3x6b;if(_0xa8a3x6a&& _0xa8a3x6a[_0x61a2[333]]){var _0xa8a3x58=_0xa8a3x6a[_0x61a2[333]][_0x61a2[102]](_0x61a2[334]);_[_0x61a2[31]](_0xa8a3x58,function(_0xa8a3x40){if(_0xa8a3x40){_0xa8a3x6b= _0xa8a3x40[_0x61a2[102]](_0x61a2[335]);_0xa8a3x6b[_0x61a2[336]]=== 14&& _0xa8a3x61[_0x61a2[262]](_0xa8a3x6b[_0x61a2[337]]())}})};return models[_0x61a2[338]][_0x61a2[33]]({where:{$or:[{queuecallerleaveAt:null,queuecallerexit:false},{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}]}})})[_0x61a2[32]](function(_0xa8a3x69){_[_0x61a2[31]](_0xa8a3x69,function(_0xa8a3x66){if(!_[_0x61a2[193]](_0xa8a3x61,_0xa8a3x66[_0x61a2[88]])){_0xa8a3x60[_0x61a2[262]](_0xa8a3x66[_0x61a2[270]]({queuecallerleaveAt:_0xa8a3x62,queuecallerexitAt:_0xa8a3x62,queuecallerexit:true,queuecallerexitreason:_0x61a2[326]}))}});return models[_0x61a2[332]][_0x61a2[33]]({where:{leaveAt:null}})})[_0x61a2[32]](function(_0xa8a3x68){_[_0x61a2[31]](_0xa8a3x68,function(_0xa8a3x66){if(!_[_0x61a2[193]](_0xa8a3x61,_0xa8a3x66[_0x61a2[88]])){_0xa8a3x60[_0x61a2[262]](_0xa8a3x66[_0x61a2[270]]({leaveAt:_0xa8a3x62,network:_0x61a2[330]}))}});return models[_0x61a2[331]][_0x61a2[33]]({where:{endtime:null}})})[_0x61a2[32]](function(_0xa8a3x67){_[_0x61a2[31]](_0xa8a3x67,function(_0xa8a3x66){if(!_[_0x61a2[193]](_0xa8a3x61,_0xa8a3x66[_0x61a2[88]])){_0xa8a3x60[_0x61a2[262]](_0xa8a3x66[_0x61a2[270]]({endtime:_0xa8a3x62,dialstatus:_0x61a2[327]}))}});return models[_0x61a2[329]][_0x61a2[33]]({where:{agentcomplete:false,agentringnoanswer:false,agentdump:false}})})[_0x61a2[32]](function(_0xa8a3x65){_[_0x61a2[31]](_0xa8a3x65,function(_0xa8a3x66){if(!_[_0x61a2[193]](_0xa8a3x61,_0xa8a3x66[_0x61a2[88]])){_0xa8a3x60[_0x61a2[262]](_0xa8a3x66[_0x61a2[270]]({lastevent:_0x61a2[199],agentringnoanswer:true,agentringnoanswerAt:_0xa8a3x62,reason:_0x61a2[327]}))}});return models[_0x61a2[265]][_0x61a2[33]]({where:{type:_0x61a2[328],enterAt:{$ne:null},exitAt:null}})})[_0x61a2[32]](function(_0xa8a3x63){_[_0x61a2[31]](_0xa8a3x63,function(_0xa8a3x64){if(!_[_0x61a2[193]](_0xa8a3x61,_0xa8a3x64[_0x61a2[88]])){_0xa8a3x60[_0x61a2[262]](_0xa8a3x64[_0x61a2[270]]({exitAt:_0xa8a3x64[_0x61a2[325]],data4:_0x61a2[326]}))}});return _0xa8a3x60})[_0x61a2[278]]()[_0x61a2[32]](function(){logger[_0x61a2[73]](_0x61a2[324])})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[323],_0xa8a3x19[_0x61a2[26]])})}function removeExpiredApplications(_0xa8a3x42){return models[_0x61a2[348]+ _0xa8a3x42+ _0x61a2[349]][_0x61a2[33]]({where:{leaveAt:null,timeslot:{$ne:null}}})[_0x61a2[32]](function(_0xa8a3x6d){var _0xa8a3x6e,_0xa8a3x6f=[];_[_0x61a2[31]](_0xa8a3x6d,function(_0xa8a3x70){_0xa8a3x6e= moment(_0xa8a3x70[_0x61a2[346]])[_0x61a2[345]](_0xa8a3x70[_0x61a2[344]],_0x61a2[229]);if(moment()[_0x61a2[347]](_0xa8a3x6e)){_0xa8a3x6f[_0x61a2[262]](_0xa8a3x70[_0x61a2[270]]({timeout:true,leaveAt:moment()[_0x61a2[59]](_0x61a2[58])}))}});return _0xa8a3x6f})[_0x61a2[278]]()[_0x61a2[32]](function(){logger[_0x61a2[73]](_0x61a2[341]+ _0xa8a3x42+ _0x61a2[343])})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[341]+ _0xa8a3x42+ _0x61a2[342],_0xa8a3x19)})}var channelModels=[_0x61a2[350],_0x61a2[351],_0x61a2[352],_0x61a2[353],_0x61a2[354]];clean(channelModels);setInterval(function(){clean(channelModels)},10* 60* 1000);function networkRewrite(_0xa8a3x73){switch(_0xa8a3x73[_0x61a2[192]]){case _0x61a2[365]:return models[_0x61a2[367]][_0x61a2[366]](_0x61a2[365])[_0x61a2[33]]()[_0x61a2[32]](function(_0xa8a3x74){var _0xa8a3x75=_0x61a2[183];var _0xa8a3x76=_0x61a2[356];_0xa8a3x74[_0x61a2[31]](function(_0xa8a3x77){_0xa8a3x75+= util[_0x61a2[59]](_0x61a2[357],_0xa8a3x77[_0x61a2[222]])});fs[_0x61a2[364]](path[_0x61a2[359]](config[_0x61a2[358]],_0xa8a3x76),_0xa8a3x75,{flags:_0x61a2[360],mode:parseInt(_0x61a2[361],8)},function(_0xa8a3x19){if(_0xa8a3x19){throw _0xa8a3x19};amiCommand(_0x61a2[362]);logger[_0x61a2[73]](_0x61a2[363])})})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[355],_0xa8a3x19)});case _0x61a2[372]:return models[_0x61a2[367]][_0x61a2[366]](_0x61a2[372])[_0x61a2[33]]()[_0x61a2[32]](function(_0xa8a3x78){var _0xa8a3x79=_0x61a2[183];var _0xa8a3x7a=_0x61a2[369];_0xa8a3x78[_0x61a2[31]](function(_0xa8a3x7b){_0xa8a3x79+= util[_0x61a2[59]](_0x61a2[370],_0xa8a3x7b[_0x61a2[222]])});fs[_0x61a2[364]](path[_0x61a2[359]](config[_0x61a2[358]],_0xa8a3x7a),_0xa8a3x79,{flags:_0x61a2[360],mode:parseInt(_0x61a2[361],8)},function(_0xa8a3x19){if(_0xa8a3x19){throw _0xa8a3x19};amiCommand(_0x61a2[362]);logger[_0x61a2[73]](_0x61a2[371])})})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[368],_0xa8a3x19)});default:logger[_0x61a2[27]](_0x61a2[373],_0xa8a3x73[_0x61a2[192]])}}function amiCommand(_0xa8a3x7d){return amiAction({Action:_0x61a2[339],command:_0xa8a3x7d})[_0x61a2[32]](function(_0xa8a3x58){logger[_0x61a2[73]](_0x61a2[374],_0xa8a3x7d,_0xa8a3x58)})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[374],_0xa8a3x7d,_0xa8a3x19)})}function trunksRewrite(){var _0xa8a3x7f=_0x61a2[183];var _0xa8a3x80=_0x61a2[183];var _0xa8a3x81=_0x61a2[375];return models[_0x61a2[34]][_0x61a2[33]]({where:{active:true},raw:true})[_0x61a2[32]](function(_0xa8a3x1a){activeTrunks= {};_0xa8a3x1a[_0x61a2[31]](function(_0xa8a3x82){activeTrunks[_0xa8a3x82[_0x61a2[29]]]= _0xa8a3x82[_0x61a2[30]];delete _0xa8a3x82[_0x61a2[376]];delete _0xa8a3x82[_0x61a2[346]];delete _0xa8a3x82[_0x61a2[377]];delete _0xa8a3x82[_0x61a2[378]];delete _0xa8a3x82[_0x61a2[83]];if(_0xa8a3x82[_0x61a2[85]]){_0xa8a3x80+= util[_0x61a2[59]](_0xa8a3x81,_0xa8a3x82[_0x61a2[85]])};delete _0xa8a3x82[_0x61a2[85]];_0xa8a3x7f+= util[_0x61a2[59]](_0x61a2[379],_0xa8a3x82[_0x61a2[29]]);if(_0xa8a3x82[_0x61a2[380]]){_0xa8a3x7f+= util[_0x61a2[59]](_0x61a2[381],_0xa8a3x82[_0x61a2[380]]);delete _0xa8a3x82[_0x61a2[380]]};for(var _0xa8a3x30 in _0xa8a3x82){if(_0xa8a3x82[_0xa8a3x30]){switch(_0xa8a3x30){case _0x61a2[384]:var _0xa8a3x83=_0xa8a3x82[_0xa8a3x30][_0x61a2[102]](_0x61a2[382]);_0xa8a3x83[_0x61a2[31]](function(_0xa8a3x40){_0xa8a3x7f+= util[_0x61a2[59]](_0x61a2[383],_0xa8a3x30,_0xa8a3x40)});break;default:_0xa8a3x7f+= util[_0x61a2[59]](_0x61a2[383],_0xa8a3x30,_0xa8a3x82[_0xa8a3x30])}}}});fs[_0x61a2[364]](path[_0x61a2[359]](config[_0x61a2[358]],_0x61a2[385]),_0xa8a3x7f,{flags:_0x61a2[360],mode:parseInt(_0x61a2[361],8)},function(_0xa8a3x19){if(_0xa8a3x19){throw _0xa8a3x19};logger[_0x61a2[73]](_0x61a2[386]);fs[_0x61a2[364]](path[_0x61a2[359]](config[_0x61a2[358]],_0x61a2[387]),_0xa8a3x80,{flags:_0x61a2[360],mode:parseInt(_0x61a2[361],8)},function(_0xa8a3x19){if(_0xa8a3x19){throw _0xa8a3x19};amiCommand(_0x61a2[362]);logger[_0x61a2[73]](_0x61a2[388])})})})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0xa8a3x19)})}function rewriteContexts(_0xa8a3x73,_0xa8a3x85){return function(){var _0xa8a3x86=_0x61a2[183];if(!_0xa8a3x85){_0xa8a3x86= util[_0x61a2[59]](_0x61a2[389],_0xa8a3x73[_0x61a2[29]],_0xa8a3x73[_0x61a2[29]])};return models[_0x61a2[394]][_0x61a2[33]]({where:{id:{$ne:_0xa8a3x73[_0x61a2[253]]}}})[_0x61a2[32]](function(_0xa8a3x87){_0xa8a3x87[_0x61a2[31]](function(_0xa8a3x82){_0xa8a3x86+= util[_0x61a2[59]](_0x61a2[389],_0xa8a3x82[_0x61a2[29]],_0xa8a3x82[_0x61a2[29]])});fs[_0x61a2[364]](path[_0x61a2[359]](config[_0x61a2[358]],_0x61a2[391]),_0xa8a3x86,{flags:_0x61a2[360],mode:parseInt(_0x61a2[361],8)},function(_0xa8a3x19){if(_0xa8a3x19){throw _0xa8a3x19};logger[_0x61a2[73]](_0x61a2[392]);amiCommand(_0x61a2[393])})})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[390],_0xa8a3x19)})}}function createHangup(_0xa8a3x73){return function(){logger[_0x61a2[73]](_0x61a2[395],_0xa8a3x73[_0x61a2[29]]);var _0xa8a3x47=[{context:_0xa8a3x73[_0x61a2[29]],exten:_0x61a2[396],priority:_0x61a2[397],VoiceContextId:_0xa8a3x73[_0x61a2[253]],type:_0x61a2[398],app:_0x61a2[399]},{context:_0xa8a3x73[_0x61a2[29]],exten:_0x61a2[400],priority:_0x61a2[397],VoiceContextId:_0xa8a3x73[_0x61a2[253]],type:_0x61a2[398],app:_0x61a2[399]}];return models[_0x61a2[403]][_0x61a2[264]](_0xa8a3x47)[_0x61a2[32]](function(){logger[_0x61a2[73]](_0x61a2[402])})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[401],_0xa8a3x19)})}}function rtpRewrite(_0xa8a3x47){if(_0xa8a3x47){var _0xa8a3x8a=_0x61a2[183];for(var _0xa8a3x30 in _0xa8a3x47){_0xa8a3x47[_0xa8a3x30]&& (_0xa8a3x8a+= util[_0x61a2[59]](_0x61a2[383],_0xa8a3x30,_0xa8a3x47[_0xa8a3x30]))};try{fs[_0x61a2[405]](path[_0x61a2[359]](config[_0x61a2[358]],_0x61a2[404]),_0xa8a3x8a,{flag:_0x61a2[360],mode:parseInt(_0x61a2[361],8)});logger[_0x61a2[73]](_0x61a2[406]);amiCommand(_0x61a2[407])}catch(err){logger[_0x61a2[27]](_0x61a2[408],err)}}else {logger[_0x61a2[27]](_0x61a2[409])}}function execRequest(_0xa8a3x73,_0xa8a3x8c,_0xa8a3x8d){return Util[_0x61a2[412]](_0xa8a3x73,_0xa8a3x8c,_0xa8a3x8d)[_0x61a2[32]](function(_0xa8a3x8e){faxLogger[_0x61a2[73]](_0x61a2[411])})[_0x61a2[28]](function(_0xa8a3x19){faxLogger[_0x61a2[27]](_0x61a2[410],_0xa8a3x19)})}function webhook(_0xa8a3x73,_0xa8a3x90,_0xa8a3x91){switch(_0xa8a3x91){case _0x61a2[420]:if(_0xa8a3x90[_0x61a2[413]]&& _0xa8a3x90[_0x61a2[414]]){faxLogger[_0x61a2[73]](_0x61a2[415]+ _0xa8a3x90[_0x61a2[29]]+ _0x61a2[416]);execRequest(_0xa8a3x73,_0xa8a3x90[_0x61a2[413]],_0xa8a3x90[_0x61a2[414]])};if(_0xa8a3x90[_0x61a2[417]][_0x61a2[336]]){_[_0x61a2[31]](_0xa8a3x90[_0x61a2[417]],function(_0xa8a3x38){if(_0xa8a3x38[_0x61a2[418]]){Util[_0x61a2[419]](_0xa8a3x38,_0xa8a3x73)}})};break;case _0x61a2[424]:if(_0xa8a3x90[_0x61a2[421]]&& _0xa8a3x90[_0x61a2[422]]){faxLogger[_0x61a2[73]](_0x61a2[415]+ _0xa8a3x90[_0x61a2[29]]+ _0x61a2[423]);execRequest(_0xa8a3x73,_0xa8a3x90[_0x61a2[421]],_0xa8a3x90[_0x61a2[422]])};break;case _0x61a2[77]:if(_0xa8a3x90[_0x61a2[425]]&& _0xa8a3x90[_0x61a2[426]]){faxLogger[_0x61a2[73]](_0x61a2[415]+ _0xa8a3x90[_0x61a2[29]]+ _0x61a2[427]);execRequest(_0xa8a3x73,_0xa8a3x90[_0x61a2[425]],_0xa8a3x90[_0x61a2[426]])};break;default:faxLogger[_0x61a2[27]](_0x61a2[428])}}function getFaxRoom(){return function(_0xa8a3x90,_0xa8a3x93){if(_0xa8a3x93[_0x61a2[429]]){return models[_0x61a2[430]][_0x61a2[311]](_0xa8a3x93.FaxRoomId)}else {return models[_0x61a2[430]][_0x61a2[33]]({limit:1,where:{contact:_0xa8a3x93[_0x61a2[433]],FaxAccountId:_0xa8a3x90[_0x61a2[253]]},order:[[_0x61a2[376],_0x61a2[435]]]})[_0x61a2[32]](function(_0xa8a3x94){var _0xa8a3x95=_[_0x61a2[431]](_0xa8a3x94);if(!_0xa8a3x95|| _0xa8a3x95[_0x61a2[378]]=== _0x61a2[432]){return models[_0x61a2[430]][_0x61a2[63]]({contact:_0xa8a3x93[_0x61a2[433]],account:_0xa8a3x90[_0x61a2[29]],status:_0x61a2[434],FaxAccountId:_0xa8a3x90[_0x61a2[253]]})}else {return _0xa8a3x95}})}}}function sendFax(_0xa8a3x97,_0xa8a3x98,_0xa8a3x99){if(_0xa8a3x97[_0x61a2[378]]=== _0x61a2[436]){faxLogger[_0x61a2[439]](util[_0x61a2[59]](_0x61a2[437],_0xa8a3x97[_0x61a2[438]],_0xa8a3x97[_0x61a2[433]]));var _0xa8a3x9a;var _0xa8a3x9b=_0xa8a3x97;var _0xa8a3x9c=_0xa8a3x97[_0x61a2[438]];var _0xa8a3x9d=_0xa8a3x97[_0x61a2[433]];var _0xa8a3x9e;var _0xa8a3x9f;var _0xa8a3xa0,_0xa8a3xa1;return models[_0x61a2[490]][_0x61a2[275]]({where:{localstationid:_0xa8a3x9b[_0x61a2[438]]}})[_0x61a2[32]](function(_0xa8a3xa5){if(!_0xa8a3xa5){throw  new Error(_0x61a2[487])};faxLogger[_0x61a2[73]](_0x61a2[488],_0xa8a3xa5[_0x61a2[451]]);_0xa8a3x9e= _[_0x61a2[147]](_0xa8a3xa5[_0x61a2[267]]);return models[_0x61a2[34]][_0x61a2[275]]({where:{name:_0xa8a3x9e[_0x61a2[489]]},attributes:[_0x61a2[29]]})})[_0x61a2[32]](function(_0xa8a3x1b){if(!_0xa8a3x1b){throw  new Error(_0x61a2[485])};faxLogger[_0x61a2[73]](_0x61a2[486],_0xa8a3x1b[_0x61a2[29]]);_0xa8a3x9f= _[_0x61a2[147]](_0xa8a3x1b[_0x61a2[267]]);return})[_0x61a2[32]](function(){return [_0xa8a3x9e,_0xa8a3x9b]})[_0x61a2[475]](getFaxRoom())[_0x61a2[32]](function(_0xa8a3xa4){if(!_0xa8a3xa4){throw  new Error(_0x61a2[482])};faxLogger[_0x61a2[73]](_0x61a2[483],_0xa8a3xa4[_0x61a2[253]]);_0xa8a3x9a= _0xa8a3xa4;return _0xa8a3x9a[_0x61a2[484]](_0xa8a3x9b[_0x61a2[253]])})[_0x61a2[32]](function(){return _0xa8a3x9a[_0x61a2[270]]({status:_0x61a2[434],lastEvent:_0x61a2[436],lastEventAt:moment()[_0x61a2[59]](_0x61a2[58]),faxOut:++_0xa8a3x9a[_0x61a2[480]]},{individualHooks:true,user:_0xa8a3x99[_0x61a2[481]]})})[_0x61a2[32]](function(_0xa8a3x47){faxLogger[_0x61a2[73]](_0x61a2[478],_0xa8a3x47[_0x61a2[253]]);return _0xa8a3x9a[_0x61a2[479]](_0xa8a3x9b.UserId)})[_0x61a2[32]](function(){return models[_0x61a2[312]][_0x61a2[311]](_0xa8a3x9b.UserId)})[_0x61a2[32]](function(){if(_0xa8a3x9e[_0x61a2[476]]){return models[_0x61a2[477]][_0x61a2[294]]({where:{ListId:_0xa8a3x9e[_0x61a2[476]],$or:[{phone:_0xa8a3x9d},{fax:_0xa8a3x9d}]},defaults:{fax:_0xa8a3x9d,phone:_0xa8a3x9d,firstName:_0xa8a3x9d,ListId:_0xa8a3x9e[_0x61a2[476]]}})}else {return []}})[_0x61a2[475]](function(_0xa8a3xa2,_0xa8a3xa3){if(_0xa8a3xa3!== undefined&&  !_0xa8a3xa3){return _0xa8a3xa2[_0x61a2[270]]({fax:_0xa8a3x9d})};return})[_0x61a2[32]](function(){_0xa8a3xa0= _0xa8a3x9b[_0x61a2[462]][0][_0x61a2[6]];if(_0xa8a3x9b[_0x61a2[462]][0][_0x61a2[192]]=== _0x61a2[463]){_0xa8a3xa1= path[_0x61a2[359]](config[_0x61a2[464]],_0x61a2[465],_0x61a2[466],_0x61a2[16],_0x61a2[194],_0x61a2[467],_0x61a2[468],path[_0x61a2[469]](_0xa8a3xa0)[_0x61a2[29]]+ _0x61a2[470]);return exec(_0x61a2[471]+ _0xa8a3xa1+ _0x61a2[472]+ _0xa8a3xa0)}else {_0xa8a3xa1= path[_0x61a2[359]](config[_0x61a2[464]],_0x61a2[465],_0x61a2[466],_0x61a2[16],_0x61a2[194],_0x61a2[467],_0x61a2[468],path[_0x61a2[469]](_0xa8a3xa0)[_0x61a2[473]]);fse[_0x61a2[474]](_0xa8a3xa0,_0xa8a3xa1);return}})[_0x61a2[32]](function(){fs[_0x61a2[460]](_0xa8a3xa1,511);faxLogger[_0x61a2[73]](_0x61a2[461]);return models[_0x61a2[444]][_0x61a2[266]]({filename:_0xa8a3xa1,localstationid:_0xa8a3x9b[_0x61a2[438]],retry:_0xa8a3x98},{where:{id:_0xa8a3x9b[_0x61a2[253]]}})})[_0x61a2[32]](function(_0xa8a3x97){return amiAction({action:_0x61a2[447],channel:util[_0x61a2[59]](_0x61a2[448],_0xa8a3x9e[_0x61a2[449]],_0xa8a3x9f[_0x61a2[29]],_0xa8a3x9d),exten:_0xa8a3x9d,context:_0x61a2[450],priority:1,callerid:util[_0x61a2[59]](_0x61a2[180],_0xa8a3x9e[_0x61a2[451]],_0xa8a3x9e[_0x61a2[451]]),variable:{FAXNAME:_0xa8a3x9e[_0x61a2[29]],FAXNUMBER:_0xa8a3x9d,FAXECM:_0xa8a3x9e[_0x61a2[452]],FAXHEADERINFO:_0xa8a3x9e[_0x61a2[453]],FAXLOCALSTATIONID:_0xa8a3x9e[_0x61a2[451]],FAXMINRATE:_0xa8a3x9e[_0x61a2[454]],FAXMAXRATE:_0xa8a3x9e[_0x61a2[455]],FAXMODEM:util[_0x61a2[59]](_0x61a2[456],_0xa8a3x9e[_0x61a2[457]]),FAXGATEWAY:_0xa8a3x9e[_0x61a2[458]],FAXT38TIMEOUT:_0xa8a3x9e[_0x61a2[459]],FAXOUTFILE:_0xa8a3xa1},account:_0xa8a3x9e[_0x61a2[451]]})})[_0x61a2[32]](function(_0xa8a3x58){faxLogger[_0x61a2[439]](_0x61a2[445]);faxLogger[_0x61a2[73]](_0x61a2[446],_0xa8a3x58)})[_0x61a2[28]](function(_0xa8a3x19){faxLogger[_0x61a2[27]](_0x61a2[440],_0xa8a3x19);faxLogger[_0x61a2[27]](_0x61a2[441],_0xa8a3x19[_0x61a2[282]]);faxLogger[_0x61a2[27]](_0x61a2[442],_0xa8a3x19[_0x61a2[26]]);return models[_0x61a2[444]][_0x61a2[266]]({status:_0x61a2[171]},{where:{id:_0xa8a3x9b[_0x61a2[253]]}})[_0x61a2[32]](function(_0xa8a3x47){if(_0xa8a3x9a){return _0xa8a3x9a[_0x61a2[270]]({lastEvent:_0x61a2[171]})};return})[_0x61a2[28]](function(_0xa8a3x19){faxLogger[_0x61a2[27]](_0x61a2[443],_0xa8a3x19);faxLogger[_0x61a2[27]](_0x61a2[441],_0xa8a3x19[_0x61a2[282]]);faxLogger[_0x61a2[27]](_0x61a2[442],_0xa8a3x19[_0x61a2[26]])})})}}models[_0x61a2[444]][_0x61a2[491]](function(_0xa8a3x73,_0xa8a3x37){sendFax(_0xa8a3x73[_0x61a2[267]],0,_0xa8a3x37)});models[_0x61a2[444]][_0x61a2[494]](function(_0xa8a3x73,_0xa8a3x37){if(_0xa8a3x73[_0x61a2[492]](_0x61a2[378])&& _0xa8a3x73[_0x61a2[378]]=== _0x61a2[436]){sendFax(_0xa8a3x73[_0x61a2[267]],_0xa8a3x73[_0x61a2[493]]+ 1,_0xa8a3x37)}});models[_0x61a2[430]][_0x61a2[494]](function(_0xa8a3x73){var _0xa8a3xa6=_[_0x61a2[496]](faxaccounts,{id:_0xa8a3x73[_0x61a2[495]]});if(_0xa8a3xa6&& _0xa8a3x73[_0x61a2[492]](_0x61a2[378])&& _0xa8a3x73[_0x61a2[378]]=== _0x61a2[432]){webhook(_0xa8a3x73[_0x61a2[267]],_0xa8a3xa6,_0x61a2[77])}});models[_0x61a2[497]][_0x61a2[491]](function(_0xa8a3x73,_0xa8a3x37){onSave(_0xa8a3x73,_0xa8a3x37)});models[_0x61a2[490]][_0x61a2[33]]({raw:true})[_0x61a2[32]](function(_0xa8a3xa7){faxaccounts= _0xa8a3xa7})[_0x61a2[28]](function(_0xa8a3x19){faxLogger[_0x61a2[27]](_0x61a2[498],_0xa8a3x19)});function addToCollection(_0xa8a3xa9,_0xa8a3xaa){_0xa8a3xa9[_0x61a2[262]](_0xa8a3xaa)}function updateCollection(_0xa8a3xa9,_0xa8a3xaa){var _0xa8a3xac=_[_0x61a2[496]](_0xa8a3xa9,{id:_0xa8a3xaa[_0x61a2[253]]});if(_0xa8a3xac){_[_0x61a2[268]](_0xa8a3xac,_0xa8a3xaa)}else {_0xa8a3xa9[_0x61a2[499]](_0xa8a3xaa)}}function removeFromCollection(_0xa8a3xa9,_0xa8a3xaa){_[_0x61a2[500]](_0xa8a3xa9,{id:_0xa8a3xaa[_0x61a2[253]]})}function getWidgets(_0xa8a3xaf){_0xa8a3xaf= JSON[_0x61a2[469]](_0xa8a3xaf|| _0x61a2[501]);var _0xa8a3xb0=[];if(_0xa8a3xaf[_0x61a2[502]]){_[_0x61a2[31]](_0xa8a3xaf[_0x61a2[502]],function(_0xa8a3xb1){_0xa8a3xb0[_0x61a2[262]](_[_0x61a2[506]](_[_0x61a2[505]](_0xa8a3xb1[_0x61a2[503]],_0x61a2[504])))});if(_0xa8a3xb0[_0x61a2[336]]){var _0xa8a3xb2=[];_[_0x61a2[31]](_0xa8a3xb0,function(_0xa8a3xb3){_[_0x61a2[31]](_0xa8a3xb3,function(_0xa8a3xb4){_[_0x61a2[193]]([_0x61a2[507],_0x61a2[508],_0x61a2[509]],_0xa8a3xb4[_0x61a2[192]])&& _0xa8a3xb2[_0x61a2[262]]({config:{select:_0xa8a3xb4[_0x61a2[511]][_0x61a2[510]],fields:_0xa8a3xb4[_0x61a2[511]][_0x61a2[512]],condition:_0xa8a3xb4[_0x61a2[511]][_0x61a2[513]],table:_0xa8a3xb4[_0x61a2[511]][_0x61a2[515]][_0x61a2[223]](_0x61a2[514],_0x61a2[183])},id:_0xa8a3xb4[_0x61a2[516]],type:_0xa8a3xb4[_0x61a2[192]]})})});return (_0xa8a3xb2[_0x61a2[336]]?_0xa8a3xb2:null)};return null};return null}function toAddDate(_0xa8a3xb6){switch(_0xa8a3xb6){case _0x61a2[517]:;case _0x61a2[518]:;case _0x61a2[519]:;case _0x61a2[520]:;case _0x61a2[521]:;case _0x61a2[522]:;case _0x61a2[523]:;case _0x61a2[524]:;case _0x61a2[525]:;case _0x61a2[526]:;case _0x61a2[527]:;case _0x61a2[528]:;case _0x61a2[529]:;case _0x61a2[530]:return false;default:return true}}function getCounterWidgetQuery(_0xa8a3xb8,_0xa8a3x5d){return Promise[_0x61a2[290]]()[_0x61a2[32]](function(){return _0xa8a3xb8[_0x61a2[507]]})[_0x61a2[32]](reportBuildUtils[_0x61a2[546]](_0xa8a3x5d))[_0x61a2[32]](function(_0xa8a3xb9){var _0xa8a3xba=util[_0x61a2[59]](_0x61a2[532],_0xa8a3xb8[_0x61a2[510]],_0xa8a3xb8[_0x61a2[507]]);if(_0xa8a3xb8[_0x61a2[513]]&& _0xa8a3xb8[_0x61a2[513]]!== _0x61a2[533]){_0xa8a3xba+= util[_0x61a2[59]](_0x61a2[534],decodeURIComponent(_0xa8a3xb8[_0x61a2[513]]))};if(toAddDate(_0xa8a3xb8[_0x61a2[507]])){_0xa8a3xba+= util[_0x61a2[59]]((_0xa8a3xb8[_0x61a2[513]]&& _0xa8a3xb8[_0x61a2[513]]!== _0x61a2[533])?_0x61a2[535]:_0x61a2[536],moment()[_0x61a2[538]](_0x61a2[537])[_0x61a2[59]](_0x61a2[58]))};if(!_0xa8a3xb9|| _0xa8a3xb9!== _0x61a2[539]){if(_0xa8a3xb9){_0xa8a3xba+= _0xa8a3xb8[_0x61a2[513]]?_0x61a2[540]+ _0xa8a3xb9:_0x61a2[541]+ _0xa8a3xb9};logger[_0x61a2[73]](_0x61a2[542]);logger[_0x61a2[73]](_0xa8a3xba);logger[_0x61a2[73]](_0x61a2[543]);return _0xa8a3xba}else {logger[_0x61a2[27]](_0x61a2[544]);logger[_0x61a2[27]](_0x61a2[545]);logger[_0x61a2[27]](_0x61a2[543]);return []}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[531],_0xa8a3x19[_0x61a2[26]])})}function getPieChartWidgetQuery(_0xa8a3xb8,_0xa8a3x5d){return Promise[_0x61a2[278]]([])[_0x61a2[32]](function(){return _0xa8a3xb8[_0x61a2[507]]})[_0x61a2[32]](reportBuildUtils[_0x61a2[546]](_0xa8a3x5d))[_0x61a2[32]](function(_0xa8a3xb9){var _0xa8a3xbc=[];var _0xa8a3x40;if(_0xa8a3xb8[_0x61a2[512]]){if(_[_0x61a2[548]](_0xa8a3xb8[_0x61a2[512]])){_0xa8a3xb8[_0x61a2[512]][_0x61a2[31]](function(_0xa8a3x82){if(_0xa8a3x82[_0x61a2[549]]&& _0xa8a3x82[_0x61a2[550]]){_0xa8a3xbc[_0x61a2[262]](_0xa8a3x82[_0x61a2[549]]+ _0x61a2[551]+ _0xa8a3x82[_0x61a2[550]]+ _0x61a2[552])}})}else {if(_[_0x61a2[553]](_0xa8a3xb8[_0x61a2[512]])){var _0xa8a3x82=JSON[_0x61a2[469]](_0xa8a3xb8[_0x61a2[512]]);if(_0xa8a3x82[_0x61a2[549]]&& _0xa8a3x82[_0x61a2[550]]){_0xa8a3xbc[_0x61a2[262]](_0xa8a3x82[_0x61a2[549]]+ _0x61a2[551]+ _0xa8a3x82[_0x61a2[550]]+ _0x61a2[552])}}}};var _0xa8a3xbd=_0xa8a3xbc[_0x61a2[336]]?_0xa8a3xbc[_0x61a2[359]](_0x61a2[101]):_0x61a2[554];var _0xa8a3xbe=_0x61a2[183];if(_0xa8a3xb8[_0x61a2[513]]&& _0xa8a3xb8[_0x61a2[513]]!== _0x61a2[555]&& _0xa8a3xb8[_0x61a2[513]]!== _0x61a2[533]){_0xa8a3xbe= util[_0x61a2[59]](_0x61a2[534],decodeURIComponent(_0xa8a3xb8[_0x61a2[513]]))};if(toAddDate(_0xa8a3xb8[_0x61a2[507]])){_0xa8a3xbe+= util[_0x61a2[59]]((_0xa8a3xb8[_0x61a2[513]]&& _0xa8a3xb8[_0x61a2[513]]!== _0x61a2[533])?_0x61a2[535]:_0x61a2[536],moment()[_0x61a2[538]](_0x61a2[537])[_0x61a2[59]](_0x61a2[58]))};if(!_0xa8a3xb9|| _0xa8a3xb9!== _0x61a2[539]){if(_0xa8a3xb9){_0xa8a3xbe+= _0xa8a3xbe?_0x61a2[540]+ _0xa8a3xb9:_0x61a2[541]+ _0xa8a3xb9};var _0xa8a3xba=util[_0x61a2[59]](_0x61a2[556],_0xa8a3xbd,_0xa8a3xb8[_0x61a2[507]],_0xa8a3xbe);logger[_0x61a2[73]](_0x61a2[542]);logger[_0x61a2[73]](_0xa8a3xba);logger[_0x61a2[73]](_0x61a2[543]);return _0xa8a3xba}else {logger[_0x61a2[27]](_0x61a2[544]);logger[_0x61a2[27]](_0x61a2[545]);logger[_0x61a2[27]](_0x61a2[543]);return []}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[547],_0xa8a3x19[_0x61a2[26]])})}function getWidgetQuery(_0xa8a3xb8,_0xa8a3x5d){switch(_0xa8a3xb8[_0x61a2[192]]){case _0x61a2[509]:return getCounterWidgetQuery(_0xa8a3xb8[_0x61a2[511]],_0xa8a3x5d);case _0x61a2[508]:return getPieChartWidgetQuery(_0xa8a3xb8[_0x61a2[511]],_0xa8a3x5d);default:return Promise[_0x61a2[290]]()[_0x61a2[32]](function(){return null})}}function getCustomDashboardValues(_0xa8a3xc1,_0xa8a3x5d){var _0xa8a3xc2={};var _0xa8a3xc3=[],_0xa8a3xc4=[],_0xa8a3xba;return models[_0x61a2[568]][_0x61a2[311]](_0xa8a3xc1)[_0x61a2[32]](function(_0xa8a3xc5){if(!_0xa8a3xc5){logger[_0x61a2[27]](_0x61a2[560],_0xa8a3xc1,_0x61a2[561]);return};var _0xa8a3xb2=getWidgets(_0xa8a3xc5[_0x61a2[562]]);if(_0xa8a3xb2){_[_0x61a2[31]](_0xa8a3xb2,function(_0xa8a3xb8){_0xa8a3xc3[_0x61a2[262]](getWidgetQuery(_0xa8a3xb8,_0xa8a3x5d)[_0x61a2[32]](function(_0xa8a3xba){_0xa8a3xc4[_0x61a2[262]](Promise[_0x61a2[290]]()[_0x61a2[32]](function(){if(_0xa8a3xba){return models[_0x61a2[566]][_0x61a2[567]](_0xa8a3xba,{type:models[_0x61a2[566]][_0x61a2[565]][_0x61a2[564]]})}else {return []}})[_0x61a2[32]](function(_0xa8a3x58){_0xa8a3xc2[_0xa8a3xb8[_0x61a2[253]]]= _0xa8a3x58})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[563],_0xa8a3xb8[_0x61a2[253]],_0xa8a3x19);_0xa8a3xc2[_0xa8a3xb8[_0x61a2[253]]]= []}))}))});return _0xa8a3xc3};return []})[_0x61a2[278]]()[_0x61a2[32]](function(){return _0xa8a3xc4})[_0x61a2[278]]()[_0x61a2[32]](function(){if(!_[_0x61a2[558]](_0xa8a3xc2)){return events[_0x61a2[559]](_0xa8a3xc2,_0xa8a3x5d)}})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[557],_0xa8a3xc1,_0xa8a3x19)})}process[_0x61a2[74]](_0x61a2[282],function(_0xa8a3xc6){switch(_0xa8a3xc6[_0x61a2[282]]){case _0x61a2[569]:;case _0x61a2[570]:;case _0x61a2[572]:networkRewrite(_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[574]:return BPromise[_0x61a2[290]]()[_0x61a2[32]](rewriteContexts(_0xa8a3xc6[_0x61a2[571]],false))[_0x61a2[32]](createHangup(_0xa8a3xc6[_0x61a2[571]]))[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[573],_0xa8a3x19)});case _0x61a2[576]:return BPromise[_0x61a2[290]]()[_0x61a2[32]](rewriteContexts(_0xa8a3xc6[_0x61a2[571]],true))[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[575],_0xa8a3x19)});case _0x61a2[577]:addToCollection(faxaccounts,_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[578]:updateCollection(faxaccounts,_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[579]:removeFromCollection(faxaccounts,_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[580]:trunksRewrite();break;case _0x61a2[581]:rtpRewrite(_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[582]:;case _0x61a2[583]:sendFax(_0xa8a3xc6[_0x61a2[571]],0,_0xa8a3xc6[_0x61a2[48]]);break;case _0x61a2[584]:var _0xa8a3xa6=_[_0x61a2[496]](faxaccounts,{id:_0xa8a3xc6[_0x61a2[571]][_0x61a2[495]]});if(_0xa8a3xa6){webhook(_0xa8a3xc6[_0x61a2[571]],_0xa8a3xa6,_0xa8a3xc6[_0x61a2[41]])};break;case _0x61a2[586]:return amiAction({action:_0x61a2[339],command:_0xa8a3xc6[_0x61a2[588]]})[_0x61a2[32]](function(_0xa8a3x6a){return events[_0x61a2[586]]({type:_0x61a2[587],data:_0xa8a3x6a,socket:_0xa8a3xc6[_0x61a2[585]]})})[_0x61a2[28]](function(_0xa8a3x19){events[_0x61a2[586]]({type:_0x61a2[27],data:_0xa8a3x19,socket:_0xa8a3xc6[_0x61a2[585]]})});case _0x61a2[593]:return amiAction(_0xa8a3xc6[_0x61a2[41]])[_0x61a2[32]](function(_0xa8a3x6a){events[_0x61a2[273]](_0xa8a3xc6[_0x61a2[292]],_0xa8a3xc6[_0x61a2[272]],_0xa8a3xc6[_0x61a2[41]][_0x61a2[590]]);logger[_0x61a2[439]](util[_0x61a2[59]](_0x61a2[591],_0xa8a3xc6[_0x61a2[292]],_0xa8a3xc6[_0x61a2[41]][_0x61a2[590]]?_0x61a2[590]:_0x61a2[592]))})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](util[_0x61a2[59]](_0x61a2[589],_0xa8a3xc6[_0x61a2[292]],_0xa8a3xc6[_0x61a2[41]][_0x61a2[590]]?_0x61a2[313]:_0x61a2[314]),_0xa8a3x19)});case _0x61a2[595]:var _0xa8a3x90=_[_0x61a2[496]](faxaccounts,{id:parseInt(_0xa8a3xc6[_0x61a2[571]][_0x61a2[594]])});if(_0xa8a3x90){webhook(_0xa8a3xc6[_0x61a2[571]],_0xa8a3x90,_0xa8a3xc6[_0x61a2[41]])};break;case _0x61a2[596]:return onSave(_0xa8a3xc6[_0x61a2[571]],_0xa8a3xc6[_0x61a2[48]]);case _0x61a2[597]:return events[_0x61a2[597]](_0xa8a3xc6[_0x61a2[295]]);case _0x61a2[598]:;case _0x61a2[599]:;case _0x61a2[600]:;case _0x61a2[601]:;case _0x61a2[602]:;case _0x61a2[603]:;case _0x61a2[604]:;case _0x61a2[605]:;case _0x61a2[606]:;case _0x61a2[607]:;case _0x61a2[608]:;case _0x61a2[610]:return events[_0x61a2[609]](_0xa8a3xc6);case _0x61a2[612]:return BPromise[_0x61a2[290]]()[_0x61a2[32]](function(){return amiUtil[_0x61a2[612]](amiAction,_0xa8a3xc6[_0x61a2[571]])})[_0x61a2[28]](function(_0xa8a3x19){logger[_0x61a2[27]](_0x61a2[611],_0xa8a3x19)});case _0x61a2[613]:;case _0x61a2[614]:;case _0x61a2[615]:;case _0x61a2[616]:;case _0x61a2[617]:;case _0x61a2[618]:;case _0x61a2[619]:;case _0x61a2[620]:;case _0x61a2[621]:;case _0x61a2[623]:return events[_0x61a2[622]](_0xa8a3xc6);case _0x61a2[628]:switch(_0xa8a3xc6[_0x61a2[507]]){case _0x61a2[625]:return events[_0x61a2[624]]();case _0x61a2[627]:return events[_0x61a2[626]]();default:};break;case _0x61a2[629]:newexten(_0xa8a3xc6[_0x61a2[52]],true);break;case _0x61a2[630]:addToCollection(voiceQueues,_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[631]:updateCollection(voiceQueues,_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[632]:removeFromCollection(voiceQueues,_0xa8a3xc6[_0x61a2[571]]);break;case _0x61a2[633]:getCustomDashboardValues(_0xa8a3xc6[_0x61a2[253]],_0xa8a3xc6[_0x61a2[481]]);break;default:}})