1 var _0xb8c5=["\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","\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"];_0xb8c5[0];var sequelize=require(_0xb8c5[2])[_0xb8c5[1]];var models=require(_0xb8c5[2]);var Util=require(_0xb8c5[3]);var _=require(_0xb8c5[4]);var moment=require(_0xb8c5[5]);var Promise=require(_0xb8c5[6]);exports[_0xb8c5[7]]= function(_0x49c3x7){models[_0xb8c5[9]][_0xb8c5[8]](function(_0x49c3x8){onWaiting(_0x49c3x7,_0x49c3x8);onAbandon(_0x49c3x7,_0x49c3x8);onComplete(_0x49c3x7,_0x49c3x8);onActive(_0x49c3x7,_0x49c3x8);onAvgAnswerTime(_0x49c3x7,_0x49c3x8);onAvgTalkTime(_0x49c3x7,_0x49c3x8);onAbandonRate(_0x49c3x7,_0x49c3x8);onAnswerRate(_0x49c3x7,_0x49c3x8);onTotalOffered(_0x49c3x7,_0x49c3x8);onUnmanaged(_0x49c3x7,_0x49c3x8)});models[_0xb8c5[9]][_0xb8c5[14]](function(_0x49c3x8){if(_0x49c3x8[_0xb8c5[11]](_0xb8c5[10])|| _0x49c3x8[_0xb8c5[11]](_0xb8c5[12])|| _0x49c3x8[_0xb8c5[11]](_0xb8c5[13])){onWaiting(_0x49c3x7,_0x49c3x8);onAbandon(_0x49c3x7,_0x49c3x8);onComplete(_0x49c3x7,_0x49c3x8);onActive(_0x49c3x7,_0x49c3x8);onAvgAnswerTime(_0x49c3x7,_0x49c3x8);onAvgTalkTime(_0x49c3x7,_0x49c3x8);onAbandonRate(_0x49c3x7,_0x49c3x8);onAnswerRate(_0x49c3x7,_0x49c3x8);onTotalOffered(_0x49c3x7,_0x49c3x8);onUnmanaged(_0x49c3x7,_0x49c3x8)}});models[_0xb8c5[15]][_0xb8c5[8]](function(_0x49c3x8){manualOutboundAnswerRate(_0x49c3x7,_0x49c3x8);manualOutboundAnswered(_0x49c3x7,_0x49c3x8);manualOutbound(_0x49c3x7,_0x49c3x8);manualOutboundAvgDuration(_0x49c3x7,_0x49c3x8);manualOutboundGlobalDuration(_0x49c3x7,_0x49c3x8)});models[_0xb8c5[15]][_0xb8c5[14]](function(_0x49c3x8){manualOutboundAnswerRate(_0x49c3x7,_0x49c3x8);manualOutboundAnswered(_0x49c3x7,_0x49c3x8);manualOutbound(_0x49c3x7,_0x49c3x8);manualOutboundAvgDuration(_0x49c3x7,_0x49c3x8);manualOutboundGlobalDuration(_0x49c3x7,_0x49c3x8)});models[_0xb8c5[16]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3x9(_0x49c3x8)});models[_0xb8c5[16]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3x9(_0x49c3x8)});models[_0xb8c5[17]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3x9(_0x49c3x8)});models[_0xb8c5[17]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3x9(_0x49c3x8)});function _0x49c3x9(_0x49c3x8){onNewMail(_0x49c3x7,_0x49c3x8);onOpenMail(_0x49c3x7,_0x49c3x8);onClosedMail(_0x49c3x7,_0x49c3x8);onTimeoutMail(_0x49c3x7,_0x49c3x8);onPendingMail(_0x49c3x7,_0x49c3x8);onWaitingMail(_0x49c3x7,_0x49c3x8)}models[_0xb8c5[18]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xa(_0x49c3x8)});models[_0xb8c5[18]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xa(_0x49c3x8)});models[_0xb8c5[19]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xa(_0x49c3x8)});models[_0xb8c5[19]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xa(_0x49c3x8)});function _0x49c3xa(_0x49c3x8){onNewChat(_0x49c3x7,_0x49c3x8);onOpenChat(_0x49c3x7,_0x49c3x8);onClosedChat(_0x49c3x7,_0x49c3x8);onTimeoutChat(_0x49c3x7,_0x49c3x8);onAbandonedChat(_0x49c3x7,_0x49c3x8);onUnmanagedChat(_0x49c3x7,_0x49c3x8)}models[_0xb8c5[20]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xb(_0x49c3x8)});models[_0xb8c5[20]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xb(_0x49c3x8)});models[_0xb8c5[21]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xb(_0x49c3x8)});models[_0xb8c5[21]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xb(_0x49c3x8)});function _0x49c3xb(_0x49c3x8){onNewFax(_0x49c3x7,_0x49c3x8);onOpenFax(_0x49c3x7,_0x49c3x8);onClosedFax(_0x49c3x7,_0x49c3x8);onTimeoutFax(_0x49c3x7,_0x49c3x8);onPendingFax(_0x49c3x7,_0x49c3x8);onWaitingFax(_0x49c3x7,_0x49c3x8)}models[_0xb8c5[22]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xc(_0x49c3x8)});models[_0xb8c5[22]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xc(_0x49c3x8)});models[_0xb8c5[23]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xc(_0x49c3x8)});models[_0xb8c5[23]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xc(_0x49c3x8)});function _0x49c3xc(_0x49c3x8){onNewSms(_0x49c3x7,_0x49c3x8);onOpenSms(_0x49c3x7,_0x49c3x8);onClosedSms(_0x49c3x7,_0x49c3x8);onTimeoutSms(_0x49c3x7,_0x49c3x8);onPendingSms(_0x49c3x7,_0x49c3x8);onWaitingSms(_0x49c3x7,_0x49c3x8)}models[_0xb8c5[24]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xd(_0x49c3x8)});models[_0xb8c5[24]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xd(_0x49c3x8)});models[_0xb8c5[25]][_0xb8c5[8]](function(_0x49c3x8){_0x49c3xd(_0x49c3x8)});models[_0xb8c5[25]][_0xb8c5[14]](function(_0x49c3x8){_0x49c3xd(_0x49c3x8)});function _0x49c3xd(_0x49c3x8){onNewOpenchannel(_0x49c3x7,_0x49c3x8);onOpenOpenchannel(_0x49c3x7,_0x49c3x8);onClosedOpenchannel(_0x49c3x7,_0x49c3x8);onTimeoutOpenchannel(_0x49c3x7,_0x49c3x8);onPendingOpenchannel(_0x49c3x7,_0x49c3x8);onWaitingOpenchannel(_0x49c3x7,_0x49c3x8)}};function getVoiceQueues(_0x49c3xf){return function(){switch(_0x49c3xf[_0xb8c5[38]]){case _0xb8c5[35]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[31]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](Util[_0xb8c5[30]]())[_0xb8c5[29]](function(_0x49c3x10){return _[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[27])});default:return models[_0xb8c5[37]][_0xb8c5[36]]()[_0xb8c5[29]](function(_0x49c3x11){return {rows:_0x49c3x11}})[_0xb8c5[29]](function(_0x49c3x10){return _[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[27])})}}}function onWaiting(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return models[_0xb8c5[9]][_0xb8c5[43]]({where:{queuecallerleaveAt:null,queue:_0x49c3x10}})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[41],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onActive(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return models[_0xb8c5[9]][_0xb8c5[43]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x49c3x10}})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[45],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onAbandon(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return models[_0xb8c5[9]][_0xb8c5[43]]({where:{queuecallerabandon:true,queue:_0x49c3x10}})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[46],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onComplete(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return models[_0xb8c5[9]][_0xb8c5[43]]({where:{queuecallercomplete:true,queue:_0x49c3x10}})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[47],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onAvgAnswerTime(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return sequelize[_0xb8c5[56]](_0xb8c5[50]+ _0x49c3x10[_0xb8c5[52]](_0xb8c5[51])+ _0xb8c5[53],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[48],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onAvgTalkTime(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return sequelize[_0xb8c5[56]](_0xb8c5[58]+ _0x49c3x10[_0xb8c5[52]](_0xb8c5[51])+ _0xb8c5[53],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[57],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onAnswerRate(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return sequelize[_0xb8c5[56]](_0xb8c5[60]+ _0x49c3x10[_0xb8c5[52]](_0xb8c5[51])+ _0xb8c5[53],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[59],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onAbandonRate(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return sequelize[_0xb8c5[56]](_0xb8c5[62]+ _0x49c3x10[_0xb8c5[52]](_0xb8c5[51])+ _0xb8c5[53],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[61],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onTotalOffered(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return sequelize[_0xb8c5[56]](_0xb8c5[64]+ _0x49c3x10[_0xb8c5[52]](_0xb8c5[51])+ _0xb8c5[53],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[63],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onUnmanaged(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getVoiceQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x10){return models[_0xb8c5[9]][_0xb8c5[43]]({where:{queuecallerexit:true,queue:_0x49c3x10}})})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[65],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function manualOutbound(_0x49c3x7,_0x49c3x8){console[_0xb8c5[67]](_0xb8c5[66]);return models[_0xb8c5[15]][_0xb8c5[43]]({where:{type:_0xb8c5[69]}})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[68],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function manualOutboundGlobalDuration(_0x49c3x7,_0x49c3x8){return sequelize[_0xb8c5[56]](_0xb8c5[71],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[70],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function manualOutboundAvgDuration(_0x49c3x7,_0x49c3x8){return sequelize[_0xb8c5[56]](_0xb8c5[73],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[72],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function manualOutboundAnswered(_0x49c3x7,_0x49c3x8){return models[_0xb8c5[15]][_0xb8c5[43]]({where:{disposition:_0xb8c5[75],type:_0xb8c5[69]}})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[74],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function manualOutboundAnswerRate(_0x49c3x7,_0x49c3x8){return sequelize[_0xb8c5[56]](_0xb8c5[77],{type:sequelize[_0xb8c5[55]][_0xb8c5[54]]})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[76],{value:_0x49c3x14[0][_0xb8c5[49]]})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function getMailQueues(_0x49c3xf,_0x49c3x24){return function(){switch(_0x49c3xf[_0xb8c5[38]]){case _0xb8c5[35]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](Util[_0xb8c5[83]]({},{attributes:[_0xb8c5[32]],include:[{raw:true,model:models[_0xb8c5[34]],attributes:[_0xb8c5[32]]}]}))[_0xb8c5[29]](function(_0x49c3x10){if(_0x49c3x24){return {include:{model:models[_0xb8c5[78]],include:{model:models[_0xb8c5[79]],include:{model:models[_0xb8c5[80]],where:{id:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32])}}}}}}else {var _0x49c3x25=[];_0x49c3x10[_0xb8c5[26]][_0xb8c5[82]](function(_0x49c3x26){_0x49c3x25= _[_0xb8c5[81]](_0x49c3x25,_[_0xb8c5[28]](_0x49c3x26.Users,_0xb8c5[32]))});return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[32]),memberid:_0x49c3x25}}}}});case _0xb8c5[85]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](function(_0x49c3x27){return _0x49c3x27[_0xb8c5[84]]({attributes:[_0xb8c5[32]]})})[_0xb8c5[29]](function(_0x49c3x10){return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32]),memberid:_0x49c3xf[_0xb8c5[32]]}}}});default:return {}}}}function getChatQueues(_0x49c3xf,_0x49c3x24){return function(){switch(_0x49c3xf[_0xb8c5[38]]){case _0xb8c5[35]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](Util[_0xb8c5[89]]({},{attributes:[_0xb8c5[32]],include:[{raw:true,model:models[_0xb8c5[34]],attributes:[_0xb8c5[32]]}]}))[_0xb8c5[29]](function(_0x49c3x10){if(_0x49c3x24){return {include:{model:models[_0xb8c5[86]],include:{model:models[_0xb8c5[87]],include:{model:models[_0xb8c5[88]],where:{id:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32])}}}}}}else {var _0x49c3x25=[];_0x49c3x10[_0xb8c5[26]][_0xb8c5[82]](function(_0x49c3x26){_0x49c3x25= _[_0xb8c5[81]](_0x49c3x25,_[_0xb8c5[28]](_0x49c3x26.Users,_0xb8c5[32]))});return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[32]),memberid:_0x49c3x25}}}}});case _0xb8c5[85]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](function(_0x49c3x27){return _0x49c3x27[_0xb8c5[90]]({attributes:[_0xb8c5[32]]})})[_0xb8c5[29]](function(_0x49c3x10){return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32]),memberid:_0x49c3xf[_0xb8c5[32]]}}}});default:return {}}}}function getFaxQueues(_0x49c3xf,_0x49c3x24){return function(){switch(_0x49c3xf[_0xb8c5[38]]){case _0xb8c5[35]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](Util[_0xb8c5[94]]({},{attributes:[_0xb8c5[32]],include:[{raw:true,model:models[_0xb8c5[34]],attributes:[_0xb8c5[32]]}]}))[_0xb8c5[29]](function(_0x49c3x10){if(_0x49c3x24){return {include:{model:models[_0xb8c5[91]],include:{model:models[_0xb8c5[92]],include:{model:models[_0xb8c5[93]],where:{id:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32])}}}}}}else {var _0x49c3x25=[];_0x49c3x10[_0xb8c5[26]][_0xb8c5[82]](function(_0x49c3x26){_0x49c3x25= _[_0xb8c5[81]](_0x49c3x25,_[_0xb8c5[28]](_0x49c3x26.Users,_0xb8c5[32]))});return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[32]),memberid:_0x49c3x25}}}}});case _0xb8c5[85]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](function(_0x49c3x27){return _0x49c3x27[_0xb8c5[95]]({attributes:[_0xb8c5[32]]})})[_0xb8c5[29]](function(_0x49c3x10){return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32]),memberid:_0x49c3xf[_0xb8c5[32]]}}}});default:return {}}}}function getSmsQueues(_0x49c3xf,_0x49c3x24){return function(){switch(_0x49c3xf[_0xb8c5[38]]){case _0xb8c5[35]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](Util[_0xb8c5[99]]({},{attributes:[_0xb8c5[32]],include:[{raw:true,model:models[_0xb8c5[34]],attributes:[_0xb8c5[32]]}]}))[_0xb8c5[29]](function(_0x49c3x10){if(_0x49c3x24){return {include:{model:models[_0xb8c5[96]],include:{model:models[_0xb8c5[97]],include:{model:models[_0xb8c5[98]],where:{id:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32])}}}}}}else {var _0x49c3x25=[];_0x49c3x10[_0xb8c5[26]][_0xb8c5[82]](function(_0x49c3x26){_0x49c3x25= _[_0xb8c5[81]](_0x49c3x25,_[_0xb8c5[28]](_0x49c3x26.Users,_0xb8c5[32]))});return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[32]),memberid:_0x49c3x25}}}}});case _0xb8c5[85]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](function(_0x49c3x27){return _0x49c3x27[_0xb8c5[100]]({attributes:[_0xb8c5[32]]})})[_0xb8c5[29]](function(_0x49c3x10){return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32]),memberid:_0x49c3xf[_0xb8c5[32]]}}}});default:return {}}}}function getOpenchannelQueues(_0x49c3xf,_0x49c3x24){return function(){switch(_0x49c3xf[_0xb8c5[38]]){case _0xb8c5[35]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](Util[_0xb8c5[104]]({},{attributes:[_0xb8c5[32]],include:[{raw:true,model:models[_0xb8c5[34]],attributes:[_0xb8c5[32]]}]}))[_0xb8c5[29]](function(_0x49c3x10){if(_0x49c3x24){return {include:{model:models[_0xb8c5[101]],include:{model:models[_0xb8c5[102]],include:{model:models[_0xb8c5[103]],where:{id:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32])}}}}}}else {var _0x49c3x25=[];_0x49c3x10[_0xb8c5[26]][_0xb8c5[82]](function(_0x49c3x26){_0x49c3x25= _[_0xb8c5[81]](_0x49c3x25,_[_0xb8c5[28]](_0x49c3x26.Users,_0xb8c5[32]))});return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10[_0xb8c5[26]],_0xb8c5[32]),memberid:_0x49c3x25}}}}});case _0xb8c5[85]:return models[_0xb8c5[34]][_0xb8c5[33]](_0x49c3xf[_0xb8c5[32]],{attributes:[_0xb8c5[32]]})[_0xb8c5[29]](function(_0x49c3x27){return _0x49c3x27[_0xb8c5[105]]({attributes:[_0xb8c5[32]]})})[_0xb8c5[29]](function(_0x49c3x10){return {where:{$or:{queue:_[_0xb8c5[28]](_0x49c3x10,_0xb8c5[32]),memberid:_0x49c3xf[_0xb8c5[32]]}}}});default:return {}}}}function onOpenMail(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getMailQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[17]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[107],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[106],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onClosedMail(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getMailQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[17]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[112],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[111],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onNewMail(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getMailQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[17]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[114],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[113],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onWaitingMail(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getMailQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[16]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{leaveAt:null}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[115],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onTimeoutMail(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getMailQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[16]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{timeout:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[116],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onPendingMail(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getMailQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[17]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[118],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[117],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onOpenChat(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getChatQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[18]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{leaveAt:{$ne:null},complete:null,timeout:null}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[119],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onClosedChat(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getChatQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[18]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{complete:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[120],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onNewChat(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getChatQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[18]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{leaveAt:null}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[121],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onTimeoutChat(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getChatQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[18]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{timeout:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[122],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onAbandonedChat(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getChatQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[18]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{abandon:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[123],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onUnmanagedChat(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getChatQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[19]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[125],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[124],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onOpenFax(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getFaxQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[21]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[107],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[126],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onClosedFax(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getFaxQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[21]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[112],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[127],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onNewFax(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getFaxQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[21]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[114],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[128],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onTimeoutFax(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getFaxQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[20]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{timeout:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[129],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onPendingFax(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getFaxQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[21]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[118],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[130],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onWaitingFax(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getFaxQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[20]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{leaveAt:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[131],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onOpenSms(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getSmsQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[23]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[107],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[132],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onClosedSms(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getSmsQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[23]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[112],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[133],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onNewSms(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getSmsQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[23]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[114],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[134],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onTimeoutSms(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getSmsQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[22]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{timeout:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[135],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onPendingSms(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getSmsQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[23]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[118],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[136],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onWaitingSms(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getSmsQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[22]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{leaveAt:null}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[136],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onOpenOpenchannel(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getOpenchannelQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[25]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[107],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[137],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onClosedOpenchannel(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getOpenchannelQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[25]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[112],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[138],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onNewOpenchannel(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getOpenchannelQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[25]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[114],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[139],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onTimeoutOpenchannel(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getOpenchannelQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[24]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{timeout:true}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[140],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onPendingOpenchannel(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getOpenchannelQueues(_0x49c3x7,true))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[25]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{status:_0xb8c5[118],updatedAt:{$gte:moment()[_0xb8c5[109]](_0xb8c5[108])}}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[141],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}function onWaitingOpenchannel(_0x49c3x7,_0x49c3x8){return Promise[_0xb8c5[44]]([])[_0xb8c5[29]](getOpenchannelQueues(_0x49c3x7))[_0xb8c5[29]](function(_0x49c3x2d){return models[_0xb8c5[24]][_0xb8c5[43]](_[_0xb8c5[110]]({where:{leaveAt:null}},_0x49c3x2d))})[_0xb8c5[29]](function(_0x49c3x14){_0x49c3x7[_0xb8c5[42]](_0xb8c5[141],{value:_0x49c3x14})})[_0xb8c5[40]](function(_0x49c3x13){console[_0xb8c5[39]](_0x49c3x13)})}