Built motion from commit ee60659.|0.0.144
[motion.git] / server / config / tools / dashboard.js
index 1dce7cf..d6c551a 100644 (file)
@@ -1 +1 @@
-var _0xfcab=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x41\x74","\x63\x68\x61\x6E\x67\x65\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x43\x61\x6C\x6C","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x46\x61\x78\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x53\x65\x73\x73\x69\x6F\x6E","\x53\x6D\x73\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x74\x68\x65\x6E","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72\x49\x64","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x55\x73\x65\x72","\x75\x73\x65\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x72\x6F\x6C\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x77\x61\x69\x74\x69\x6E\x67","\x65\x6D\x69\x74","\x63\x6F\x75\x6E\x74","\x61\x6C\x6C","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x63\x74\x69\x76\x65","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x6E\x73\x77\x65\x72\x65\x64","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x76\x67\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x76\x61\x6C\x75\x65","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x68\x6F\x6C\x64\x74\x69\x6D\x65\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x20\x57\x48\x45\x52\x45\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x3D\x20\x31\x20\x20\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x27\x2C\x27","\x6A\x6F\x69\x6E","\x27\x29","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x71\x75\x65\x72\x79","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x76\x67\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x74\x61\x6C\x6B\x74\x69\x6D\x65\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x20\x57\x48\x45\x52\x45\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x3D\x20\x31\x20\x20\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x6E\x73\x77\x65\x72\x72\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x29\x20\x2F\x20\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x29\x20\x2B\x20\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x29\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x62\x61\x6E\x64\x6F\x6E\x72\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x29\x20\x2F\x20\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x29\x20\x2B\x20\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x29\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x6F\x74\x61\x6C\x6F\x66\x66\x65\x72\x65\x64","\x53\x45\x4C\x45\x43\x54\x20\x43\x4F\x55\x4E\x54\x28\x64\x69\x73\x74\x69\x6E\x63\x74\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x6D\x61\x6E\x75\x61\x6C\x4F\x75\x74\x62\x6F\x75\x6E\x64","\x6C\x6F\x67","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x6E\x75\x61\x6C\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x6E\x75\x61\x6C\x6F\x75\x74\x62\x6F\x75\x6E\x64\x67\x6C\x6F\x62\x61\x6C\x64\x75\x72\x61\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x53\x55\x4D\x28\x64\x75\x72\x61\x74\x69\x6F\x6E\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x6E\x75\x61\x6C\x6F\x75\x74\x62\x6F\x75\x6E\x64\x61\x76\x67\x64\x75\x72\x61\x74\x69\x6F\x6E","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x64\x75\x72\x61\x74\x69\x6F\x6E\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x6E\x75\x61\x6C\x6F\x75\x74\x62\x6F\x75\x6E\x64\x61\x6E\x73\x77\x65\x72\x65\x64","\x41\x4E\x53\x57\x45\x52\x45\x44","\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6D\x61\x6E\x75\x61\x6C\x6F\x75\x74\x62\x6F\x75\x6E\x64\x61\x6E\x73\x77\x65\x72\x72\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x49\x46\x28\x64\x69\x73\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3D\x22\x41\x4E\x53\x57\x45\x52\x45\x44\x22\x2C\x20\x31\x2C\x20\x30\x29\x29\x20\x2F\x20\x43\x4F\x55\x4E\x54\x28\x2A\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x20\x57\x48\x45\x52\x45\x20\x74\x79\x70\x65\x3D\x22\x6F\x75\x74\x62\x6F\x75\x6E\x64\x22","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x46\x61\x78\x51\x75\x65\x75\x65","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x53\x6D\x73\x41\x63\x63\x6F\x75\x6E\x74","\x53\x6D\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x53\x6D\x73\x51\x75\x65\x75\x65","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x4F\x50\x45\x4E","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x6D\x65\x72\x67\x65","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x4E\x45\x57","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x77\x61\x69\x74\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67","\x50\x45\x4E\x44\x49\x4E\x47","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x77\x61\x69\x74\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67"];_0xfcab[0];var sequelize=require(_0xfcab[2])[_0xfcab[1]];var models=require(_0xfcab[2]);var Util=require(_0xfcab[3]);var _=require(_0xfcab[4]);var moment=require(_0xfcab[5]);var Promise=require(_0xfcab[6]);exports[_0xfcab[7]]= function(_0xb912x7){models[_0xfcab[9]][_0xfcab[8]](function(_0xb912x8){onWaiting(_0xb912x7,_0xb912x8);onAbandon(_0xb912x7,_0xb912x8);onComplete(_0xb912x7,_0xb912x8);onActive(_0xb912x7,_0xb912x8);onAvgAnswerTime(_0xb912x7,_0xb912x8);onAvgTalkTime(_0xb912x7,_0xb912x8);onAbandonRate(_0xb912x7,_0xb912x8);onAnswerRate(_0xb912x7,_0xb912x8);onTotalOffered(_0xb912x7,_0xb912x8);onUnmanaged(_0xb912x7,_0xb912x8)});models[_0xfcab[9]][_0xfcab[14]](function(_0xb912x8){if(_0xb912x8[_0xfcab[11]](_0xfcab[10])|| _0xb912x8[_0xfcab[11]](_0xfcab[12])|| _0xb912x8[_0xfcab[11]](_0xfcab[13])){onWaiting(_0xb912x7,_0xb912x8);onAbandon(_0xb912x7,_0xb912x8);onComplete(_0xb912x7,_0xb912x8);onActive(_0xb912x7,_0xb912x8);onAvgAnswerTime(_0xb912x7,_0xb912x8);onAvgTalkTime(_0xb912x7,_0xb912x8);onAbandonRate(_0xb912x7,_0xb912x8);onAnswerRate(_0xb912x7,_0xb912x8);onTotalOffered(_0xb912x7,_0xb912x8);onUnmanaged(_0xb912x7,_0xb912x8)}});models[_0xfcab[17]][_0xfcab[14]](function(_0xb912x8){if(_0xb912x8[_0xfcab[11]](_0xfcab[15])){manualOutboundAnswerRate(_0xb912x7,_0xb912x8);manualOutboundAnswered(_0xb912x7,_0xb912x8);manualOutbound(_0xb912x7,_0xb912x8)};if(_0xb912x8[_0xfcab[11]](_0xfcab[16])){manualOutboundAvgDuration(_0xb912x7,_0xb912x8);manualOutboundGlobalDuration(_0xb912x7,_0xb912x8)}});models[_0xfcab[18]][_0xfcab[8]](function(_0xb912x8){_0xb912x9(_0xb912x8)});models[_0xfcab[18]][_0xfcab[14]](function(_0xb912x8){_0xb912x9(_0xb912x8)});models[_0xfcab[19]][_0xfcab[8]](function(_0xb912x8){_0xb912x9(_0xb912x8)});models[_0xfcab[19]][_0xfcab[14]](function(_0xb912x8){_0xb912x9(_0xb912x8)});function _0xb912x9(_0xb912x8){onNewMail(_0xb912x7,_0xb912x8);onOpenMail(_0xb912x7,_0xb912x8);onClosedMail(_0xb912x7,_0xb912x8);onTimeoutMail(_0xb912x7,_0xb912x8);onPendingMail(_0xb912x7,_0xb912x8);onWaitingMail(_0xb912x7,_0xb912x8)}models[_0xfcab[20]][_0xfcab[8]](function(_0xb912x8){_0xb912xa(_0xb912x8)});models[_0xfcab[20]][_0xfcab[14]](function(_0xb912x8){_0xb912xa(_0xb912x8)});models[_0xfcab[21]][_0xfcab[8]](function(_0xb912x8){_0xb912xa(_0xb912x8)});models[_0xfcab[21]][_0xfcab[14]](function(_0xb912x8){_0xb912xa(_0xb912x8)});function _0xb912xa(_0xb912x8){onNewChat(_0xb912x7,_0xb912x8);onOpenChat(_0xb912x7,_0xb912x8);onClosedChat(_0xb912x7,_0xb912x8);onTimeoutChat(_0xb912x7,_0xb912x8);onAbandonedChat(_0xb912x7,_0xb912x8);onUnmanagedChat(_0xb912x7,_0xb912x8)}models[_0xfcab[22]][_0xfcab[8]](function(_0xb912x8){_0xb912xb(_0xb912x8)});models[_0xfcab[22]][_0xfcab[14]](function(_0xb912x8){_0xb912xb(_0xb912x8)});models[_0xfcab[23]][_0xfcab[8]](function(_0xb912x8){_0xb912xb(_0xb912x8)});models[_0xfcab[23]][_0xfcab[14]](function(_0xb912x8){_0xb912xb(_0xb912x8)});function _0xb912xb(_0xb912x8){onNewFax(_0xb912x7,_0xb912x8);onOpenFax(_0xb912x7,_0xb912x8);onClosedFax(_0xb912x7,_0xb912x8);onTimeoutFax(_0xb912x7,_0xb912x8);onPendingFax(_0xb912x7,_0xb912x8);onWaitingFax(_0xb912x7,_0xb912x8)}models[_0xfcab[24]][_0xfcab[8]](function(_0xb912x8){_0xb912xc(_0xb912x8)});models[_0xfcab[24]][_0xfcab[14]](function(_0xb912x8){_0xb912xc(_0xb912x8)});models[_0xfcab[25]][_0xfcab[8]](function(_0xb912x8){_0xb912xc(_0xb912x8)});models[_0xfcab[25]][_0xfcab[14]](function(_0xb912x8){_0xb912xc(_0xb912x8)});function _0xb912xc(_0xb912x8){onNewSms(_0xb912x7,_0xb912x8);onOpenSms(_0xb912x7,_0xb912x8);onClosedSms(_0xb912x7,_0xb912x8);onTimeoutSms(_0xb912x7,_0xb912x8);onPendingSms(_0xb912x7,_0xb912x8);onWaitingSms(_0xb912x7,_0xb912x8)}models[_0xfcab[26]][_0xfcab[8]](function(_0xb912x8){_0xb912xd(_0xb912x8)});models[_0xfcab[26]][_0xfcab[14]](function(_0xb912x8){_0xb912xd(_0xb912x8)});models[_0xfcab[27]][_0xfcab[8]](function(_0xb912x8){_0xb912xd(_0xb912x8)});models[_0xfcab[27]][_0xfcab[14]](function(_0xb912x8){_0xb912xd(_0xb912x8)});function _0xb912xd(_0xb912x8){onNewOpenchannel(_0xb912x7,_0xb912x8);onOpenOpenchannel(_0xb912x7,_0xb912x8);onClosedOpenchannel(_0xb912x7,_0xb912x8);onTimeoutOpenchannel(_0xb912x7,_0xb912x8);onPendingOpenchannel(_0xb912x7,_0xb912x8);onWaitingOpenchannel(_0xb912x7,_0xb912x8)}};function getVoiceQueues(_0xb912xf){return function(){switch(_0xb912xf[_0xfcab[40]]){case _0xfcab[37]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[33]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](Util[_0xfcab[32]]())[_0xfcab[31]](function(_0xb912x10){return _[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[29])});default:return models[_0xfcab[39]][_0xfcab[38]]()[_0xfcab[31]](function(_0xb912x11){return {rows:_0xb912x11}})[_0xfcab[31]](function(_0xb912x10){return _[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[29])})}}}function onWaiting(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return models[_0xfcab[9]][_0xfcab[45]]({where:{queuecallerleaveAt:null,queue:_0xb912x10}})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[43],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onActive(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return models[_0xfcab[9]][_0xfcab[45]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xb912x10}})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[47],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onAbandon(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return models[_0xfcab[9]][_0xfcab[45]]({where:{queuecallerabandon:true,queue:_0xb912x10}})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[48],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onComplete(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return models[_0xfcab[9]][_0xfcab[45]]({where:{queuecallercomplete:true,queue:_0xb912x10}})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[49],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onAvgAnswerTime(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return sequelize[_0xfcab[58]](_0xfcab[52]+ _0xb912x10[_0xfcab[54]](_0xfcab[53])+ _0xfcab[55],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[50],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onAvgTalkTime(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return sequelize[_0xfcab[58]](_0xfcab[60]+ _0xb912x10[_0xfcab[54]](_0xfcab[53])+ _0xfcab[55],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[59],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onAnswerRate(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return sequelize[_0xfcab[58]](_0xfcab[62]+ _0xb912x10[_0xfcab[54]](_0xfcab[53])+ _0xfcab[55],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[61],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onAbandonRate(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return sequelize[_0xfcab[58]](_0xfcab[64]+ _0xb912x10[_0xfcab[54]](_0xfcab[53])+ _0xfcab[55],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[63],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onTotalOffered(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return sequelize[_0xfcab[58]](_0xfcab[66]+ _0xb912x10[_0xfcab[54]](_0xfcab[53])+ _0xfcab[55],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[65],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onUnmanaged(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getVoiceQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x10){return models[_0xfcab[9]][_0xfcab[45]]({where:{queuecallerexit:true,queue:_0xb912x10}})})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[67],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function manualOutbound(_0xb912x7,_0xb912x8){console[_0xfcab[69]](_0xfcab[68]);return models[_0xfcab[17]][_0xfcab[45]]({where:{type:_0xfcab[71]}})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[70],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function manualOutboundGlobalDuration(_0xb912x7,_0xb912x8){return sequelize[_0xfcab[58]](_0xfcab[73],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[72],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function manualOutboundAvgDuration(_0xb912x7,_0xb912x8){return sequelize[_0xfcab[58]](_0xfcab[75],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[74],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function manualOutboundAnswered(_0xb912x7,_0xb912x8){return models[_0xfcab[17]][_0xfcab[45]]({where:{disposition:_0xfcab[77],type:_0xfcab[71]}})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[76],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function manualOutboundAnswerRate(_0xb912x7,_0xb912x8){return sequelize[_0xfcab[58]](_0xfcab[79],{type:sequelize[_0xfcab[57]][_0xfcab[56]]})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[78],{value:_0xb912x14[0][_0xfcab[51]]})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function getMailQueues(_0xb912xf,_0xb912x24){return function(){switch(_0xb912xf[_0xfcab[40]]){case _0xfcab[37]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](Util[_0xfcab[85]]({},{attributes:[_0xfcab[34]],include:[{raw:true,model:models[_0xfcab[36]],attributes:[_0xfcab[34]]}]}))[_0xfcab[31]](function(_0xb912x10){if(_0xb912x24){return {include:{model:models[_0xfcab[80]],include:{model:models[_0xfcab[81]],include:{model:models[_0xfcab[82]],where:{id:_[_0xfcab[30]](_0xb912x10,_0xfcab[34])}}}}}}else {var _0xb912x25=[];_0xb912x10[_0xfcab[28]][_0xfcab[84]](function(_0xb912x26){_0xb912x25= _[_0xfcab[83]](_0xb912x25,_[_0xfcab[30]](_0xb912x26.Users,_0xfcab[34]))});return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[34]),memberid:_0xb912x25}}}}});case _0xfcab[87]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](function(_0xb912x27){return _0xb912x27[_0xfcab[86]]({attributes:[_0xfcab[34]]})})[_0xfcab[31]](function(_0xb912x10){return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10,_0xfcab[34]),memberid:_0xb912xf[_0xfcab[34]]}}}});default:return {}}}}function getChatQueues(_0xb912xf,_0xb912x24){return function(){switch(_0xb912xf[_0xfcab[40]]){case _0xfcab[37]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](Util[_0xfcab[91]]({},{attributes:[_0xfcab[34]],include:[{raw:true,model:models[_0xfcab[36]],attributes:[_0xfcab[34]]}]}))[_0xfcab[31]](function(_0xb912x10){if(_0xb912x24){return {include:{model:models[_0xfcab[88]],include:{model:models[_0xfcab[89]],include:{model:models[_0xfcab[90]],where:{id:_[_0xfcab[30]](_0xb912x10,_0xfcab[34])}}}}}}else {var _0xb912x25=[];_0xb912x10[_0xfcab[28]][_0xfcab[84]](function(_0xb912x26){_0xb912x25= _[_0xfcab[83]](_0xb912x25,_[_0xfcab[30]](_0xb912x26.Users,_0xfcab[34]))});return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[34]),memberid:_0xb912x25}}}}});case _0xfcab[87]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](function(_0xb912x27){return _0xb912x27[_0xfcab[92]]({attributes:[_0xfcab[34]]})})[_0xfcab[31]](function(_0xb912x10){return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10,_0xfcab[34]),memberid:_0xb912xf[_0xfcab[34]]}}}});default:return {}}}}function getFaxQueues(_0xb912xf,_0xb912x24){return function(){switch(_0xb912xf[_0xfcab[40]]){case _0xfcab[37]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](Util[_0xfcab[96]]({},{attributes:[_0xfcab[34]],include:[{raw:true,model:models[_0xfcab[36]],attributes:[_0xfcab[34]]}]}))[_0xfcab[31]](function(_0xb912x10){if(_0xb912x24){return {include:{model:models[_0xfcab[93]],include:{model:models[_0xfcab[94]],include:{model:models[_0xfcab[95]],where:{id:_[_0xfcab[30]](_0xb912x10,_0xfcab[34])}}}}}}else {var _0xb912x25=[];_0xb912x10[_0xfcab[28]][_0xfcab[84]](function(_0xb912x26){_0xb912x25= _[_0xfcab[83]](_0xb912x25,_[_0xfcab[30]](_0xb912x26.Users,_0xfcab[34]))});return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[34]),memberid:_0xb912x25}}}}});case _0xfcab[87]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](function(_0xb912x27){return _0xb912x27[_0xfcab[97]]({attributes:[_0xfcab[34]]})})[_0xfcab[31]](function(_0xb912x10){return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10,_0xfcab[34]),memberid:_0xb912xf[_0xfcab[34]]}}}});default:return {}}}}function getSmsQueues(_0xb912xf,_0xb912x24){return function(){switch(_0xb912xf[_0xfcab[40]]){case _0xfcab[37]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](Util[_0xfcab[101]]({},{attributes:[_0xfcab[34]],include:[{raw:true,model:models[_0xfcab[36]],attributes:[_0xfcab[34]]}]}))[_0xfcab[31]](function(_0xb912x10){if(_0xb912x24){return {include:{model:models[_0xfcab[98]],include:{model:models[_0xfcab[99]],include:{model:models[_0xfcab[100]],where:{id:_[_0xfcab[30]](_0xb912x10,_0xfcab[34])}}}}}}else {var _0xb912x25=[];_0xb912x10[_0xfcab[28]][_0xfcab[84]](function(_0xb912x26){_0xb912x25= _[_0xfcab[83]](_0xb912x25,_[_0xfcab[30]](_0xb912x26.Users,_0xfcab[34]))});return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[34]),memberid:_0xb912x25}}}}});case _0xfcab[87]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](function(_0xb912x27){return _0xb912x27[_0xfcab[102]]({attributes:[_0xfcab[34]]})})[_0xfcab[31]](function(_0xb912x10){return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10,_0xfcab[34]),memberid:_0xb912xf[_0xfcab[34]]}}}});default:return {}}}}function getOpenchannelQueues(_0xb912xf,_0xb912x24){return function(){switch(_0xb912xf[_0xfcab[40]]){case _0xfcab[37]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](Util[_0xfcab[106]]({},{attributes:[_0xfcab[34]],include:[{raw:true,model:models[_0xfcab[36]],attributes:[_0xfcab[34]]}]}))[_0xfcab[31]](function(_0xb912x10){if(_0xb912x24){return {include:{model:models[_0xfcab[103]],include:{model:models[_0xfcab[104]],include:{model:models[_0xfcab[105]],where:{id:_[_0xfcab[30]](_0xb912x10,_0xfcab[34])}}}}}}else {var _0xb912x25=[];_0xb912x10[_0xfcab[28]][_0xfcab[84]](function(_0xb912x26){_0xb912x25= _[_0xfcab[83]](_0xb912x25,_[_0xfcab[30]](_0xb912x26.Users,_0xfcab[34]))});return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10[_0xfcab[28]],_0xfcab[34]),memberid:_0xb912x25}}}}});case _0xfcab[87]:return models[_0xfcab[36]][_0xfcab[35]](_0xb912xf[_0xfcab[34]],{attributes:[_0xfcab[34]]})[_0xfcab[31]](function(_0xb912x27){return _0xb912x27[_0xfcab[107]]({attributes:[_0xfcab[34]]})})[_0xfcab[31]](function(_0xb912x10){return {where:{$or:{queue:_[_0xfcab[30]](_0xb912x10,_0xfcab[34]),memberid:_0xb912xf[_0xfcab[34]]}}}});default:return {}}}}function onOpenMail(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getMailQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[19]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[109],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[108],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onClosedMail(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getMailQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[19]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[114],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[113],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onNewMail(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getMailQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[19]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[116],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[115],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onWaitingMail(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getMailQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[18]][_0xfcab[45]](_[_0xfcab[112]]({where:{leaveAt:null}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[117],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onTimeoutMail(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getMailQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[18]][_0xfcab[45]](_[_0xfcab[112]]({where:{timeout:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[118],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onPendingMail(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getMailQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[19]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[120],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[119],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onOpenChat(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getChatQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[20]][_0xfcab[45]](_[_0xfcab[112]]({where:{leaveAt:{$ne:null},complete:null,timeout:null}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[121],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onClosedChat(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getChatQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[20]][_0xfcab[45]](_[_0xfcab[112]]({where:{complete:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[122],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onNewChat(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getChatQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[20]][_0xfcab[45]](_[_0xfcab[112]]({where:{leaveAt:null}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[123],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onTimeoutChat(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getChatQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[20]][_0xfcab[45]](_[_0xfcab[112]]({where:{timeout:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[124],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onAbandonedChat(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getChatQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[20]][_0xfcab[45]](_[_0xfcab[112]]({where:{abandon:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[125],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onUnmanagedChat(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getChatQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[21]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[127],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[126],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onOpenFax(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getFaxQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[23]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[109],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[128],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onClosedFax(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getFaxQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[23]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[114],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[129],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onNewFax(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getFaxQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[23]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[116],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[130],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onTimeoutFax(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getFaxQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[22]][_0xfcab[45]](_[_0xfcab[112]]({where:{timeout:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[131],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onPendingFax(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getFaxQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[23]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[120],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[132],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onWaitingFax(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getFaxQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[23]][_0xfcab[45]](_[_0xfcab[112]]({where:{leaveAt:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[133],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onOpenSms(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getSmsQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[25]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[109],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[134],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onClosedSms(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getSmsQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[25]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[114],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[135],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onNewSms(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getSmsQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[25]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[116],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[136],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onTimeoutSms(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getSmsQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[24]][_0xfcab[45]](_[_0xfcab[112]]({where:{timeout:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[137],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onPendingSms(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getSmsQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[25]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[120],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[138],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onWaitingSms(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getSmsQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[24]][_0xfcab[45]](_[_0xfcab[112]]({where:{leaveAt:null}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[138],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onOpenOpenchannel(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getOpenchannelQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[27]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[109],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[139],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onClosedOpenchannel(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getOpenchannelQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[27]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[114],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[140],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onNewOpenchannel(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getOpenchannelQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[27]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[116],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[141],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onTimeoutOpenchannel(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getOpenchannelQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[26]][_0xfcab[45]](_[_0xfcab[112]]({where:{timeout:true}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[142],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onPendingOpenchannel(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getOpenchannelQueues(_0xb912x7,true))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[27]][_0xfcab[45]](_[_0xfcab[112]]({where:{status:_0xfcab[120],updatedAt:{$gte:moment()[_0xfcab[111]](_0xfcab[110])}}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[143],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}function onWaitingOpenchannel(_0xb912x7,_0xb912x8){return Promise[_0xfcab[46]]([])[_0xfcab[31]](getOpenchannelQueues(_0xb912x7))[_0xfcab[31]](function(_0xb912x2d){return models[_0xfcab[26]][_0xfcab[45]](_[_0xfcab[112]]({where:{leaveAt:null}},_0xb912x2d))})[_0xfcab[31]](function(_0xb912x14){_0xb912x7[_0xfcab[44]](_0xfcab[143],{value:_0xb912x14})})[_0xfcab[42]](function(_0xb912x13){console[_0xfcab[41]](_0xb912x13)})}
\ No newline at end of file
+var _0x6c50=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x72\x65\x67\x69\x73\x74\x65\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x4D\x61\x69\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x43\x68\x61\x74\x53\x65\x73\x73\x69\x6F\x6E","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x46\x61\x78\x53\x65\x73\x73\x69\x6F\x6E","\x46\x61\x78\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x53\x6D\x73\x53\x65\x73\x73\x69\x6F\x6E","\x53\x6D\x73\x52\x6F\x6F\x6D","\x52\x65\x70\x6F\x72\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x53\x65\x73\x73\x69\x6F\x6E","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x4D\x61\x69\x6C\x51\x75\x65\x75\x65","\x69\x64","\x6D\x61\x70","\x75\x6E\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x72\x6F\x77\x73","\x74\x68\x65\x6E","\x55\x73\x65\x72","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x75\x73\x65\x72","\x67\x65\x74\x4D\x61\x69\x6C\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x72\x6F\x6C\x65","\x43\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x43\x68\x61\x74\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x43\x68\x61\x74\x51\x75\x65\x75\x65","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x43\x68\x61\x74\x51\x75\x65\x75\x65\x73","\x46\x61\x78\x41\x63\x63\x6F\x75\x6E\x74","\x46\x61\x78\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x46\x61\x78\x51\x75\x65\x75\x65","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x46\x61\x78\x51\x75\x65\x75\x65\x73","\x53\x6D\x73\x41\x63\x63\x6F\x75\x6E\x74","\x53\x6D\x73\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x53\x6D\x73\x51\x75\x65\x75\x65","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x53\x6D\x73\x51\x75\x65\x75\x65\x73","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x4F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x51\x75\x65\x75\x65\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x65\x6D\x69\x74","\x4F\x50\x45\x4E","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\x6D\x65\x72\x67\x65","\x63\x6F\x75\x6E\x74","\x61\x6C\x6C","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x43\x4C\x4F\x53\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x4E\x45\x57","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x77\x61\x69\x74\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6D\x61\x69\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67","\x50\x45\x4E\x44\x49\x4E\x47","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x63\x68\x61\x74\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x66\x61\x78\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x77\x61\x69\x74\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x73\x6D\x73\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6F\x70\x65\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x63\x6C\x6F\x73\x65\x64","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x6E\x65\x77","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x74\x69\x6D\x65\x6F\x75\x74","\x72\x65\x70\x6F\x72\x74\x5F\x6F\x70\x65\x6E\x63\x68\x61\x6E\x6E\x65\x6C\x5F\x64\x61\x73\x68\x62\x6F\x61\x72\x64\x3A\x70\x65\x6E\x64\x69\x6E\x67"];_0x6c50[0];var sequelize=require(_0x6c50[2])[_0x6c50[1]];var models=require(_0x6c50[2]);var Util=require(_0x6c50[3]);var _=require(_0x6c50[4]);var moment=require(_0x6c50[5]);var Promise=require(_0x6c50[6]);exports[_0x6c50[7]]= function(_0xb3cdx7){models[_0x6c50[9]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdx9(_0xb3cdx8)});models[_0x6c50[9]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdx9(_0xb3cdx8)});models[_0x6c50[11]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdx9(_0xb3cdx8)});models[_0x6c50[11]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdx9(_0xb3cdx8)});function _0xb3cdx9(_0xb3cdx8){onNewMail(_0xb3cdx7,_0xb3cdx8);onOpenMail(_0xb3cdx7,_0xb3cdx8);onClosedMail(_0xb3cdx7,_0xb3cdx8);onTimeoutMail(_0xb3cdx7,_0xb3cdx8);onPendingMail(_0xb3cdx7,_0xb3cdx8);onWaitingMail(_0xb3cdx7,_0xb3cdx8)}models[_0x6c50[12]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxa(_0xb3cdx8)});models[_0x6c50[12]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxa(_0xb3cdx8)});models[_0x6c50[13]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxa(_0xb3cdx8)});models[_0x6c50[13]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxa(_0xb3cdx8)});function _0xb3cdxa(_0xb3cdx8){onNewChat(_0xb3cdx7,_0xb3cdx8);onOpenChat(_0xb3cdx7,_0xb3cdx8);onClosedChat(_0xb3cdx7,_0xb3cdx8);onTimeoutChat(_0xb3cdx7,_0xb3cdx8);onAbandonedChat(_0xb3cdx7,_0xb3cdx8);onUnmanagedChat(_0xb3cdx7,_0xb3cdx8)}models[_0x6c50[14]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxb(_0xb3cdx8)});models[_0x6c50[14]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxb(_0xb3cdx8)});models[_0x6c50[15]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxb(_0xb3cdx8)});models[_0x6c50[15]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxb(_0xb3cdx8)});function _0xb3cdxb(_0xb3cdx8){onNewFax(_0xb3cdx7,_0xb3cdx8);onOpenFax(_0xb3cdx7,_0xb3cdx8);onClosedFax(_0xb3cdx7,_0xb3cdx8);onTimeoutFax(_0xb3cdx7,_0xb3cdx8);onPendingFax(_0xb3cdx7,_0xb3cdx8);onWaitingFax(_0xb3cdx7,_0xb3cdx8)}models[_0x6c50[16]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxc(_0xb3cdx8)});models[_0x6c50[16]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxc(_0xb3cdx8)});models[_0x6c50[17]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxc(_0xb3cdx8)});models[_0x6c50[17]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxc(_0xb3cdx8)});function _0xb3cdxc(_0xb3cdx8){onNewSms(_0xb3cdx7,_0xb3cdx8);onOpenSms(_0xb3cdx7,_0xb3cdx8);onClosedSms(_0xb3cdx7,_0xb3cdx8);onTimeoutSms(_0xb3cdx7,_0xb3cdx8);onPendingSms(_0xb3cdx7,_0xb3cdx8);onWaitingSms(_0xb3cdx7,_0xb3cdx8)}models[_0x6c50[18]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxd(_0xb3cdx8)});models[_0x6c50[18]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxd(_0xb3cdx8)});models[_0x6c50[19]][_0x6c50[8]](function(_0xb3cdx8){_0xb3cdxd(_0xb3cdx8)});models[_0x6c50[19]][_0x6c50[10]](function(_0xb3cdx8){_0xb3cdxd(_0xb3cdx8)});function _0xb3cdxd(_0xb3cdx8){onNewOpenchannel(_0xb3cdx7,_0xb3cdx8);onOpenOpenchannel(_0xb3cdx7,_0xb3cdx8);onClosedOpenchannel(_0xb3cdx7,_0xb3cdx8);onTimeoutOpenchannel(_0xb3cdx7,_0xb3cdx8);onPendingOpenchannel(_0xb3cdx7,_0xb3cdx8);onWaitingOpenchannel(_0xb3cdx7,_0xb3cdx8)}};function getMailQueues(_0xb3cdxf,_0xb3cdx10){return function(){switch(_0xb3cdxf[_0x6c50[36]]){case _0x6c50[33]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](Util[_0x6c50[30]]({},{attributes:[_0x6c50[23]],include:[{raw:true,model:models[_0x6c50[29]],attributes:[_0x6c50[23]]}]}))[_0x6c50[28]](function(_0xb3cdx11){if(_0xb3cdx10){return {include:{model:models[_0x6c50[20]],include:{model:models[_0x6c50[21]],include:{model:models[_0x6c50[22]],where:{id:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23])}}}}}}else {var _0xb3cdx12=[];_0xb3cdx11[_0x6c50[27]][_0x6c50[26]](function(_0xb3cdx13){_0xb3cdx12= _[_0x6c50[25]](_0xb3cdx12,_[_0x6c50[24]](_0xb3cdx13.Users,_0x6c50[23]))});return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11[_0x6c50[27]],_0x6c50[23]),memberid:_0xb3cdx12}}}}});case _0x6c50[35]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](function(_0xb3cdx14){return _0xb3cdx14[_0x6c50[34]]({attributes:[_0x6c50[23]]})})[_0x6c50[28]](function(_0xb3cdx11){return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23]),memberid:_0xb3cdxf[_0x6c50[31]]}}}});default:return {}}}}function getChatQueues(_0xb3cdxf,_0xb3cdx10){return function(){switch(_0xb3cdxf[_0x6c50[36]]){case _0x6c50[33]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](Util[_0x6c50[40]]({},{attributes:[_0x6c50[23]],include:[{raw:true,model:models[_0x6c50[29]],attributes:[_0x6c50[23]]}]}))[_0x6c50[28]](function(_0xb3cdx11){if(_0xb3cdx10){return {include:{model:models[_0x6c50[37]],include:{model:models[_0x6c50[38]],include:{model:models[_0x6c50[39]],where:{id:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23])}}}}}}else {var _0xb3cdx12=[];_0xb3cdx11[_0x6c50[27]][_0x6c50[26]](function(_0xb3cdx13){_0xb3cdx12= _[_0x6c50[25]](_0xb3cdx12,_[_0x6c50[24]](_0xb3cdx13.Users,_0x6c50[23]))});return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11[_0x6c50[27]],_0x6c50[23]),memberid:_0xb3cdx12}}}}});case _0x6c50[35]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](function(_0xb3cdx14){return _0xb3cdx14[_0x6c50[41]]({attributes:[_0x6c50[23]]})})[_0x6c50[28]](function(_0xb3cdx11){return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23]),memberid:_0xb3cdxf[_0x6c50[31]]}}}});default:return {}}}}function getFaxQueues(_0xb3cdxf,_0xb3cdx10){return function(){switch(_0xb3cdxf[_0x6c50[36]]){case _0x6c50[33]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](Util[_0x6c50[45]]({},{attributes:[_0x6c50[23]],include:[{raw:true,model:models[_0x6c50[29]],attributes:[_0x6c50[23]]}]}))[_0x6c50[28]](function(_0xb3cdx11){if(_0xb3cdx10){return {include:{model:models[_0x6c50[42]],include:{model:models[_0x6c50[43]],include:{model:models[_0x6c50[44]],where:{id:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23])}}}}}}else {var _0xb3cdx12=[];_0xb3cdx11[_0x6c50[27]][_0x6c50[26]](function(_0xb3cdx13){_0xb3cdx12= _[_0x6c50[25]](_0xb3cdx12,_[_0x6c50[24]](_0xb3cdx13.Users,_0x6c50[23]))});return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11[_0x6c50[27]],_0x6c50[23]),memberid:_0xb3cdx12}}}}});case _0x6c50[35]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](function(_0xb3cdx14){return _0xb3cdx14[_0x6c50[46]]({attributes:[_0x6c50[23]]})})[_0x6c50[28]](function(_0xb3cdx11){return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23]),memberid:_0xb3cdxf[_0x6c50[31]]}}}});default:return {}}}}function getSmsQueues(_0xb3cdxf,_0xb3cdx10){return function(){switch(_0xb3cdxf[_0x6c50[36]]){case _0x6c50[33]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](Util[_0x6c50[50]]({},{attributes:[_0x6c50[23]],include:[{raw:true,model:models[_0x6c50[29]],attributes:[_0x6c50[23]]}]}))[_0x6c50[28]](function(_0xb3cdx11){if(_0xb3cdx10){return {include:{model:models[_0x6c50[47]],include:{model:models[_0x6c50[48]],include:{model:models[_0x6c50[49]],where:{id:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23])}}}}}}else {var _0xb3cdx12=[];_0xb3cdx11[_0x6c50[27]][_0x6c50[26]](function(_0xb3cdx13){_0xb3cdx12= _[_0x6c50[25]](_0xb3cdx12,_[_0x6c50[24]](_0xb3cdx13.Users,_0x6c50[23]))});return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11[_0x6c50[27]],_0x6c50[23]),memberid:_0xb3cdx12}}}}});case _0x6c50[35]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](function(_0xb3cdx14){return _0xb3cdx14[_0x6c50[51]]({attributes:[_0x6c50[23]]})})[_0x6c50[28]](function(_0xb3cdx11){return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23]),memberid:_0xb3cdxf[_0x6c50[31]]}}}});default:return {}}}}function getOpenchannelQueues(_0xb3cdxf,_0xb3cdx10){return function(){switch(_0xb3cdxf[_0x6c50[36]]){case _0x6c50[33]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](Util[_0x6c50[55]]({},{attributes:[_0x6c50[23]],include:[{raw:true,model:models[_0x6c50[29]],attributes:[_0x6c50[23]]}]}))[_0x6c50[28]](function(_0xb3cdx11){if(_0xb3cdx10){return {include:{model:models[_0x6c50[52]],include:{model:models[_0x6c50[53]],include:{model:models[_0x6c50[54]],where:{id:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23])}}}}}}else {var _0xb3cdx12=[];_0xb3cdx11[_0x6c50[27]][_0x6c50[26]](function(_0xb3cdx13){_0xb3cdx12= _[_0x6c50[25]](_0xb3cdx12,_[_0x6c50[24]](_0xb3cdx13.Users,_0x6c50[23]))});return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11[_0x6c50[27]],_0x6c50[23]),memberid:_0xb3cdx12}}}}});case _0x6c50[35]:return models[_0x6c50[29]][_0x6c50[32]](_0xb3cdxf[_0x6c50[31]],{attributes:[_0x6c50[23]]})[_0x6c50[28]](function(_0xb3cdx14){return _0xb3cdx14[_0x6c50[56]]({attributes:[_0x6c50[23]]})})[_0x6c50[28]](function(_0xb3cdx11){return {where:{$or:{queue:_[_0x6c50[24]](_0xb3cdx11,_0x6c50[23]),memberid:_0xb3cdxf[_0x6c50[31]]}}}});default:return {}}}}function onOpenMail(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getMailQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[11]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[61],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[59],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onClosedMail(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getMailQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[11]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[68],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[67],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onNewMail(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getMailQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[11]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[70],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[69],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onWaitingMail(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getMailQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[9]][_0x6c50[65]](_[_0x6c50[64]]({where:{leaveAt:null}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[71],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onTimeoutMail(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getMailQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[9]][_0x6c50[65]](_[_0x6c50[64]]({where:{timeout:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[72],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onPendingMail(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getMailQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[11]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[74],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[73],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onOpenChat(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getChatQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[12]][_0x6c50[65]](_[_0x6c50[64]]({where:{leaveAt:{$ne:null},complete:null,timeout:null}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[75],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onClosedChat(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getChatQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[12]][_0x6c50[65]](_[_0x6c50[64]]({where:{complete:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[76],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onNewChat(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getChatQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[12]][_0x6c50[65]](_[_0x6c50[64]]({where:{leaveAt:null}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[77],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onTimeoutChat(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getChatQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[12]][_0x6c50[65]](_[_0x6c50[64]]({where:{timeout:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[78],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onAbandonedChat(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getChatQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[12]][_0x6c50[65]](_[_0x6c50[64]]({where:{abandon:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[79],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onUnmanagedChat(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getChatQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[13]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[81],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[80],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onOpenFax(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getFaxQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[15]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[61],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[82],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onClosedFax(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getFaxQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[15]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[68],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[83],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onNewFax(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getFaxQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[15]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[70],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[84],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onTimeoutFax(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getFaxQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[14]][_0x6c50[65]](_[_0x6c50[64]]({where:{timeout:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[85],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onPendingFax(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getFaxQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[15]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[74],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[86],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onWaitingFax(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getFaxQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[14]][_0x6c50[65]](_[_0x6c50[64]]({where:{leaveAt:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[87],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onOpenSms(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getSmsQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[17]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[61],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[88],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onClosedSms(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getSmsQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[17]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[68],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[89],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onNewSms(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getSmsQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[17]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[70],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[90],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onTimeoutSms(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getSmsQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[16]][_0x6c50[65]](_[_0x6c50[64]]({where:{timeout:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[91],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onPendingSms(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getSmsQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[17]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[74],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[92],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onWaitingSms(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getSmsQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[16]][_0x6c50[65]](_[_0x6c50[64]]({where:{leaveAt:null}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[92],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onOpenOpenchannel(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getOpenchannelQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[19]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[61],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[93],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onClosedOpenchannel(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getOpenchannelQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[19]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[68],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[94],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onNewOpenchannel(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getOpenchannelQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[19]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[70],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[95],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onTimeoutOpenchannel(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getOpenchannelQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[18]][_0x6c50[65]](_[_0x6c50[64]]({where:{timeout:true}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[96],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onPendingOpenchannel(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getOpenchannelQueues(_0xb3cdx7,true))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[19]][_0x6c50[65]](_[_0x6c50[64]]({where:{status:_0x6c50[74],updatedAt:{$gte:moment()[_0x6c50[63]](_0x6c50[62])}}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[97],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}function onWaitingOpenchannel(_0xb3cdx7,_0xb3cdx8){return Promise[_0x6c50[66]]([])[_0x6c50[28]](getOpenchannelQueues(_0xb3cdx7))[_0x6c50[28]](function(_0xb3cdx1c){return models[_0x6c50[18]][_0x6c50[65]](_[_0x6c50[64]]({where:{leaveAt:null}},_0xb3cdx1c))})[_0x6c50[28]](function(_0xb3cdx1b){_0xb3cdx7[_0x6c50[60]](_0x6c50[97],{value:_0xb3cdx1b})})[_0x6c50[58]](function(_0xb3cdx1a){console[_0x6c50[57]](_0xb3cdx1a)})}
\ No newline at end of file