Built motion from commit ee60659.|0.0.144
[motion.git] / server / config / tools / dashboard.js
index c019f36..d6c551a 100644 (file)
@@ -1 +1 @@
-var _0xa991=["\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","\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","\x6C\x6F\x67","\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","\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","\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","\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"];_0xa991[0];var sequelize=require(_0xa991[2])[_0xa991[1]];var models=require(_0xa991[2]);var Util=require(_0xa991[3]);var _=require(_0xa991[4]);var moment=require(_0xa991[5]);var Promise=require(_0xa991[6]);exports[_0xa991[7]]= function(_0x4f80x7){models[_0xa991[9]][_0xa991[8]](function(_0x4f80x8){onWaiting(_0x4f80x7,_0x4f80x8);onAbandon(_0x4f80x7,_0x4f80x8);onComplete(_0x4f80x7,_0x4f80x8);onActive(_0x4f80x7,_0x4f80x8);onAvgAnswerTime(_0x4f80x7,_0x4f80x8);onAvgTalkTime(_0x4f80x7,_0x4f80x8);onAbandonRate(_0x4f80x7,_0x4f80x8);onAnswerRate(_0x4f80x7,_0x4f80x8);onTotalOffered(_0x4f80x7,_0x4f80x8);onUnmanaged(_0x4f80x7,_0x4f80x8)});models[_0xa991[9]][_0xa991[14]](function(_0x4f80x8){if(_0x4f80x8[_0xa991[11]](_0xa991[10])|| _0x4f80x8[_0xa991[11]](_0xa991[12])|| _0x4f80x8[_0xa991[11]](_0xa991[13])){onWaiting(_0x4f80x7,_0x4f80x8);onAbandon(_0x4f80x7,_0x4f80x8);onComplete(_0x4f80x7,_0x4f80x8);onActive(_0x4f80x7,_0x4f80x8);onAvgAnswerTime(_0x4f80x7,_0x4f80x8);onAvgTalkTime(_0x4f80x7,_0x4f80x8);onAbandonRate(_0x4f80x7,_0x4f80x8);onAnswerRate(_0x4f80x7,_0x4f80x8);onTotalOffered(_0x4f80x7,_0x4f80x8);onUnmanaged(_0x4f80x7,_0x4f80x8)}});models[_0xa991[17]][_0xa991[14]](function(_0x4f80x8){if(_0x4f80x8[_0xa991[11]](_0xa991[15])){manualOutboundAnswerRate(_0x4f80x7,_0x4f80x8);manualOutboundAnswered(_0x4f80x7,_0x4f80x8);manualOutbound(_0x4f80x7,_0x4f80x8)};if(_0x4f80x8[_0xa991[11]](_0xa991[16])){manualOutboundAvgDuration(_0x4f80x7,_0x4f80x8);manualOutboundGlobalDuration(_0x4f80x7,_0x4f80x8)}});models[_0xa991[18]][_0xa991[8]](function(_0x4f80x8){_0x4f80x9(_0x4f80x8)});models[_0xa991[18]][_0xa991[14]](function(_0x4f80x8){_0x4f80x9(_0x4f80x8)});models[_0xa991[19]][_0xa991[8]](function(_0x4f80x8){_0x4f80x9(_0x4f80x8)});models[_0xa991[19]][_0xa991[14]](function(_0x4f80x8){_0x4f80x9(_0x4f80x8)});function _0x4f80x9(_0x4f80x8){onNewMail(_0x4f80x7,_0x4f80x8);onOpenMail(_0x4f80x7,_0x4f80x8);onClosedMail(_0x4f80x7,_0x4f80x8);onTimeoutMail(_0x4f80x7,_0x4f80x8);onPendingMail(_0x4f80x7,_0x4f80x8);onWaitingMail(_0x4f80x7,_0x4f80x8)}models[_0xa991[20]][_0xa991[8]](function(_0x4f80x8){_0x4f80xa(_0x4f80x8)});models[_0xa991[20]][_0xa991[14]](function(_0x4f80x8){_0x4f80xa(_0x4f80x8)});models[_0xa991[21]][_0xa991[8]](function(_0x4f80x8){_0x4f80xa(_0x4f80x8)});models[_0xa991[21]][_0xa991[14]](function(_0x4f80x8){_0x4f80xa(_0x4f80x8)});function _0x4f80xa(_0x4f80x8){onNewChat(_0x4f80x7,_0x4f80x8);onOpenChat(_0x4f80x7,_0x4f80x8);onClosedChat(_0x4f80x7,_0x4f80x8);onTimeoutChat(_0x4f80x7,_0x4f80x8);onAbandonedChat(_0x4f80x7,_0x4f80x8);onUnmanagedChat(_0x4f80x7,_0x4f80x8)}models[_0xa991[22]][_0xa991[8]](function(_0x4f80x8){_0x4f80xb(_0x4f80x8)});models[_0xa991[22]][_0xa991[14]](function(_0x4f80x8){_0x4f80xb(_0x4f80x8)});models[_0xa991[23]][_0xa991[8]](function(_0x4f80x8){_0x4f80xb(_0x4f80x8)});models[_0xa991[23]][_0xa991[14]](function(_0x4f80x8){_0x4f80xb(_0x4f80x8)});function _0x4f80xb(_0x4f80x8){onNewFax(_0x4f80x7,_0x4f80x8);onOpenFax(_0x4f80x7,_0x4f80x8);onClosedFax(_0x4f80x7,_0x4f80x8);onTimeoutFax(_0x4f80x7,_0x4f80x8);onPendingFax(_0x4f80x7,_0x4f80x8);onWaitingFax(_0x4f80x7,_0x4f80x8)}models[_0xa991[24]][_0xa991[8]](function(_0x4f80x8){_0x4f80xc(_0x4f80x8)});models[_0xa991[24]][_0xa991[14]](function(_0x4f80x8){_0x4f80xc(_0x4f80x8)});models[_0xa991[25]][_0xa991[8]](function(_0x4f80x8){_0x4f80xc(_0x4f80x8)});models[_0xa991[25]][_0xa991[14]](function(_0x4f80x8){_0x4f80xc(_0x4f80x8)});function _0x4f80xc(_0x4f80x8){onNewSms(_0x4f80x7,_0x4f80x8);onOpenSms(_0x4f80x7,_0x4f80x8);onClosedSms(_0x4f80x7,_0x4f80x8);onTimeoutSms(_0x4f80x7,_0x4f80x8);onPendingSms(_0x4f80x7,_0x4f80x8);onWaitingSms(_0x4f80x7,_0x4f80x8)}};function getVoiceQueues(_0x4f80xe){return function(){switch(_0x4f80xe[_0xa991[38]]){case _0xa991[35]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[31]],{attributes:[_0xa991[32]]})[_0xa991[29]](Util[_0xa991[30]]())[_0xa991[29]](function(_0x4f80xf){return _[_0xa991[28]](_0x4f80xf[_0xa991[26]],_0xa991[27])});default:return models[_0xa991[37]][_0xa991[36]]()[_0xa991[29]](function(_0x4f80x10){return {rows:_0x4f80x10}})[_0xa991[29]](function(_0x4f80xf){return _[_0xa991[28]](_0x4f80xf[_0xa991[26]],_0xa991[27])})}}}function onWaiting(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return models[_0xa991[9]][_0xa991[43]]({where:{queuecallerleaveAt:null,queue:_0x4f80xf}})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[41],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onActive(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return models[_0xa991[9]][_0xa991[43]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x4f80xf}})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[45],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onAbandon(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return models[_0xa991[9]][_0xa991[43]]({where:{queuecallerabandon:true,queue:_0x4f80xf}})})[_0xa991[29]](function(_0x4f80x13){console[_0xa991[47]](_0xa991[46]);_0x4f80x7[_0xa991[42]](_0xa991[46],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onComplete(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return models[_0xa991[9]][_0xa991[43]]({where:{queuecallercomplete:true,queue:_0x4f80xf}})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[48],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onAvgAnswerTime(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return sequelize[_0xa991[57]](_0xa991[51]+ _0x4f80xf[_0xa991[53]](_0xa991[52])+ _0xa991[54],{type:sequelize[_0xa991[56]][_0xa991[55]]})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[49],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onAvgTalkTime(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return sequelize[_0xa991[57]](_0xa991[59]+ _0x4f80xf[_0xa991[53]](_0xa991[52])+ _0xa991[54],{type:sequelize[_0xa991[56]][_0xa991[55]]})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[58],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onAnswerRate(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return sequelize[_0xa991[57]](_0xa991[61]+ _0x4f80xf[_0xa991[53]](_0xa991[52])+ _0xa991[54],{type:sequelize[_0xa991[56]][_0xa991[55]]})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[60],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onAbandonRate(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return sequelize[_0xa991[57]](_0xa991[63]+ _0x4f80xf[_0xa991[53]](_0xa991[52])+ _0xa991[54],{type:sequelize[_0xa991[56]][_0xa991[55]]})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[62],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onTotalOffered(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return sequelize[_0xa991[57]](_0xa991[65]+ _0x4f80xf[_0xa991[53]](_0xa991[52])+ _0xa991[54],{type:sequelize[_0xa991[56]][_0xa991[55]]})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[64],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onUnmanaged(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getVoiceQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80xf){return models[_0xa991[9]][_0xa991[43]]({where:{queuecallerexit:true,queue:_0x4f80xf}})})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[66],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function manualOutbound(_0x4f80x7,_0x4f80x8){console[_0xa991[47]](_0xa991[67]);return models[_0xa991[17]][_0xa991[43]]({where:{type:_0xa991[69]}})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[68],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function manualOutboundGlobalDuration(_0x4f80x7,_0x4f80x8){return sequelize[_0xa991[57]](_0xa991[71],{type:sequelize[_0xa991[56]][_0xa991[55]]})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[70],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function manualOutboundAvgDuration(_0x4f80x7,_0x4f80x8){return sequelize[_0xa991[57]](_0xa991[73],{type:sequelize[_0xa991[56]][_0xa991[55]]})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[72],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function manualOutboundAnswered(_0x4f80x7,_0x4f80x8){return models[_0xa991[17]][_0xa991[43]]({where:{disposition:_0xa991[75],type:_0xa991[69]}})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[74],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function manualOutboundAnswerRate(_0x4f80x7,_0x4f80x8){return sequelize[_0xa991[57]](_0xa991[77],{type:sequelize[_0xa991[56]][_0xa991[55]]})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[76],{value:_0x4f80x13[0][_0xa991[50]]})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function getMailQueues(_0x4f80xe,_0x4f80x23){return function(){switch(_0x4f80xe[_0xa991[38]]){case _0xa991[35]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](Util[_0xa991[83]]({},{attributes:[_0xa991[32]],include:[{raw:true,model:models[_0xa991[34]],attributes:[_0xa991[32]]}]}))[_0xa991[29]](function(_0x4f80xf){if(_0x4f80x23){return {include:{model:models[_0xa991[78]],include:{model:models[_0xa991[79]],include:{model:models[_0xa991[80]],where:{id:_[_0xa991[28]](_0x4f80xf,_0xa991[32])}}}}}}else {var _0x4f80x24=[];_0x4f80xf[_0xa991[26]][_0xa991[82]](function(_0x4f80x25){_0x4f80x24= _[_0xa991[81]](_0x4f80x24,_[_0xa991[28]](_0x4f80x25.Users,_0xa991[32]))});return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf[_0xa991[26]],_0xa991[32]),memberid:_0x4f80x24}}}}});case _0xa991[85]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](function(_0x4f80x26){return _0x4f80x26[_0xa991[84]]({attributes:[_0xa991[32]]})})[_0xa991[29]](function(_0x4f80xf){return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf,_0xa991[32]),memberid:_0x4f80xe[_0xa991[32]]}}}});default:return {}}}}function getChatQueues(_0x4f80xe,_0x4f80x23){return function(){switch(_0x4f80xe[_0xa991[38]]){case _0xa991[35]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](Util[_0xa991[89]]({},{attributes:[_0xa991[32]],include:[{raw:true,model:models[_0xa991[34]],attributes:[_0xa991[32]]}]}))[_0xa991[29]](function(_0x4f80xf){if(_0x4f80x23){return {include:{model:models[_0xa991[86]],include:{model:models[_0xa991[87]],include:{model:models[_0xa991[88]],where:{id:_[_0xa991[28]](_0x4f80xf,_0xa991[32])}}}}}}else {var _0x4f80x24=[];_0x4f80xf[_0xa991[26]][_0xa991[82]](function(_0x4f80x25){_0x4f80x24= _[_0xa991[81]](_0x4f80x24,_[_0xa991[28]](_0x4f80x25.Users,_0xa991[32]))});return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf[_0xa991[26]],_0xa991[32]),memberid:_0x4f80x24}}}}});case _0xa991[85]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](function(_0x4f80x26){return _0x4f80x26[_0xa991[90]]({attributes:[_0xa991[32]]})})[_0xa991[29]](function(_0x4f80xf){return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf,_0xa991[32]),memberid:_0x4f80xe[_0xa991[32]]}}}});default:return {}}}}function getFaxQueues(_0x4f80xe,_0x4f80x23){return function(){switch(_0x4f80xe[_0xa991[38]]){case _0xa991[35]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](Util[_0xa991[94]]({},{attributes:[_0xa991[32]],include:[{raw:true,model:models[_0xa991[34]],attributes:[_0xa991[32]]}]}))[_0xa991[29]](function(_0x4f80xf){if(_0x4f80x23){return {include:{model:models[_0xa991[91]],include:{model:models[_0xa991[92]],include:{model:models[_0xa991[93]],where:{id:_[_0xa991[28]](_0x4f80xf,_0xa991[32])}}}}}}else {var _0x4f80x24=[];_0x4f80xf[_0xa991[26]][_0xa991[82]](function(_0x4f80x25){_0x4f80x24= _[_0xa991[81]](_0x4f80x24,_[_0xa991[28]](_0x4f80x25.Users,_0xa991[32]))});return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf[_0xa991[26]],_0xa991[32]),memberid:_0x4f80x24}}}}});case _0xa991[85]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](function(_0x4f80x26){return _0x4f80x26[_0xa991[95]]({attributes:[_0xa991[32]]})})[_0xa991[29]](function(_0x4f80xf){return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf,_0xa991[32]),memberid:_0x4f80xe[_0xa991[32]]}}}});default:return {}}}}function getSmsQueues(_0x4f80xe,_0x4f80x23){return function(){switch(_0x4f80xe[_0xa991[38]]){case _0xa991[35]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](Util[_0xa991[99]]({},{attributes:[_0xa991[32]],include:[{raw:true,model:models[_0xa991[34]],attributes:[_0xa991[32]]}]}))[_0xa991[29]](function(_0x4f80xf){if(_0x4f80x23){return {include:{model:models[_0xa991[96]],include:{model:models[_0xa991[97]],include:{model:models[_0xa991[98]],where:{id:_[_0xa991[28]](_0x4f80xf,_0xa991[32])}}}}}}else {var _0x4f80x24=[];_0x4f80xf[_0xa991[26]][_0xa991[82]](function(_0x4f80x25){_0x4f80x24= _[_0xa991[81]](_0x4f80x24,_[_0xa991[28]](_0x4f80x25.Users,_0xa991[32]))});return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf[_0xa991[26]],_0xa991[32]),memberid:_0x4f80x24}}}}});case _0xa991[85]:return models[_0xa991[34]][_0xa991[33]](_0x4f80xe[_0xa991[32]],{attributes:[_0xa991[32]]})[_0xa991[29]](function(_0x4f80x26){return _0x4f80x26[_0xa991[100]]({attributes:[_0xa991[32]]})})[_0xa991[29]](function(_0x4f80xf){return {where:{$or:{queue:_[_0xa991[28]](_0x4f80xf,_0xa991[32]),memberid:_0x4f80xe[_0xa991[32]]}}}});default:return {}}}}function onOpenMail(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getMailQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[19]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[102]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[101],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onClosedMail(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getMailQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[19]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[105]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[104],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onNewMail(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getMailQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[19]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[107]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[106],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onWaitingMail(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getMailQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[18]][_0xa991[43]](_[_0xa991[103]]({where:{leaveAt:null}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[108],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onTimeoutMail(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getMailQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[18]][_0xa991[43]](_[_0xa991[103]]({where:{timeout:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[109],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onPendingMail(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getMailQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[19]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[111]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[110],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onOpenChat(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getChatQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[20]][_0xa991[43]](_[_0xa991[103]]({where:{leaveAt:{$ne:null},complete:null,timeout:null}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[112],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onClosedChat(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getChatQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[20]][_0xa991[43]](_[_0xa991[103]]({where:{complete:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[113],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onNewChat(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getChatQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[20]][_0xa991[43]](_[_0xa991[103]]({where:{leaveAt:null}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[114],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onTimeoutChat(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getChatQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[20]][_0xa991[43]](_[_0xa991[103]]({where:{timeout:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[115],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onAbandonedChat(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getChatQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[20]][_0xa991[43]](_[_0xa991[103]]({where:{abandon:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[116],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onUnmanagedChat(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getChatQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[21]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[118]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[117],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onOpenFax(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getFaxQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[23]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[102]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[119],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onClosedFax(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getFaxQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[23]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[105]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[120],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onNewFax(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getFaxQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[23]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[107]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[121],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onTimeoutFax(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getFaxQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[22]][_0xa991[43]](_[_0xa991[103]]({where:{timeout:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[122],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onPendingFax(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getFaxQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[23]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[111]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[123],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onWaitingFax(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getFaxQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[23]][_0xa991[43]](_[_0xa991[103]]({where:{leaveAt:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[124],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onOpenSms(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getSmsQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[25]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[102]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[125],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onClosedSms(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getSmsQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[25]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[105]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[126],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onNewSms(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getSmsQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[25]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[107]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[127],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onTimeoutSms(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getSmsQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[24]][_0xa991[43]](_[_0xa991[103]]({where:{timeout:true}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[128],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onPendingSms(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getSmsQueues(_0x4f80x7,true))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[25]][_0xa991[43]](_[_0xa991[103]]({where:{status:_0xa991[111]}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[129],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}function onWaitingSms(_0x4f80x7,_0x4f80x8){return Promise[_0xa991[44]]([])[_0xa991[29]](getSmsQueues(_0x4f80x7))[_0xa991[29]](function(_0x4f80x2b){return models[_0xa991[24]][_0xa991[43]](_[_0xa991[103]]({where:{leaveAt:null}},_0x4f80x2b))})[_0xa991[29]](function(_0x4f80x13){_0x4f80x7[_0xa991[42]](_0xa991[129],{value:_0x4f80x13})})[_0xa991[40]](function(_0x4f80x12){console[_0xa991[39]](_0x4f80x12)})}
\ 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