1 var _0x2689=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x62\x6C\x75\x65\x62\x69\x72\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x63\x72\x69\x62\x65","\x77\x61\x69\x74\x69\x6E\x67","\x63\x6F\x75\x6E\x74","\x75\x73\x65\x72","\x61\x6C\x6C","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x72\x6F\x6C\x65","\x71\x75\x65\x75\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73","\x6C\x69\x6D\x69\x74","\x6F\x66\x66\x73\x65\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x75\x69\x46\x72\x6F\x6D","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x75\x69\x54\x6F","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x5F\x75\x69\x46\x72\x6F\x6D","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x5F\x75\x69\x54\x6F","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x5F\x75\x69\x46\x72\x6F\x6D","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x5F\x75\x69\x54\x6F","\x6C\x6F\x67","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64","\x74\x6F\x74\x61\x6C\x63\x61\x6C\x6C\x73","\x66\x6F\x72\x45\x61\x63\x68","\x5F\x61\x6E\x73\x77\x65\x72\x65\x64\x46\x72\x6F\x6D","\x61\x6E\x73\x77\x65\x72\x65\x64","\x5F\x61\x6E\x73\x77\x65\x72\x65\x64\x54\x6F","\x5F\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x46\x72\x6F\x6D","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x5F\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x54\x6F","\x5F\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x46\x72\x6F\x6D","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x5F\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x54\x6F","\x72\x65\x64\x75\x63\x65","\x66\x69\x6C\x74\x65\x72","\x5F\x6C\x69\x6D\x69\x74","\x76\x61\x6C\x75\x65","\x74\x61\x6B\x65","\x73\x6C\x69\x63\x65","\x6C\x65\x6E\x67\x74\x68","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x30\x30\x3A\x30\x30\x3A\x30\x30","\x53\x45\x4C\x45\x43\x54\x20\x71\x75\x65\x75\x65\x20\x41\x53\x20\x27\x6E\x61\x6D\x65\x27\x2C\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\x74\x6F\x74\x61\x6C\x63\x61\x6C\x6C\x73\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","\x27\x2C\x27","\x6A\x6F\x69\x6E","\x27\x29\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x71\x75\x65\x75\x65","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x53\x45\x4C\x45\x43\x54\x20\x71\x75\x65\x75\x65\x20\x41\x53\x20\x27\x6E\x61\x6D\x65\x27\x2C\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\x74\x61\x6C\x6B\x74\x69\x6D\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\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x53\x45\x4C\x45\x43\x54\x20\x71\x75\x65\x75\x65\x20\x41\x53\x20\x27\x6E\x61\x6D\x65\x27\x2C\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\x68\x6F\x6C\x64\x74\x69\x6D\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\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x71\x75\x65\x75\x65","\x43\x4F\x55\x4E\x54","\x63\x6F\x6C","\x66\x6E","\x61\x63\x74\x69\x76\x65","\x77\x61\x69\x74\x69\x6E\x67\x43\x61\x6C\x6C\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x71\x75\x65\x75\x65\x46\x69\x6C\x74\x65\x72","\x73\x63\x6F\x70\x65","\x61\x76\x67\x61\x6E\x73\x77\x65\x72\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\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\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x27\x29","\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\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\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","\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","\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","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x41\x6C\x6C","\x73\x68\x6F\x77"];_0x2689[0];var _=require(_0x2689[1]);var sequelize=require(_0x2689[3])[_0x2689[2]];var Agent=require(_0x2689[3])[_0x2689[4]];var ReportQueue=require(_0x2689[3])[_0x2689[5]];var VoiceQueue=require(_0x2689[3])[_0x2689[6]];var ReportQueueHistory=require(_0x2689[3])[_0x2689[8]][_0x2689[7]];var Util=require(_0x2689[9]);var Promise=require(_0x2689[10]);exports[_0x2689[11]]= function(_0xf9f6x9,_0xf9f6xa,_0xf9f6xb){return ReportQueue[_0x2689[18]](Util[_0x2689[17]](_0xf9f6x9[_0x2689[16]]))[_0x2689[15]](function(_0xf9f6xd){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]](_0xf9f6xd)})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[19]]= function(_0xf9f6x9,_0xf9f6xa){return ReportQueue[_0x2689[26]](_0xf9f6x9[_0x2689[25]][_0x2689[24]])[_0x2689[15]](function(_0xf9f6xe){if(!_0xf9f6xe){return _0xf9f6xa[_0x2689[20]](404)};var _0xf9f6xf=_[_0x2689[22]](_0xf9f6xe,_0xf9f6x9[_0x2689[21]]);return _0xf9f6xf[_0x2689[23]]()})[_0x2689[15]](function(_0xf9f6xe){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]](_0xf9f6xe)})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[27]]= function(_0xf9f6x9,_0xf9f6xa){return ReportQueueHistory[_0x2689[27]]()[_0x2689[15]](function(_0xf9f6x10){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]](_0xf9f6x10)})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[28]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[29]]({where:{queuecallerleaveAt:null,queue:_0xf9f6x12}})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};function getVoiceQueues(_0xf9f6x14){return function(){switch(_0xf9f6x14[_0x2689[39]]){case _0x2689[30]:return Agent[_0x2689[26]](_0xf9f6x14[_0x2689[24]],{attributes:[_0x2689[24]]})[_0x2689[15]](Util[_0x2689[35]]())[_0x2689[15]](function(_0xf9f6x12){return _[_0x2689[34]](_0xf9f6x12[_0x2689[32]],_0x2689[33])});case _0x2689[37]:return Agent[_0x2689[26]](_0xf9f6x14[_0x2689[24]])[_0x2689[15]](function(_0xf9f6x15){return _0xf9f6x15[_0x2689[36]]({attributes:[_0x2689[33]]})})[_0x2689[15]](function(_0xf9f6x12){return _[_0x2689[34]](_0xf9f6x12,_0x2689[33])});default:return VoiceQueue[_0x2689[38]]()[_0x2689[15]](function(_0xf9f6x16){return {rows:_0xf9f6x16}})[_0x2689[15]](function(_0xf9f6x12){return _[_0x2689[34]](_0xf9f6x12[_0x2689[32]],_0x2689[33])})}}}exports[_0x2689[40]]= function(_0xf9f6x9,_0xf9f6xa){var _0xf9f6x17={_limit:_0xf9f6x9[_0x2689[16]][_0x2689[41]]?_0xf9f6x9[_0x2689[16]][_0x2689[41]]:null,_offset:_0xf9f6x9[_0x2689[16]][_0x2689[42]]?_0xf9f6x9[_0x2689[16]][_0x2689[42]]:0,_answeredFrom:_0xf9f6x9[_0x2689[16]][_0x2689[43]]|| _0xf9f6x9[_0x2689[16]][_0x2689[43]]=== 0?_0xf9f6x9[_0x2689[16]][_0x2689[43]]:undefined,_answeredTo:_0xf9f6x9[_0x2689[16]][_0x2689[44]]|| _0xf9f6x9[_0x2689[16]][_0x2689[44]]=== 0?_0xf9f6x9[_0x2689[16]][_0x2689[44]]:undefined,_abandonedFrom:_0xf9f6x9[_0x2689[16]][_0x2689[45]]|| _0xf9f6x9[_0x2689[16]][_0x2689[45]]=== 0?_0xf9f6x9[_0x2689[16]][_0x2689[45]]:undefined,_abandonedTo:_0xf9f6x9[_0x2689[16]][_0x2689[46]]|| _0xf9f6x9[_0x2689[16]][_0x2689[46]]=== 0?_0xf9f6x9[_0x2689[16]][_0x2689[46]]:undefined,_unmanagedFrom:_0xf9f6x9[_0x2689[16]][_0x2689[47]]|| _0xf9f6x9[_0x2689[16]][_0x2689[47]]=== 0?_0xf9f6x9[_0x2689[16]][_0x2689[47]]:undefined,_unmanagedTo:_0xf9f6x9[_0x2689[16]][_0x2689[48]]|| _0xf9f6x9[_0x2689[16]][_0x2689[48]]=== 0?_0xf9f6x9[_0x2689[16]][_0x2689[48]]:undefined};var _0xf9f6x18,_0xf9f6x19,_0xf9f6x1a,_0xf9f6x1b;delete _0xf9f6x9[_0x2689[16]][_0x2689[41]];delete _0xf9f6x9[_0x2689[16]][_0x2689[42]];delete _0xf9f6x9[_0x2689[16]][_0x2689[43]];delete _0xf9f6x9[_0x2689[16]][_0x2689[44]];delete _0xf9f6x9[_0x2689[16]][_0x2689[45]];delete _0xf9f6x9[_0x2689[16]][_0x2689[46]];delete _0xf9f6x9[_0x2689[16]][_0x2689[47]];delete _0xf9f6x9[_0x2689[16]][_0x2689[48]];return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){_0xf9f6x19= _0xf9f6x12;_0xf9f6x18= _[_0x2689[34]](_0xf9f6x12,function(_0xf9f6x1f){return {name:_0xf9f6x1f}});return ReportQueue[_0x2689[38]]({where:{queuecallerleaveAt:null,queue:_0xf9f6x19},group:_0x2689[82],attributes:[[_0x2689[82],_0x2689[33]],[sequelize[_0x2689[85]](_0x2689[83],sequelize[_0x2689[84]](_0x2689[24])),_0x2689[28]]]})})[_0x2689[15]](function(_0xf9f6x30){_0xf9f6x30= _[_0x2689[34]](_0xf9f6x30,_0x2689[80]);_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f,_0xf9f6x31){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x30,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[28]]= _0xf9f6x20?_0xf9f6x20[_0x2689[28]]:0});return ReportQueue[_0x2689[38]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xf9f6x19},group:_0x2689[82],attributes:[[_0x2689[82],_0x2689[33]],[sequelize[_0x2689[85]](_0x2689[83],sequelize[_0x2689[84]](_0x2689[24])),_0x2689[86]]]})})[_0x2689[15]](function(_0xf9f6x2f){_0xf9f6x2f= _[_0x2689[34]](_0xf9f6x2f,_0x2689[80]);_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x2f,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[86]]= _0xf9f6x20?_0xf9f6x20[_0x2689[86]]:0});return ReportQueue[_0x2689[38]]({where:{queuecallercomplete:true,queue:_0xf9f6x19},group:_0x2689[82],attributes:[[_0x2689[82],_0x2689[33]],[sequelize[_0x2689[85]](_0x2689[83],sequelize[_0x2689[84]](_0x2689[24])),_0x2689[55]]]})})[_0x2689[15]](function(_0xf9f6x2e){_0xf9f6x2e= _[_0x2689[34]](_0xf9f6x2e,_0x2689[80]);_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x2e,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[55]]= _0xf9f6x20?_0xf9f6x20[_0x2689[55]]:0});return ReportQueue[_0x2689[38]]({where:{queuecallerabandon:true,queue:_0xf9f6x19},group:_0x2689[82],attributes:[[_0x2689[82],_0x2689[33]],[sequelize[_0x2689[85]](_0x2689[83],sequelize[_0x2689[84]](_0x2689[24])),_0x2689[58]]]})})[_0x2689[15]](function(_0xf9f6x2d){_0xf9f6x2d= _[_0x2689[34]](_0xf9f6x2d,_0x2689[80]);_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x2d,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[58]]= _0xf9f6x20?_0xf9f6x20[_0x2689[58]]:0});return ReportQueue[_0x2689[38]]({where:{queuecallerexit:true,queue:_0xf9f6x19},group:_0x2689[82],attributes:[[_0x2689[82],_0x2689[33]],[sequelize[_0x2689[85]](_0x2689[83],sequelize[_0x2689[84]](_0x2689[24])),_0x2689[61]]]})})[_0x2689[15]](function(_0xf9f6x2c){_0xf9f6x2c= _[_0x2689[34]](_0xf9f6x2c,_0x2689[80]);_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x2c,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[61]]= _0xf9f6x20?_0xf9f6x20[_0x2689[61]]:0});return sequelize[_0x2689[16]](_0x2689[81]+ _0xf9f6x19[_0x2689[74]](_0x2689[73])+ _0x2689[75],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x2b){_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x2b,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[78]]= _0xf9f6x20?_0xf9f6x20[_0x2689[78]]:_0x2689[71]});return sequelize[_0x2689[16]](_0x2689[79]+ _0xf9f6x19[_0x2689[74]](_0x2689[73])+ _0x2689[75],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x2a){_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x2a,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[70]]= _0xf9f6x20?_0xf9f6x20[_0x2689[70]]:_0x2689[71]});return sequelize[_0x2689[16]](_0x2689[72]+ _0xf9f6x19[_0x2689[74]](_0x2689[73])+ _0x2689[75],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x1e){_0xf9f6x18[_0x2689[53]](function(_0xf9f6x1f){var _0xf9f6x20=_[_0x2689[51]](_0xf9f6x1e,{name:_0xf9f6x1f[_0x2689[33]]});_0xf9f6x1f[_0x2689[52]]= _0xf9f6x20?_0xf9f6x20[_0x2689[52]]:0});var _0xf9f6x21=_(_[_0x2689[64]](_0xf9f6x18,function(_0xf9f6x1f){var _0xf9f6x22=_0xf9f6x17[_0x2689[54]]?(_0xf9f6x1f[_0x2689[55]]>= Number(_0xf9f6x17._answeredFrom)):true;var _0xf9f6x23=_0xf9f6x17[_0x2689[56]]?(_0xf9f6x1f[_0x2689[55]]<= Number(_0xf9f6x17._answeredTo)):true;var _0xf9f6x24=_0xf9f6x17[_0x2689[57]]?(_0xf9f6x1f[_0x2689[58]]>= Number(_0xf9f6x17._abandonedFrom)):true;var _0xf9f6x25=_0xf9f6x17[_0x2689[59]]?(_0xf9f6x1f[_0x2689[58]]>= Number(_0xf9f6x17._abandonedTo)):true;var _0xf9f6x26=_0xf9f6x17[_0x2689[60]]?(_0xf9f6x1f[_0x2689[61]]>= Number(_0xf9f6x17._unmanagedFrom)):true;var _0xf9f6x27=_0xf9f6x17[_0x2689[62]]?(_0xf9f6x1f[_0x2689[61]]<= Number(_0xf9f6x17._unmanagedTo)):true;return _[_0x2689[63]]([_0xf9f6x22,_0xf9f6x23,_0xf9f6x24,_0xf9f6x25,_0xf9f6x26,_0xf9f6x27],function(_0xf9f6x28,_0xf9f6x29){return _0xf9f6x28&& _0xf9f6x29})}));if(_0xf9f6x17[_0x2689[65]]){_0xf9f6x21= _0xf9f6x21[_0x2689[68]](_0xf9f6x17._offset)[_0x2689[67]](_0xf9f6x17._limit)[_0x2689[66]]()};return [_0xf9f6x18[_0x2689[69]],_0xf9f6x21]})[_0x2689[50]](function(_0xf9f6x1c,_0xf9f6x1d){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({rows:_0xf9f6x1d,count:_0xf9f6x1c})})[_0x2689[12]](function(_0xf9f6xc){console[_0x2689[49]](_0xf9f6xc);return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[87]]= function(_0xf9f6x9,_0xf9f6xa){var _0xf9f6x32={};if(_0xf9f6x9[_0x2689[30]][_0x2689[39]]=== _0x2689[37]){_0xf9f6x32[_0x2689[88]]= _0xf9f6x9[_0x2689[30]][_0x2689[89]]};return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[91]](_0x2689[28],{method:[_0x2689[90],_0xf9f6x12]})[_0x2689[38]](Util[_0x2689[17]](_0xf9f6x9[_0x2689[16]],_0xf9f6x32))})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({rows:_0xf9f6x11,count:_0xf9f6x11[_0x2689[69]]})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[86]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[29]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xf9f6x12}})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[55]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[29]]({where:{queuecallercomplete:true,queue:_0xf9f6x12}})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[58]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[29]]({where:{queuecallerabandon:true,queue:_0xf9f6x12}})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[92]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return sequelize[_0x2689[16]](_0x2689[93]+ _0xf9f6x12[_0x2689[74]](_0x2689[73])+ _0x2689[94],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11[0][_0x2689[66]]})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[95]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return sequelize[_0x2689[16]](_0x2689[96]+ _0xf9f6x12[_0x2689[74]](_0x2689[73])+ _0x2689[94],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11[0][_0x2689[66]]})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[97]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return sequelize[_0x2689[16]](_0x2689[98]+ _0xf9f6x12[_0x2689[74]](_0x2689[73])+ _0x2689[94],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11[0][_0x2689[66]]})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[99]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return sequelize[_0x2689[16]](_0x2689[100]+ _0xf9f6x12[_0x2689[74]](_0x2689[73])+ _0x2689[94],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11[0][_0x2689[66]]})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[101]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return sequelize[_0x2689[16]](_0x2689[102]+ _0xf9f6x12[_0x2689[74]](_0x2689[73])+ _0x2689[94],{type:sequelize[_0x2689[77]][_0x2689[76]]})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11[0][_0x2689[66]]})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[61]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[29]]({where:{queuecallerexit:true,queue:_0xf9f6x12}})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]]({value:_0xf9f6x11})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[103]]= function(_0xf9f6x9,_0xf9f6xa){return Promise[_0x2689[31]]([])[_0x2689[15]](getVoiceQueues(_0xf9f6x9[_0x2689[30]]))[_0x2689[15]](function(_0xf9f6x12){return ReportQueue[_0x2689[18]]({where:{queuecallerabandon:true,queue:_0xf9f6x12}})})[_0x2689[15]](function(_0xf9f6x11){return _0xf9f6xa[_0x2689[14]](200)[_0x2689[13]](_0xf9f6x11)})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};exports[_0x2689[104]]= function(_0xf9f6x9,_0xf9f6xa){return ReportQueue[_0x2689[38]]({where:{queue:_0xf9f6x9[_0x2689[25]][_0x2689[82]]}})[_0x2689[15]](function(_0xf9f6x33){if(!_0xf9f6x33){return _0xf9f6xa[_0x2689[20]](404)};return _0xf9f6xa[_0x2689[13]]({count:_0xf9f6x33[_0x2689[69]],rows:_0xf9f6x33})})[_0x2689[12]](function(_0xf9f6xc){return handleError(_0xf9f6xa,_0xf9f6xc)})};function handleError(_0xf9f6xa,_0xf9f6xc){return _0xf9f6xa[_0x2689[14]](500)[_0x2689[13]](_0xf9f6xc)}