Built motion from commit 038bc69.|0.0.119
[motion.git] / server / api / report_queue / report_queue.controller.js
index 6d787ec..dc51db5 100644 (file)
@@ -1 +1 @@
-var _0x46cc=["\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","\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","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\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","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73"];_0x46cc[0];var _=require(_0x46cc[1]);var sequelize=require(_0x46cc[3])[_0x46cc[2]];var Agent=require(_0x46cc[3])[_0x46cc[4]];var ReportQueue=require(_0x46cc[3])[_0x46cc[5]];var VoiceQueue=require(_0x46cc[3])[_0x46cc[6]];var ReportQueueHistory=require(_0x46cc[3])[_0x46cc[8]][_0x46cc[7]];var Util=require(_0x46cc[9]);var Promise=require(_0x46cc[10]);exports[_0x46cc[11]]= function(_0x5183x9,_0x5183xa,_0x5183xb){return ReportQueue[_0x46cc[18]](Util[_0x46cc[17]](_0x5183x9[_0x46cc[16]]))[_0x46cc[15]](function(_0x5183xd){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]](_0x5183xd)})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[19]]= function(_0x5183x9,_0x5183xa){return ReportQueueHistory[_0x46cc[19]]()[_0x46cc[15]](function(_0x5183xe){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]](_0x5183xe)})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[20]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return ReportQueue[_0x46cc[21]]({where:{queuecallerleaveAt:null,queue:_0x5183x10}})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};function getVoiceQueues(_0x5183x12){return function(){switch(_0x5183x12[_0x46cc[33]]){case _0x46cc[22]:return Agent[_0x46cc[29]](_0x5183x12[_0x46cc[28]],{attributes:[_0x46cc[28]]})[_0x46cc[15]](Util[_0x46cc[27]]())[_0x46cc[15]](function(_0x5183x10){return _[_0x46cc[26]](_0x5183x10[_0x46cc[24]],_0x46cc[25])});case _0x46cc[31]:return Agent[_0x46cc[29]](_0x5183x12[_0x46cc[28]])[_0x46cc[15]](function(_0x5183x13){return _0x5183x13[_0x46cc[30]]({attributes:[_0x46cc[25]]})})[_0x46cc[15]](function(_0x5183x10){return _[_0x46cc[26]](_0x5183x10[_0x46cc[24]],_0x46cc[25])});default:return VoiceQueue[_0x46cc[32]]()[_0x46cc[15]](function(_0x5183x14){return {rows:_0x5183x14}})[_0x46cc[15]](function(_0x5183x10){return _[_0x46cc[26]](_0x5183x10[_0x46cc[24]],_0x46cc[25])})}}}exports[_0x46cc[34]]= function(_0x5183x9,_0x5183xa){var _0x5183x15={_limit:_0x5183x9[_0x46cc[16]][_0x46cc[35]]?_0x5183x9[_0x46cc[16]][_0x46cc[35]]:null,_offset:_0x5183x9[_0x46cc[16]][_0x46cc[36]]?_0x5183x9[_0x46cc[16]][_0x46cc[36]]:0,_answeredFrom:_0x5183x9[_0x46cc[16]][_0x46cc[37]]|| _0x5183x9[_0x46cc[16]][_0x46cc[37]]=== 0?_0x5183x9[_0x46cc[16]][_0x46cc[37]]:undefined,_answeredTo:_0x5183x9[_0x46cc[16]][_0x46cc[38]]|| _0x5183x9[_0x46cc[16]][_0x46cc[38]]=== 0?_0x5183x9[_0x46cc[16]][_0x46cc[38]]:undefined,_abandonedFrom:_0x5183x9[_0x46cc[16]][_0x46cc[39]]|| _0x5183x9[_0x46cc[16]][_0x46cc[39]]=== 0?_0x5183x9[_0x46cc[16]][_0x46cc[39]]:undefined,_abandonedTo:_0x5183x9[_0x46cc[16]][_0x46cc[40]]|| _0x5183x9[_0x46cc[16]][_0x46cc[40]]=== 0?_0x5183x9[_0x46cc[16]][_0x46cc[40]]:undefined,_unmanagedFrom:_0x5183x9[_0x46cc[16]][_0x46cc[41]]|| _0x5183x9[_0x46cc[16]][_0x46cc[41]]=== 0?_0x5183x9[_0x46cc[16]][_0x46cc[41]]:undefined,_unmanagedTo:_0x5183x9[_0x46cc[16]][_0x46cc[42]]|| _0x5183x9[_0x46cc[16]][_0x46cc[42]]=== 0?_0x5183x9[_0x46cc[16]][_0x46cc[42]]:undefined};var _0x5183x16,_0x5183x17,_0x5183x18,_0x5183x19;delete _0x5183x9[_0x46cc[16]][_0x46cc[35]];delete _0x5183x9[_0x46cc[16]][_0x46cc[36]];delete _0x5183x9[_0x46cc[16]][_0x46cc[37]];delete _0x5183x9[_0x46cc[16]][_0x46cc[38]];delete _0x5183x9[_0x46cc[16]][_0x46cc[39]];delete _0x5183x9[_0x46cc[16]][_0x46cc[40]];delete _0x5183x9[_0x46cc[16]][_0x46cc[41]];delete _0x5183x9[_0x46cc[16]][_0x46cc[42]];return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){_0x5183x17= _0x5183x10;_0x5183x16= _[_0x46cc[26]](_0x5183x10,function(_0x5183x1d){return {name:_0x5183x1d}});return ReportQueue[_0x46cc[32]]({where:{queuecallerleaveAt:null,queue:_0x5183x17},group:_0x46cc[76],attributes:[[_0x46cc[76],_0x46cc[25]],[sequelize[_0x46cc[79]](_0x46cc[77],sequelize[_0x46cc[78]](_0x46cc[28])),_0x46cc[20]]]})})[_0x46cc[15]](function(_0x5183x2e){_0x5183x2e= _[_0x46cc[26]](_0x5183x2e,_0x46cc[74]);_0x5183x16[_0x46cc[47]](function(_0x5183x1d,_0x5183x2f){var _0x5183x1e=_[_0x46cc[45]](_0x5183x2e,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[20]]= _0x5183x1e?_0x5183x1e[_0x46cc[20]]:0});return ReportQueue[_0x46cc[32]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x5183x17},group:_0x46cc[76],attributes:[[_0x46cc[76],_0x46cc[25]],[sequelize[_0x46cc[79]](_0x46cc[77],sequelize[_0x46cc[78]](_0x46cc[28])),_0x46cc[80]]]})})[_0x46cc[15]](function(_0x5183x2d){_0x5183x2d= _[_0x46cc[26]](_0x5183x2d,_0x46cc[74]);_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x2d,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[80]]= _0x5183x1e?_0x5183x1e[_0x46cc[80]]:0});return ReportQueue[_0x46cc[32]]({where:{queuecallercomplete:true,queue:_0x5183x17},group:_0x46cc[76],attributes:[[_0x46cc[76],_0x46cc[25]],[sequelize[_0x46cc[79]](_0x46cc[77],sequelize[_0x46cc[78]](_0x46cc[28])),_0x46cc[49]]]})})[_0x46cc[15]](function(_0x5183x2c){_0x5183x2c= _[_0x46cc[26]](_0x5183x2c,_0x46cc[74]);_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x2c,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[49]]= _0x5183x1e?_0x5183x1e[_0x46cc[49]]:0});return ReportQueue[_0x46cc[32]]({where:{queuecallerabandon:true,queue:_0x5183x17},group:_0x46cc[76],attributes:[[_0x46cc[76],_0x46cc[25]],[sequelize[_0x46cc[79]](_0x46cc[77],sequelize[_0x46cc[78]](_0x46cc[28])),_0x46cc[52]]]})})[_0x46cc[15]](function(_0x5183x2b){_0x5183x2b= _[_0x46cc[26]](_0x5183x2b,_0x46cc[74]);_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x2b,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[52]]= _0x5183x1e?_0x5183x1e[_0x46cc[52]]:0});return ReportQueue[_0x46cc[32]]({where:{queuecallerexit:true,queue:_0x5183x17},group:_0x46cc[76],attributes:[[_0x46cc[76],_0x46cc[25]],[sequelize[_0x46cc[79]](_0x46cc[77],sequelize[_0x46cc[78]](_0x46cc[28])),_0x46cc[55]]]})})[_0x46cc[15]](function(_0x5183x2a){_0x5183x2a= _[_0x46cc[26]](_0x5183x2a,_0x46cc[74]);_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x2a,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[55]]= _0x5183x1e?_0x5183x1e[_0x46cc[55]]:0});return sequelize[_0x46cc[16]](_0x46cc[75]+ _0x5183x17[_0x46cc[68]](_0x46cc[67])+ _0x46cc[69],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183x29){_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x29,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[72]]= _0x5183x1e?_0x5183x1e[_0x46cc[72]]:_0x46cc[65]});return sequelize[_0x46cc[16]](_0x46cc[73]+ _0x5183x17[_0x46cc[68]](_0x46cc[67])+ _0x46cc[69],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183x28){_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x28,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[64]]= _0x5183x1e?_0x5183x1e[_0x46cc[64]]:_0x46cc[65]});return sequelize[_0x46cc[16]](_0x46cc[66]+ _0x5183x17[_0x46cc[68]](_0x46cc[67])+ _0x46cc[69],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183x1c){_0x5183x16[_0x46cc[47]](function(_0x5183x1d){var _0x5183x1e=_[_0x46cc[45]](_0x5183x1c,{name:_0x5183x1d[_0x46cc[25]]});_0x5183x1d[_0x46cc[46]]= _0x5183x1e?_0x5183x1e[_0x46cc[46]]:0});var _0x5183x1f=_(_[_0x46cc[58]](_0x5183x16,function(_0x5183x1d){var _0x5183x20=_0x5183x15[_0x46cc[48]]?(_0x5183x1d[_0x46cc[49]]>= Number(_0x5183x15._answeredFrom)):true;var _0x5183x21=_0x5183x15[_0x46cc[50]]?(_0x5183x1d[_0x46cc[49]]<= Number(_0x5183x15._answeredTo)):true;var _0x5183x22=_0x5183x15[_0x46cc[51]]?(_0x5183x1d[_0x46cc[52]]>= Number(_0x5183x15._abandonedFrom)):true;var _0x5183x23=_0x5183x15[_0x46cc[53]]?(_0x5183x1d[_0x46cc[52]]>= Number(_0x5183x15._abandonedTo)):true;var _0x5183x24=_0x5183x15[_0x46cc[54]]?(_0x5183x1d[_0x46cc[55]]>= Number(_0x5183x15._unmanagedFrom)):true;var _0x5183x25=_0x5183x15[_0x46cc[56]]?(_0x5183x1d[_0x46cc[55]]<= Number(_0x5183x15._unmanagedTo)):true;return _[_0x46cc[57]]([_0x5183x20,_0x5183x21,_0x5183x22,_0x5183x23,_0x5183x24,_0x5183x25],function(_0x5183x26,_0x5183x27){return _0x5183x26&& _0x5183x27})}));if(_0x5183x15[_0x46cc[59]]){_0x5183x1f= _0x5183x1f[_0x46cc[62]](_0x5183x15._offset)[_0x46cc[61]](_0x5183x15._limit)[_0x46cc[60]]()};return [_0x5183x16[_0x46cc[63]],_0x5183x1f]})[_0x46cc[44]](function(_0x5183x1a,_0x5183x1b){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({rows:_0x5183x1b,count:_0x5183x1a})})[_0x46cc[12]](function(_0x5183xc){console[_0x46cc[43]](_0x5183xc);return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[81]]= function(_0x5183x9,_0x5183xa){var _0x5183x30={};if(_0x5183x9[_0x46cc[22]][_0x46cc[33]]=== _0x46cc[31]){_0x5183x30[_0x46cc[82]]= _0x5183x9[_0x46cc[22]][_0x46cc[83]]};return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return ReportQueue[_0x46cc[85]](_0x46cc[20],{method:[_0x46cc[84],_0x5183x10]})[_0x46cc[32]](Util[_0x46cc[17]](_0x5183x9[_0x46cc[16]],_0x5183x30))})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({rows:_0x5183xf,count:_0x5183xf[_0x46cc[63]]})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[80]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return ReportQueue[_0x46cc[21]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x5183x10}})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[49]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return ReportQueue[_0x46cc[21]]({where:{queuecallercomplete:true,queue:_0x5183x10}})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[52]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return ReportQueue[_0x46cc[21]]({where:{queuecallerabandon:true,queue:_0x5183x10}})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[86]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return sequelize[_0x46cc[16]](_0x46cc[87]+ _0x5183x10[_0x46cc[68]](_0x46cc[67])+ _0x46cc[88],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf[0][_0x46cc[60]]})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[89]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return sequelize[_0x46cc[16]](_0x46cc[90]+ _0x5183x10[_0x46cc[68]](_0x46cc[67])+ _0x46cc[88],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf[0][_0x46cc[60]]})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[91]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return sequelize[_0x46cc[16]](_0x46cc[92]+ _0x5183x10[_0x46cc[68]](_0x46cc[67])+ _0x46cc[88],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf[0][_0x46cc[60]]})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[93]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return sequelize[_0x46cc[16]](_0x46cc[94]+ _0x5183x10[_0x46cc[68]](_0x46cc[67])+ _0x46cc[88],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf[0][_0x46cc[60]]})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[95]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return sequelize[_0x46cc[16]](_0x46cc[96]+ _0x5183x10[_0x46cc[68]](_0x46cc[67])+ _0x46cc[88],{type:sequelize[_0x46cc[71]][_0x46cc[70]]})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf[0][_0x46cc[60]]})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[55]]= function(_0x5183x9,_0x5183xa){return Promise[_0x46cc[23]]([])[_0x46cc[15]](getVoiceQueues(_0x5183x9[_0x46cc[22]]))[_0x46cc[15]](function(_0x5183x10){return ReportQueue[_0x46cc[21]]({where:{queuecallerexit:true,queue:_0x5183x10}})})[_0x46cc[15]](function(_0x5183xf){return _0x5183xa[_0x46cc[14]](200)[_0x46cc[13]]({value:_0x5183xf})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};exports[_0x46cc[97]]= function(_0x5183x9,_0x5183xa){return ReportQueue[_0x46cc[32]]({where:{queue:_0x5183x9[_0x46cc[99]][_0x46cc[76]]}})[_0x46cc[15]](function(_0x5183x31){if(!_0x5183x31){return _0x5183xa[_0x46cc[98]](404)};return _0x5183xa[_0x46cc[13]]({count:_0x5183x31[_0x46cc[63]],rows:_0x5183x31})})[_0x46cc[12]](function(_0x5183xc){return handleError(_0x5183xa,_0x5183xc)})};function handleError(_0x5183xa,_0x5183xc){return _0x5183xa[_0x46cc[14]](500)[_0x46cc[13]](_0x5183xc)}
\ No newline at end of file
+var _0x64ae=["\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","\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","\x69\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\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","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73"];_0x64ae[0];var _=require(_0x64ae[1]);var sequelize=require(_0x64ae[3])[_0x64ae[2]];var Agent=require(_0x64ae[3])[_0x64ae[4]];var ReportQueue=require(_0x64ae[3])[_0x64ae[5]];var VoiceQueue=require(_0x64ae[3])[_0x64ae[6]];var ReportQueueHistory=require(_0x64ae[3])[_0x64ae[8]][_0x64ae[7]];var Util=require(_0x64ae[9]);var Promise=require(_0x64ae[10]);exports[_0x64ae[11]]= function(_0x928fx9,_0x928fxa,_0x928fxb){return ReportQueue[_0x64ae[18]](Util[_0x64ae[17]](_0x928fx9[_0x64ae[16]]))[_0x64ae[15]](function(_0x928fxd){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]](_0x928fxd)})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[19]]= function(_0x928fx9,_0x928fxa){return ReportQueueHistory[_0x64ae[19]]()[_0x64ae[15]](function(_0x928fxe){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]](_0x928fxe)})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[20]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return ReportQueue[_0x64ae[21]]({where:{queuecallerleaveAt:null,queue:_0x928fx10}})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};function getVoiceQueues(_0x928fx12){return function(){switch(_0x928fx12[_0x64ae[33]]){case _0x64ae[22]:return Agent[_0x64ae[29]](_0x928fx12[_0x64ae[28]],{attributes:[_0x64ae[28]]})[_0x64ae[15]](Util[_0x64ae[27]]())[_0x64ae[15]](function(_0x928fx10){return _[_0x64ae[26]](_0x928fx10[_0x64ae[24]],_0x64ae[25])});case _0x64ae[31]:return Agent[_0x64ae[29]](_0x928fx12[_0x64ae[28]])[_0x64ae[15]](function(_0x928fx13){return _0x928fx13[_0x64ae[30]]({attributes:[_0x64ae[25]]})})[_0x64ae[15]](function(_0x928fx10){return _[_0x64ae[26]](_0x928fx10[_0x64ae[24]],_0x64ae[25])});default:return VoiceQueue[_0x64ae[32]]()[_0x64ae[15]](function(_0x928fx14){return {rows:_0x928fx14}})[_0x64ae[15]](function(_0x928fx10){return _[_0x64ae[26]](_0x928fx10[_0x64ae[24]],_0x64ae[25])})}}}exports[_0x64ae[34]]= function(_0x928fx9,_0x928fxa){var _0x928fx15={_limit:_0x928fx9[_0x64ae[16]][_0x64ae[35]]?_0x928fx9[_0x64ae[16]][_0x64ae[35]]:null,_offset:_0x928fx9[_0x64ae[16]][_0x64ae[36]]?_0x928fx9[_0x64ae[16]][_0x64ae[36]]:0,_answeredFrom:_0x928fx9[_0x64ae[16]][_0x64ae[37]]|| _0x928fx9[_0x64ae[16]][_0x64ae[37]]=== 0?_0x928fx9[_0x64ae[16]][_0x64ae[37]]:undefined,_answeredTo:_0x928fx9[_0x64ae[16]][_0x64ae[38]]|| _0x928fx9[_0x64ae[16]][_0x64ae[38]]=== 0?_0x928fx9[_0x64ae[16]][_0x64ae[38]]:undefined,_abandonedFrom:_0x928fx9[_0x64ae[16]][_0x64ae[39]]|| _0x928fx9[_0x64ae[16]][_0x64ae[39]]=== 0?_0x928fx9[_0x64ae[16]][_0x64ae[39]]:undefined,_abandonedTo:_0x928fx9[_0x64ae[16]][_0x64ae[40]]|| _0x928fx9[_0x64ae[16]][_0x64ae[40]]=== 0?_0x928fx9[_0x64ae[16]][_0x64ae[40]]:undefined,_unmanagedFrom:_0x928fx9[_0x64ae[16]][_0x64ae[41]]|| _0x928fx9[_0x64ae[16]][_0x64ae[41]]=== 0?_0x928fx9[_0x64ae[16]][_0x64ae[41]]:undefined,_unmanagedTo:_0x928fx9[_0x64ae[16]][_0x64ae[42]]|| _0x928fx9[_0x64ae[16]][_0x64ae[42]]=== 0?_0x928fx9[_0x64ae[16]][_0x64ae[42]]:undefined};var _0x928fx16,_0x928fx17,_0x928fx18,_0x928fx19;delete _0x928fx9[_0x64ae[16]][_0x64ae[35]];delete _0x928fx9[_0x64ae[16]][_0x64ae[36]];delete _0x928fx9[_0x64ae[16]][_0x64ae[37]];delete _0x928fx9[_0x64ae[16]][_0x64ae[38]];delete _0x928fx9[_0x64ae[16]][_0x64ae[39]];delete _0x928fx9[_0x64ae[16]][_0x64ae[40]];delete _0x928fx9[_0x64ae[16]][_0x64ae[41]];delete _0x928fx9[_0x64ae[16]][_0x64ae[42]];return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){_0x928fx17= _0x928fx10;_0x928fx16= _[_0x64ae[26]](_0x928fx10,function(_0x928fx1d){return {name:_0x928fx1d}});return ReportQueue[_0x64ae[32]]({where:{queuecallerleaveAt:null,queue:_0x928fx17},group:_0x64ae[76],attributes:[[_0x64ae[76],_0x64ae[25]],[sequelize[_0x64ae[79]](_0x64ae[77],sequelize[_0x64ae[78]](_0x64ae[28])),_0x64ae[20]]]})})[_0x64ae[15]](function(_0x928fx2e){_0x928fx2e= _[_0x64ae[26]](_0x928fx2e,_0x64ae[74]);_0x928fx16[_0x64ae[47]](function(_0x928fx1d,_0x928fx2f){var _0x928fx1e=_[_0x64ae[45]](_0x928fx2e,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[20]]= _0x928fx1e?_0x928fx1e[_0x64ae[20]]:0});return ReportQueue[_0x64ae[32]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x928fx17},group:_0x64ae[76],attributes:[[_0x64ae[76],_0x64ae[25]],[sequelize[_0x64ae[79]](_0x64ae[77],sequelize[_0x64ae[78]](_0x64ae[28])),_0x64ae[80]]]})})[_0x64ae[15]](function(_0x928fx2d){_0x928fx2d= _[_0x64ae[26]](_0x928fx2d,_0x64ae[74]);_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx2d,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[80]]= _0x928fx1e?_0x928fx1e[_0x64ae[80]]:0});return ReportQueue[_0x64ae[32]]({where:{queuecallercomplete:true,queue:_0x928fx17},group:_0x64ae[76],attributes:[[_0x64ae[76],_0x64ae[25]],[sequelize[_0x64ae[79]](_0x64ae[77],sequelize[_0x64ae[78]](_0x64ae[28])),_0x64ae[49]]]})})[_0x64ae[15]](function(_0x928fx2c){_0x928fx2c= _[_0x64ae[26]](_0x928fx2c,_0x64ae[74]);_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx2c,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[49]]= _0x928fx1e?_0x928fx1e[_0x64ae[49]]:0});return ReportQueue[_0x64ae[32]]({where:{queuecallerabandon:true,queue:_0x928fx17},group:_0x64ae[76],attributes:[[_0x64ae[76],_0x64ae[25]],[sequelize[_0x64ae[79]](_0x64ae[77],sequelize[_0x64ae[78]](_0x64ae[28])),_0x64ae[52]]]})})[_0x64ae[15]](function(_0x928fx2b){_0x928fx2b= _[_0x64ae[26]](_0x928fx2b,_0x64ae[74]);_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx2b,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[52]]= _0x928fx1e?_0x928fx1e[_0x64ae[52]]:0});return ReportQueue[_0x64ae[32]]({where:{queuecallerexit:true,queue:_0x928fx17},group:_0x64ae[76],attributes:[[_0x64ae[76],_0x64ae[25]],[sequelize[_0x64ae[79]](_0x64ae[77],sequelize[_0x64ae[78]](_0x64ae[28])),_0x64ae[55]]]})})[_0x64ae[15]](function(_0x928fx2a){_0x928fx2a= _[_0x64ae[26]](_0x928fx2a,_0x64ae[74]);_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx2a,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[55]]= _0x928fx1e?_0x928fx1e[_0x64ae[55]]:0});return sequelize[_0x64ae[16]](_0x64ae[75]+ _0x928fx17[_0x64ae[68]](_0x64ae[67])+ _0x64ae[69],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fx29){_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx29,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[72]]= _0x928fx1e?_0x928fx1e[_0x64ae[72]]:_0x64ae[65]});return sequelize[_0x64ae[16]](_0x64ae[73]+ _0x928fx17[_0x64ae[68]](_0x64ae[67])+ _0x64ae[69],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fx28){_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx28,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[64]]= _0x928fx1e?_0x928fx1e[_0x64ae[64]]:_0x64ae[65]});return sequelize[_0x64ae[16]](_0x64ae[66]+ _0x928fx17[_0x64ae[68]](_0x64ae[67])+ _0x64ae[69],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fx1c){_0x928fx16[_0x64ae[47]](function(_0x928fx1d){var _0x928fx1e=_[_0x64ae[45]](_0x928fx1c,{name:_0x928fx1d[_0x64ae[25]]});_0x928fx1d[_0x64ae[46]]= _0x928fx1e?_0x928fx1e[_0x64ae[46]]:0});var _0x928fx1f=_(_[_0x64ae[58]](_0x928fx16,function(_0x928fx1d){var _0x928fx20=_0x928fx15[_0x64ae[48]]?(_0x928fx1d[_0x64ae[49]]>= Number(_0x928fx15._answeredFrom)):true;var _0x928fx21=_0x928fx15[_0x64ae[50]]?(_0x928fx1d[_0x64ae[49]]<= Number(_0x928fx15._answeredTo)):true;var _0x928fx22=_0x928fx15[_0x64ae[51]]?(_0x928fx1d[_0x64ae[52]]>= Number(_0x928fx15._abandonedFrom)):true;var _0x928fx23=_0x928fx15[_0x64ae[53]]?(_0x928fx1d[_0x64ae[52]]>= Number(_0x928fx15._abandonedTo)):true;var _0x928fx24=_0x928fx15[_0x64ae[54]]?(_0x928fx1d[_0x64ae[55]]>= Number(_0x928fx15._unmanagedFrom)):true;var _0x928fx25=_0x928fx15[_0x64ae[56]]?(_0x928fx1d[_0x64ae[55]]<= Number(_0x928fx15._unmanagedTo)):true;return _[_0x64ae[57]]([_0x928fx20,_0x928fx21,_0x928fx22,_0x928fx23,_0x928fx24,_0x928fx25],function(_0x928fx26,_0x928fx27){return _0x928fx26&& _0x928fx27})}));if(_0x928fx15[_0x64ae[59]]){_0x928fx1f= _0x928fx1f[_0x64ae[62]](_0x928fx15._offset)[_0x64ae[61]](_0x928fx15._limit)[_0x64ae[60]]()};return [_0x928fx16[_0x64ae[63]],_0x928fx1f]})[_0x64ae[44]](function(_0x928fx1a,_0x928fx1b){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({rows:_0x928fx1b,count:_0x928fx1a})})[_0x64ae[12]](function(_0x928fxc){console[_0x64ae[43]](_0x928fxc);return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[81]]= function(_0x928fx9,_0x928fxa){var _0x928fx30={};if(_0x928fx9[_0x64ae[22]][_0x64ae[33]]=== _0x64ae[31]){_0x928fx30[_0x64ae[82]]= _0x928fx9[_0x64ae[22]][_0x64ae[83]]};return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return ReportQueue[_0x64ae[85]](_0x64ae[20],{method:[_0x64ae[84],_0x928fx10]})[_0x64ae[32]](Util[_0x64ae[17]](_0x928fx9[_0x64ae[16]],_0x928fx30))})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({rows:_0x928fxf,count:_0x928fxf[_0x64ae[63]]})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[80]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return ReportQueue[_0x64ae[21]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x928fx10}})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[49]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return ReportQueue[_0x64ae[21]]({where:{queuecallercomplete:true,queue:_0x928fx10}})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[52]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return ReportQueue[_0x64ae[21]]({where:{queuecallerabandon:true,queue:_0x928fx10}})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[86]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return sequelize[_0x64ae[16]](_0x64ae[87]+ _0x928fx10[_0x64ae[68]](_0x64ae[67])+ _0x64ae[88],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf[0][_0x64ae[60]]})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[89]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return sequelize[_0x64ae[16]](_0x64ae[90]+ _0x928fx10[_0x64ae[68]](_0x64ae[67])+ _0x64ae[88],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf[0][_0x64ae[60]]})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[91]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return sequelize[_0x64ae[16]](_0x64ae[92]+ _0x928fx10[_0x64ae[68]](_0x64ae[67])+ _0x64ae[88],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf[0][_0x64ae[60]]})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[93]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return sequelize[_0x64ae[16]](_0x64ae[94]+ _0x928fx10[_0x64ae[68]](_0x64ae[67])+ _0x64ae[88],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf[0][_0x64ae[60]]})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[95]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return sequelize[_0x64ae[16]](_0x64ae[96]+ _0x928fx10[_0x64ae[68]](_0x64ae[67])+ _0x64ae[88],{type:sequelize[_0x64ae[71]][_0x64ae[70]]})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf[0][_0x64ae[60]]})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[55]]= function(_0x928fx9,_0x928fxa){return Promise[_0x64ae[23]]([])[_0x64ae[15]](getVoiceQueues(_0x928fx9[_0x64ae[22]]))[_0x64ae[15]](function(_0x928fx10){return ReportQueue[_0x64ae[21]]({where:{queuecallerexit:true,queue:_0x928fx10}})})[_0x64ae[15]](function(_0x928fxf){return _0x928fxa[_0x64ae[14]](200)[_0x64ae[13]]({value:_0x928fxf})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};exports[_0x64ae[97]]= function(_0x928fx9,_0x928fxa){return ReportQueue[_0x64ae[32]]({where:{queue:_0x928fx9[_0x64ae[99]][_0x64ae[76]]}})[_0x64ae[15]](function(_0x928fx31){if(!_0x928fx31){return _0x928fxa[_0x64ae[98]](404)};return _0x928fxa[_0x64ae[13]]({count:_0x928fx31[_0x64ae[63]],rows:_0x928fx31})})[_0x64ae[12]](function(_0x928fxc){return handleError(_0x928fxa,_0x928fxc)})};function handleError(_0x928fxa,_0x928fxc){return _0x928fxa[_0x64ae[14]](500)[_0x64ae[13]](_0x928fxc)}
\ No newline at end of file