Built motion from commit 2239aeb.|0.0.113
[motion.git] / server / api / report_queue / report_queue.controller.js
index 1041c07..602a4e0 100644 (file)
@@ -1 +1 @@
-var _0xad34=["\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","\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\x46\x72\x6F\x6D","\x61\x6E\x73\x77\x65\x72\x65\x64\x54\x6F","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x46\x72\x6F\x6D","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x54\x6F","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x46\x72\x6F\x6D","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\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","\x77\x61\x69\x74\x69\x6E\x67\x4C\x69\x73\x74","\x73\x63\x6F\x70\x65","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\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"];_0xad34[0];var _=require(_0xad34[1]);var sequelize=require(_0xad34[3])[_0xad34[2]];var Agent=require(_0xad34[3])[_0xad34[4]];var ReportQueue=require(_0xad34[3])[_0xad34[5]];var VoiceQueue=require(_0xad34[3])[_0xad34[6]];var ReportQueueHistory=require(_0xad34[3])[_0xad34[8]][_0xad34[7]];var Util=require(_0xad34[9]);var Promise=require(_0xad34[10]);exports[_0xad34[11]]=function(_0xf764x9,_0xf764xa,_0xf764xb){return ReportQueue[_0xad34[18]](Util[_0xad34[17]](_0xf764x9[_0xad34[16]]))[_0xad34[15]](function(_0xf764xd){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]](_0xf764xd)})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[19]]=function(_0xf764x9,_0xf764xa){return ReportQueueHistory[_0xad34[19]]()[_0xad34[15]](function(_0xf764xe){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]](_0xf764xe)})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[20]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return ReportQueue[_0xad34[21]]({where:{queuecallerleaveAt:null,queue:_0xf764x10}})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};function getVoiceQueues(_0xf764x12){return function(){switch(_0xf764x12[_0xad34[31]]){case _0xad34[22]:return Agent[_0xad34[29]](_0xf764x12[_0xad34[28]],{attributes:[_0xad34[28]]})[_0xad34[15]](Util[_0xad34[27]]())[_0xad34[15]](function(_0xf764x10){return _[_0xad34[26]](_0xf764x10[_0xad34[24]],_0xad34[25])});default:return VoiceQueue[_0xad34[30]]()[_0xad34[15]](function(_0xf764x13){return {rows:_0xf764x13}})[_0xad34[15]](function(_0xf764x10){return _[_0xad34[26]](_0xf764x10[_0xad34[24]],_0xad34[25])})}}}exports[_0xad34[32]]=function(_0xf764x9,_0xf764xa){var _0xf764x14={_limit:_0xf764x9[_0xad34[16]][_0xad34[33]]?_0xf764x9[_0xad34[16]][_0xad34[33]]:null,_offset:_0xf764x9[_0xad34[16]][_0xad34[34]]?_0xf764x9[_0xad34[16]][_0xad34[34]]:0,_answeredFrom:_0xf764x9[_0xad34[16]][_0xad34[35]]||_0xf764x9[_0xad34[16]][_0xad34[35]]===0?_0xf764x9[_0xad34[16]][_0xad34[35]]:undefined,_answeredTo:_0xf764x9[_0xad34[16]][_0xad34[36]]||_0xf764x9[_0xad34[16]][_0xad34[36]]===0?_0xf764x9[_0xad34[16]][_0xad34[36]]:undefined,_abandonedFrom:_0xf764x9[_0xad34[16]][_0xad34[37]]||_0xf764x9[_0xad34[16]][_0xad34[37]]===0?_0xf764x9[_0xad34[16]][_0xad34[37]]:undefined,_abandonedTo:_0xf764x9[_0xad34[16]][_0xad34[38]]||_0xf764x9[_0xad34[16]][_0xad34[38]]===0?_0xf764x9[_0xad34[16]][_0xad34[38]]:undefined,_unmanagedFrom:_0xf764x9[_0xad34[16]][_0xad34[39]]||_0xf764x9[_0xad34[16]][_0xad34[39]]===0?_0xf764x9[_0xad34[16]][_0xad34[39]]:undefined,_unmanagedTo:_0xf764x9[_0xad34[16]][_0xad34[40]]||_0xf764x9[_0xad34[16]][_0xad34[40]]===0?_0xf764x9[_0xad34[16]][_0xad34[40]]:undefined};var _0xf764x15,_0xf764x16,_0xf764x17,_0xf764x18;console[_0xad34[41]](_0xf764x9[_0xad34[16]]);delete _0xf764x9[_0xad34[16]][_0xad34[33]];delete _0xf764x9[_0xad34[16]][_0xad34[34]];delete _0xf764x9[_0xad34[16]][_0xad34[35]];delete _0xf764x9[_0xad34[16]][_0xad34[36]];delete _0xf764x9[_0xad34[16]][_0xad34[37]];delete _0xf764x9[_0xad34[16]][_0xad34[38]];delete _0xf764x9[_0xad34[16]][_0xad34[39]];delete _0xf764x9[_0xad34[16]][_0xad34[40]];return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){_0xf764x16=_0xf764x10;_0xf764x15=_[_0xad34[26]](_0xf764x10,function(_0xf764x1c){return {name:_0xf764x1c}});return ReportQueue[_0xad34[30]]({where:{queuecallerleaveAt:null,queue:_0xf764x16},group:_0xad34[74],attributes:[[_0xad34[74],_0xad34[25]],[sequelize[_0xad34[77]](_0xad34[75],sequelize[_0xad34[76]](_0xad34[28])),_0xad34[20]]]})})[_0xad34[15]](function(_0xf764x2d){_0xf764x2d=_[_0xad34[26]](_0xf764x2d,_0xad34[72]);_0xf764x15[_0xad34[45]](function(_0xf764x1c,_0xf764x2e){var _0xf764x1d=_[_0xad34[43]](_0xf764x2d,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[20]]=_0xf764x1d?_0xf764x1d[_0xad34[20]]:0});return ReportQueue[_0xad34[30]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xf764x16},group:_0xad34[74],attributes:[[_0xad34[74],_0xad34[25]],[sequelize[_0xad34[77]](_0xad34[75],sequelize[_0xad34[76]](_0xad34[28])),_0xad34[78]]]})})[_0xad34[15]](function(_0xf764x2c){_0xf764x2c=_[_0xad34[26]](_0xf764x2c,_0xad34[72]);_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x2c,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[78]]=_0xf764x1d?_0xf764x1d[_0xad34[78]]:0});return ReportQueue[_0xad34[30]]({where:{queuecallercomplete:true,queue:_0xf764x16},group:_0xad34[74],attributes:[[_0xad34[74],_0xad34[25]],[sequelize[_0xad34[77]](_0xad34[75],sequelize[_0xad34[76]](_0xad34[28])),_0xad34[47]]]})})[_0xad34[15]](function(_0xf764x2b){_0xf764x2b=_[_0xad34[26]](_0xf764x2b,_0xad34[72]);_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x2b,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[47]]=_0xf764x1d?_0xf764x1d[_0xad34[47]]:0});return ReportQueue[_0xad34[30]]({where:{queuecallerabandon:true,queue:_0xf764x16},group:_0xad34[74],attributes:[[_0xad34[74],_0xad34[25]],[sequelize[_0xad34[77]](_0xad34[75],sequelize[_0xad34[76]](_0xad34[28])),_0xad34[50]]]})})[_0xad34[15]](function(_0xf764x2a){_0xf764x2a=_[_0xad34[26]](_0xf764x2a,_0xad34[72]);_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x2a,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[50]]=_0xf764x1d?_0xf764x1d[_0xad34[50]]:0});return ReportQueue[_0xad34[30]]({where:{queuecallerexit:true,queue:_0xf764x16},group:_0xad34[74],attributes:[[_0xad34[74],_0xad34[25]],[sequelize[_0xad34[77]](_0xad34[75],sequelize[_0xad34[76]](_0xad34[28])),_0xad34[53]]]})})[_0xad34[15]](function(_0xf764x29){_0xf764x29=_[_0xad34[26]](_0xf764x29,_0xad34[72]);_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x29,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[53]]=_0xf764x1d?_0xf764x1d[_0xad34[53]]:0});return sequelize[_0xad34[16]](_0xad34[73]+_0xf764x16[_0xad34[66]](_0xad34[65])+_0xad34[67],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764x28){_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x28,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[70]]=_0xf764x1d?_0xf764x1d[_0xad34[70]]:_0xad34[63]});return sequelize[_0xad34[16]](_0xad34[71]+_0xf764x16[_0xad34[66]](_0xad34[65])+_0xad34[67],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764x27){_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x27,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[62]]=_0xf764x1d?_0xf764x1d[_0xad34[62]]:_0xad34[63]});return sequelize[_0xad34[16]](_0xad34[64]+_0xf764x16[_0xad34[66]](_0xad34[65])+_0xad34[67],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764x1b){_0xf764x15[_0xad34[45]](function(_0xf764x1c){var _0xf764x1d=_[_0xad34[43]](_0xf764x1b,{name:_0xf764x1c[_0xad34[25]]});_0xf764x1c[_0xad34[44]]=_0xf764x1d?_0xf764x1d[_0xad34[44]]:0});var _0xf764x1e=_(_[_0xad34[56]](_0xf764x15,function(_0xf764x1c){var _0xf764x1f=_0xf764x14[_0xad34[46]]?(_0xf764x1c[_0xad34[47]]>=Number(_0xf764x14._answeredFrom)):true;var _0xf764x20=_0xf764x14[_0xad34[48]]?(_0xf764x1c[_0xad34[47]]<=Number(_0xf764x14._answeredTo)):true;var _0xf764x21=_0xf764x14[_0xad34[49]]?(_0xf764x1c[_0xad34[50]]>=Number(_0xf764x14._abandonedFrom)):true;var _0xf764x22=_0xf764x14[_0xad34[51]]?(_0xf764x1c[_0xad34[50]]>=Number(_0xf764x14._abandonedTo)):true;var _0xf764x23=_0xf764x14[_0xad34[52]]?(_0xf764x1c[_0xad34[53]]>=Number(_0xf764x14._unmanagedFrom)):true;var _0xf764x24=_0xf764x14[_0xad34[54]]?(_0xf764x1c[_0xad34[53]]<=Number(_0xf764x14._unmanagedTo)):true;return _[_0xad34[55]]([_0xf764x1f,_0xf764x20,_0xf764x21,_0xf764x22,_0xf764x23,_0xf764x24],function(_0xf764x25,_0xf764x26){return _0xf764x25&&_0xf764x26})}));if(_0xf764x14[_0xad34[57]]){_0xf764x1e=_0xf764x1e[_0xad34[60]](_0xf764x14._offset)[_0xad34[59]](_0xf764x14._limit)[_0xad34[58]]()};return [_0xf764x15[_0xad34[61]],_0xf764x1e]})[_0xad34[42]](function(_0xf764x19,_0xf764x1a){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({rows:_0xf764x1a,count:_0xf764x19})})[_0xad34[12]](function(_0xf764xc){console[_0xad34[41]](_0xf764xc);return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[79]]=function(_0xf764x9,_0xf764xa){switch(_0xf764x9[_0xad34[22]][_0xad34[31]]){case _0xad34[22]:return Agent[_0xad34[29]](_0xf764x9[_0xad34[22]][_0xad34[28]],{attributes:[_0xad34[28]]})[_0xad34[15]](Util[_0xad34[27]]())[_0xad34[15]](function(_0xf764x2f){_0xf764x2f=_[_0xad34[26]](_0xf764x2f[_0xad34[24]],_0xad34[25]);return ReportQueue[_0xad34[30]](Util[_0xad34[17]](_0xf764x9[_0xad34[16]],{queuecallerleaveAt:null,queue:{$in:_0xf764x2f}}))})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({rows:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)});default:return ReportQueue[_0xad34[30]]({where:{queuecallerleaveAt:null}})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({rows:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})}};exports[_0xad34[80]]=function(_0xf764x9,_0xf764xa){return Agent[_0xad34[29]](_0xf764x9[_0xad34[22]][_0xad34[28]])[_0xad34[15]](function(_0xf764x31){return _0xf764x31[_0xad34[82]]({attributes:[_0xad34[25]]})})[_0xad34[15]](function(_0xf764x13){return ReportQueue[_0xad34[81]](_0xad34[20],{method:[_0xf764x9[_0xad34[22]][_0xad34[31]],_[_0xad34[26]](_0xf764x13,_0xad34[25])]})[_0xad34[30]]()})[_0xad34[15]](function(_0xf764x30){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({count:_0xf764x30[_0xad34[61]],rows:_0xf764x30})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[78]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return ReportQueue[_0xad34[21]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xf764x10}})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[47]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return ReportQueue[_0xad34[21]]({where:{queuecallercomplete:true,queue:_0xf764x10}})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[50]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return ReportQueue[_0xad34[21]]({where:{queuecallerabandon:true,queue:_0xf764x10}})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[83]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return sequelize[_0xad34[16]](_0xad34[84]+_0xf764x10[_0xad34[66]](_0xad34[65])+_0xad34[85],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf[0][_0xad34[58]]})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[86]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return sequelize[_0xad34[16]](_0xad34[87]+_0xf764x10[_0xad34[66]](_0xad34[65])+_0xad34[85],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf[0][_0xad34[58]]})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[88]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return sequelize[_0xad34[16]](_0xad34[89]+_0xf764x10[_0xad34[66]](_0xad34[65])+_0xad34[85],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf[0][_0xad34[58]]})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[90]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return sequelize[_0xad34[16]](_0xad34[91]+_0xf764x10[_0xad34[66]](_0xad34[65])+_0xad34[85],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf[0][_0xad34[58]]})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[92]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return sequelize[_0xad34[16]](_0xad34[93]+_0xf764x10[_0xad34[66]](_0xad34[65])+_0xad34[85],{type:sequelize[_0xad34[69]][_0xad34[68]]})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf[0][_0xad34[58]]})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[53]]=function(_0xf764x9,_0xf764xa){return Promise[_0xad34[23]]([])[_0xad34[15]](getVoiceQueues(_0xf764x9[_0xad34[22]]))[_0xad34[15]](function(_0xf764x10){return ReportQueue[_0xad34[21]]({where:{queuecallerexit:true,queue:_0xf764x10}})})[_0xad34[15]](function(_0xf764xf){return _0xf764xa[_0xad34[14]](200)[_0xad34[13]]({value:_0xf764xf})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};exports[_0xad34[94]]=function(_0xf764x9,_0xf764xa){return ReportQueue[_0xad34[30]]({where:{queue:_0xf764x9[_0xad34[96]][_0xad34[74]]}})[_0xad34[15]](function(_0xf764x32){if(!_0xf764x32){return _0xf764xa[_0xad34[95]](404)};return _0xf764xa[_0xad34[13]]({count:_0xf764x32[_0xad34[61]],rows:_0xf764x32})})[_0xad34[12]](function(_0xf764xc){return handleError(_0xf764xa,_0xf764xc)})};function handleError(_0xf764xa,_0xf764xc){return _0xf764xa[_0xad34[14]](500)[_0xad34[13]](_0xf764xc)}
\ No newline at end of file
+var _0x9fa6=["\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"];_0x9fa6[0];var _=require(_0x9fa6[1]);var sequelize=require(_0x9fa6[3])[_0x9fa6[2]];var Agent=require(_0x9fa6[3])[_0x9fa6[4]];var ReportQueue=require(_0x9fa6[3])[_0x9fa6[5]];var VoiceQueue=require(_0x9fa6[3])[_0x9fa6[6]];var ReportQueueHistory=require(_0x9fa6[3])[_0x9fa6[8]][_0x9fa6[7]];var Util=require(_0x9fa6[9]);var Promise=require(_0x9fa6[10]);exports[_0x9fa6[11]]= function(_0x58fdx9,_0x58fdxa,_0x58fdxb){return ReportQueue[_0x9fa6[18]](Util[_0x9fa6[17]](_0x58fdx9[_0x9fa6[16]]))[_0x9fa6[15]](function(_0x58fdxd){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]](_0x58fdxd)})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[19]]= function(_0x58fdx9,_0x58fdxa){return ReportQueueHistory[_0x9fa6[19]]()[_0x9fa6[15]](function(_0x58fdxe){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]](_0x58fdxe)})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[20]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return ReportQueue[_0x9fa6[21]]({where:{queuecallerleaveAt:null,queue:_0x58fdx10}})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};function getVoiceQueues(_0x58fdx12){return function(){switch(_0x58fdx12[_0x9fa6[33]]){case _0x9fa6[22]:return Agent[_0x9fa6[29]](_0x58fdx12[_0x9fa6[28]],{attributes:[_0x9fa6[28]]})[_0x9fa6[15]](Util[_0x9fa6[27]]())[_0x9fa6[15]](function(_0x58fdx10){return _[_0x9fa6[26]](_0x58fdx10[_0x9fa6[24]],_0x9fa6[25])});case _0x9fa6[31]:return Agent[_0x9fa6[29]](_0x58fdx12[_0x9fa6[28]])[_0x9fa6[15]](function(_0x58fdx13){return _0x58fdx13[_0x9fa6[30]]({attributes:[_0x9fa6[25]]})})[_0x9fa6[15]](function(_0x58fdx10){return _[_0x9fa6[26]](_0x58fdx10[_0x9fa6[24]],_0x9fa6[25])});default:return VoiceQueue[_0x9fa6[32]]()[_0x9fa6[15]](function(_0x58fdx14){return {rows:_0x58fdx14}})[_0x9fa6[15]](function(_0x58fdx10){return _[_0x9fa6[26]](_0x58fdx10[_0x9fa6[24]],_0x9fa6[25])})}}}exports[_0x9fa6[34]]= function(_0x58fdx9,_0x58fdxa){var _0x58fdx15={_limit:_0x58fdx9[_0x9fa6[16]][_0x9fa6[35]]?_0x58fdx9[_0x9fa6[16]][_0x9fa6[35]]:null,_offset:_0x58fdx9[_0x9fa6[16]][_0x9fa6[36]]?_0x58fdx9[_0x9fa6[16]][_0x9fa6[36]]:0,_answeredFrom:_0x58fdx9[_0x9fa6[16]][_0x9fa6[37]]|| _0x58fdx9[_0x9fa6[16]][_0x9fa6[37]]=== 0?_0x58fdx9[_0x9fa6[16]][_0x9fa6[37]]:undefined,_answeredTo:_0x58fdx9[_0x9fa6[16]][_0x9fa6[38]]|| _0x58fdx9[_0x9fa6[16]][_0x9fa6[38]]=== 0?_0x58fdx9[_0x9fa6[16]][_0x9fa6[38]]:undefined,_abandonedFrom:_0x58fdx9[_0x9fa6[16]][_0x9fa6[39]]|| _0x58fdx9[_0x9fa6[16]][_0x9fa6[39]]=== 0?_0x58fdx9[_0x9fa6[16]][_0x9fa6[39]]:undefined,_abandonedTo:_0x58fdx9[_0x9fa6[16]][_0x9fa6[40]]|| _0x58fdx9[_0x9fa6[16]][_0x9fa6[40]]=== 0?_0x58fdx9[_0x9fa6[16]][_0x9fa6[40]]:undefined,_unmanagedFrom:_0x58fdx9[_0x9fa6[16]][_0x9fa6[41]]|| _0x58fdx9[_0x9fa6[16]][_0x9fa6[41]]=== 0?_0x58fdx9[_0x9fa6[16]][_0x9fa6[41]]:undefined,_unmanagedTo:_0x58fdx9[_0x9fa6[16]][_0x9fa6[42]]|| _0x58fdx9[_0x9fa6[16]][_0x9fa6[42]]=== 0?_0x58fdx9[_0x9fa6[16]][_0x9fa6[42]]:undefined};var _0x58fdx16,_0x58fdx17,_0x58fdx18,_0x58fdx19;delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[35]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[36]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[37]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[38]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[39]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[40]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[41]];delete _0x58fdx9[_0x9fa6[16]][_0x9fa6[42]];return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){_0x58fdx17= _0x58fdx10;_0x58fdx16= _[_0x9fa6[26]](_0x58fdx10,function(_0x58fdx1d){return {name:_0x58fdx1d}});return ReportQueue[_0x9fa6[32]]({where:{queuecallerleaveAt:null,queue:_0x58fdx17},group:_0x9fa6[76],attributes:[[_0x9fa6[76],_0x9fa6[25]],[sequelize[_0x9fa6[79]](_0x9fa6[77],sequelize[_0x9fa6[78]](_0x9fa6[28])),_0x9fa6[20]]]})})[_0x9fa6[15]](function(_0x58fdx2e){_0x58fdx2e= _[_0x9fa6[26]](_0x58fdx2e,_0x9fa6[74]);_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d,_0x58fdx2f){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx2e,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[20]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[20]]:0});return ReportQueue[_0x9fa6[32]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x58fdx17},group:_0x9fa6[76],attributes:[[_0x9fa6[76],_0x9fa6[25]],[sequelize[_0x9fa6[79]](_0x9fa6[77],sequelize[_0x9fa6[78]](_0x9fa6[28])),_0x9fa6[80]]]})})[_0x9fa6[15]](function(_0x58fdx2d){_0x58fdx2d= _[_0x9fa6[26]](_0x58fdx2d,_0x9fa6[74]);_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx2d,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[80]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[80]]:0});return ReportQueue[_0x9fa6[32]]({where:{queuecallercomplete:true,queue:_0x58fdx17},group:_0x9fa6[76],attributes:[[_0x9fa6[76],_0x9fa6[25]],[sequelize[_0x9fa6[79]](_0x9fa6[77],sequelize[_0x9fa6[78]](_0x9fa6[28])),_0x9fa6[49]]]})})[_0x9fa6[15]](function(_0x58fdx2c){_0x58fdx2c= _[_0x9fa6[26]](_0x58fdx2c,_0x9fa6[74]);_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx2c,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[49]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[49]]:0});return ReportQueue[_0x9fa6[32]]({where:{queuecallerabandon:true,queue:_0x58fdx17},group:_0x9fa6[76],attributes:[[_0x9fa6[76],_0x9fa6[25]],[sequelize[_0x9fa6[79]](_0x9fa6[77],sequelize[_0x9fa6[78]](_0x9fa6[28])),_0x9fa6[52]]]})})[_0x9fa6[15]](function(_0x58fdx2b){_0x58fdx2b= _[_0x9fa6[26]](_0x58fdx2b,_0x9fa6[74]);_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx2b,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[52]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[52]]:0});return ReportQueue[_0x9fa6[32]]({where:{queuecallerexit:true,queue:_0x58fdx17},group:_0x9fa6[76],attributes:[[_0x9fa6[76],_0x9fa6[25]],[sequelize[_0x9fa6[79]](_0x9fa6[77],sequelize[_0x9fa6[78]](_0x9fa6[28])),_0x9fa6[55]]]})})[_0x9fa6[15]](function(_0x58fdx2a){_0x58fdx2a= _[_0x9fa6[26]](_0x58fdx2a,_0x9fa6[74]);_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx2a,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[55]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[55]]:0});return sequelize[_0x9fa6[16]](_0x9fa6[75]+ _0x58fdx17[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[69],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdx29){_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx29,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[72]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[72]]:_0x9fa6[65]});return sequelize[_0x9fa6[16]](_0x9fa6[73]+ _0x58fdx17[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[69],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdx28){_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx28,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[64]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[64]]:_0x9fa6[65]});return sequelize[_0x9fa6[16]](_0x9fa6[66]+ _0x58fdx17[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[69],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdx1c){_0x58fdx16[_0x9fa6[47]](function(_0x58fdx1d){var _0x58fdx1e=_[_0x9fa6[45]](_0x58fdx1c,{name:_0x58fdx1d[_0x9fa6[25]]});_0x58fdx1d[_0x9fa6[46]]= _0x58fdx1e?_0x58fdx1e[_0x9fa6[46]]:0});var _0x58fdx1f=_(_[_0x9fa6[58]](_0x58fdx16,function(_0x58fdx1d){var _0x58fdx20=_0x58fdx15[_0x9fa6[48]]?(_0x58fdx1d[_0x9fa6[49]]>= Number(_0x58fdx15._answeredFrom)):true;var _0x58fdx21=_0x58fdx15[_0x9fa6[50]]?(_0x58fdx1d[_0x9fa6[49]]<= Number(_0x58fdx15._answeredTo)):true;var _0x58fdx22=_0x58fdx15[_0x9fa6[51]]?(_0x58fdx1d[_0x9fa6[52]]>= Number(_0x58fdx15._abandonedFrom)):true;var _0x58fdx23=_0x58fdx15[_0x9fa6[53]]?(_0x58fdx1d[_0x9fa6[52]]>= Number(_0x58fdx15._abandonedTo)):true;var _0x58fdx24=_0x58fdx15[_0x9fa6[54]]?(_0x58fdx1d[_0x9fa6[55]]>= Number(_0x58fdx15._unmanagedFrom)):true;var _0x58fdx25=_0x58fdx15[_0x9fa6[56]]?(_0x58fdx1d[_0x9fa6[55]]<= Number(_0x58fdx15._unmanagedTo)):true;return _[_0x9fa6[57]]([_0x58fdx20,_0x58fdx21,_0x58fdx22,_0x58fdx23,_0x58fdx24,_0x58fdx25],function(_0x58fdx26,_0x58fdx27){return _0x58fdx26&& _0x58fdx27})}));if(_0x58fdx15[_0x9fa6[59]]){_0x58fdx1f= _0x58fdx1f[_0x9fa6[62]](_0x58fdx15._offset)[_0x9fa6[61]](_0x58fdx15._limit)[_0x9fa6[60]]()};return [_0x58fdx16[_0x9fa6[63]],_0x58fdx1f]})[_0x9fa6[44]](function(_0x58fdx1a,_0x58fdx1b){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({rows:_0x58fdx1b,count:_0x58fdx1a})})[_0x9fa6[12]](function(_0x58fdxc){console[_0x9fa6[43]](_0x58fdxc);return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[81]]= function(_0x58fdx9,_0x58fdxa){console[_0x9fa6[43]](_0x58fdx9[_0x9fa6[22]]);var _0x58fdx30={};if(_0x58fdx9[_0x9fa6[22]][_0x9fa6[33]]=== _0x9fa6[31]){_0x58fdx30[_0x9fa6[82]]= _0x58fdx9[_0x9fa6[22]][_0x9fa6[83]]};return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return ReportQueue[_0x9fa6[85]](_0x9fa6[20],{method:[_0x9fa6[84],_0x58fdx10]})[_0x9fa6[32]](Util[_0x9fa6[17]](_0x58fdx9[_0x9fa6[16]],_0x58fdx30))})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({rows:_0x58fdxf,count:_0x58fdxf[_0x9fa6[63]]})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[80]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return ReportQueue[_0x9fa6[21]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x58fdx10}})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[49]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return ReportQueue[_0x9fa6[21]]({where:{queuecallercomplete:true,queue:_0x58fdx10}})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[52]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return ReportQueue[_0x9fa6[21]]({where:{queuecallerabandon:true,queue:_0x58fdx10}})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[86]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return sequelize[_0x9fa6[16]](_0x9fa6[87]+ _0x58fdx10[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[88],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf[0][_0x9fa6[60]]})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[89]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return sequelize[_0x9fa6[16]](_0x9fa6[90]+ _0x58fdx10[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[88],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf[0][_0x9fa6[60]]})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[91]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return sequelize[_0x9fa6[16]](_0x9fa6[92]+ _0x58fdx10[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[88],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf[0][_0x9fa6[60]]})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[93]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return sequelize[_0x9fa6[16]](_0x9fa6[94]+ _0x58fdx10[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[88],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf[0][_0x9fa6[60]]})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[95]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return sequelize[_0x9fa6[16]](_0x9fa6[96]+ _0x58fdx10[_0x9fa6[68]](_0x9fa6[67])+ _0x9fa6[88],{type:sequelize[_0x9fa6[71]][_0x9fa6[70]]})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf[0][_0x9fa6[60]]})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[55]]= function(_0x58fdx9,_0x58fdxa){return Promise[_0x9fa6[23]]([])[_0x9fa6[15]](getVoiceQueues(_0x58fdx9[_0x9fa6[22]]))[_0x9fa6[15]](function(_0x58fdx10){return ReportQueue[_0x9fa6[21]]({where:{queuecallerexit:true,queue:_0x58fdx10}})})[_0x9fa6[15]](function(_0x58fdxf){return _0x58fdxa[_0x9fa6[14]](200)[_0x9fa6[13]]({value:_0x58fdxf})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};exports[_0x9fa6[97]]= function(_0x58fdx9,_0x58fdxa){return ReportQueue[_0x9fa6[32]]({where:{queue:_0x58fdx9[_0x9fa6[99]][_0x9fa6[76]]}})[_0x9fa6[15]](function(_0x58fdx31){if(!_0x58fdx31){return _0x58fdxa[_0x9fa6[98]](404)};return _0x58fdxa[_0x9fa6[13]]({count:_0x58fdx31[_0x9fa6[63]],rows:_0x58fdx31})})[_0x9fa6[12]](function(_0x58fdxc){return handleError(_0x58fdxa,_0x58fdxc)})};function handleError(_0x58fdxa,_0x58fdxc){return _0x58fdxa[_0x9fa6[14]](500)[_0x9fa6[13]](_0x58fdxc)}
\ No newline at end of file