Built motion from commit 0630df9.|0.0.136
[motion.git] / server / api / report_queue / report_queue.controller.js
index 1041c07..0a642bc 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 _0x69c5=["\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","\x5F\x6E\x61\x6D\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\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"];_0x69c5[0];var _=require(_0x69c5[1]);var sequelize=require(_0x69c5[3])[_0x69c5[2]];var Agent=require(_0x69c5[3])[_0x69c5[4]];var ReportQueue=require(_0x69c5[3])[_0x69c5[5]];var VoiceQueue=require(_0x69c5[3])[_0x69c5[6]];var ReportQueueHistory=require(_0x69c5[3])[_0x69c5[8]][_0x69c5[7]];var Util=require(_0x69c5[9]);var Promise=require(_0x69c5[10]);exports[_0x69c5[11]]= function(_0x6405x9,_0x6405xa,_0x6405xb){return ReportQueue[_0x69c5[18]](Util[_0x69c5[17]](_0x6405x9[_0x69c5[16]]))[_0x69c5[15]](function(_0x6405xd){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]](_0x6405xd)})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[19]]= function(_0x6405x9,_0x6405xa){return ReportQueue[_0x69c5[26]](_0x6405x9[_0x69c5[25]][_0x69c5[24]])[_0x69c5[15]](function(_0x6405xe){if(!_0x6405xe){return _0x6405xa[_0x69c5[20]](404)};var _0x6405xf=_[_0x69c5[22]](_0x6405xe,_0x6405x9[_0x69c5[21]]);return _0x6405xf[_0x69c5[23]]()})[_0x69c5[15]](function(_0x6405xe){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]](_0x6405xe)})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[27]]= function(_0x6405x9,_0x6405xa){return ReportQueueHistory[_0x69c5[27]]()[_0x69c5[15]](function(_0x6405x10){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]](_0x6405x10)})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[28]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[29]]({where:{queuecallerleaveAt:null,queue:_0x6405x12}})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};function getVoiceQueues(_0x6405x14){return function(){switch(_0x6405x14[_0x69c5[39]]){case _0x69c5[30]:return Agent[_0x69c5[26]](_0x6405x14[_0x69c5[24]],{attributes:[_0x69c5[24]]})[_0x69c5[15]](Util[_0x69c5[35]]())[_0x69c5[15]](function(_0x6405x12){return _[_0x69c5[34]](_0x6405x12[_0x69c5[32]],_0x69c5[33])});case _0x69c5[37]:return Agent[_0x69c5[26]](_0x6405x14[_0x69c5[24]])[_0x69c5[15]](function(_0x6405x15){return _0x6405x15[_0x69c5[36]]({attributes:[_0x69c5[33]]})})[_0x69c5[15]](function(_0x6405x12){return _[_0x69c5[34]](_0x6405x12,_0x69c5[33])});default:return VoiceQueue[_0x69c5[38]]()[_0x69c5[15]](function(_0x6405x16){return {rows:_0x6405x16}})[_0x69c5[15]](function(_0x6405x12){return _[_0x69c5[34]](_0x6405x12[_0x69c5[32]],_0x69c5[33])})}}}exports[_0x69c5[40]]= function(_0x6405x9,_0x6405xa){var _0x6405x17={_limit:_0x6405x9[_0x69c5[16]][_0x69c5[41]]?_0x6405x9[_0x69c5[16]][_0x69c5[41]]:null,_offset:_0x6405x9[_0x69c5[16]][_0x69c5[42]]?_0x6405x9[_0x69c5[16]][_0x69c5[42]]:0,_name:_0x6405x9[_0x69c5[16]][_0x69c5[33]]|| undefined,_answeredFrom:_0x6405x9[_0x69c5[16]][_0x69c5[43]]|| _0x6405x9[_0x69c5[16]][_0x69c5[43]]=== 0?_0x6405x9[_0x69c5[16]][_0x69c5[43]]:undefined,_answeredTo:_0x6405x9[_0x69c5[16]][_0x69c5[44]]|| _0x6405x9[_0x69c5[16]][_0x69c5[44]]=== 0?_0x6405x9[_0x69c5[16]][_0x69c5[44]]:undefined,_abandonedFrom:_0x6405x9[_0x69c5[16]][_0x69c5[45]]|| _0x6405x9[_0x69c5[16]][_0x69c5[45]]=== 0?_0x6405x9[_0x69c5[16]][_0x69c5[45]]:undefined,_abandonedTo:_0x6405x9[_0x69c5[16]][_0x69c5[46]]|| _0x6405x9[_0x69c5[16]][_0x69c5[46]]=== 0?_0x6405x9[_0x69c5[16]][_0x69c5[46]]:undefined,_unmanagedFrom:_0x6405x9[_0x69c5[16]][_0x69c5[47]]|| _0x6405x9[_0x69c5[16]][_0x69c5[47]]=== 0?_0x6405x9[_0x69c5[16]][_0x69c5[47]]:undefined,_unmanagedTo:_0x6405x9[_0x69c5[16]][_0x69c5[48]]|| _0x6405x9[_0x69c5[16]][_0x69c5[48]]=== 0?_0x6405x9[_0x69c5[16]][_0x69c5[48]]:undefined};console[_0x69c5[49]](_0x6405x17);var _0x6405x18,_0x6405x19,_0x6405x1a,_0x6405x1b;delete _0x6405x9[_0x69c5[16]][_0x69c5[41]];delete _0x6405x9[_0x69c5[16]][_0x69c5[42]];delete _0x6405x9[_0x69c5[16]][_0x69c5[43]];delete _0x6405x9[_0x69c5[16]][_0x69c5[44]];delete _0x6405x9[_0x69c5[16]][_0x69c5[45]];delete _0x6405x9[_0x69c5[16]][_0x69c5[46]];delete _0x6405x9[_0x69c5[16]][_0x69c5[47]];delete _0x6405x9[_0x69c5[16]][_0x69c5[48]];return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){_0x6405x19= _0x6405x12;_0x6405x18= _[_0x69c5[34]](_0x6405x12,function(_0x6405x1f){return {name:_0x6405x1f}});return ReportQueue[_0x69c5[38]]({where:{queuecallerleaveAt:null,queue:_0x6405x19},group:_0x69c5[84],attributes:[[_0x69c5[84],_0x69c5[33]],[sequelize[_0x69c5[87]](_0x69c5[85],sequelize[_0x69c5[86]](_0x69c5[24])),_0x69c5[28]]]})})[_0x69c5[15]](function(_0x6405x31){_0x6405x31= _[_0x69c5[34]](_0x6405x31,_0x69c5[82]);_0x6405x18[_0x69c5[53]](function(_0x6405x1f,_0x6405x32){var _0x6405x20=_[_0x69c5[51]](_0x6405x31,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[28]]= _0x6405x20?_0x6405x20[_0x69c5[28]]:0});return ReportQueue[_0x69c5[38]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x6405x19},group:_0x69c5[84],attributes:[[_0x69c5[84],_0x69c5[33]],[sequelize[_0x69c5[87]](_0x69c5[85],sequelize[_0x69c5[86]](_0x69c5[24])),_0x69c5[88]]]})})[_0x69c5[15]](function(_0x6405x30){_0x6405x30= _[_0x69c5[34]](_0x6405x30,_0x69c5[82]);_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x30,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[88]]= _0x6405x20?_0x6405x20[_0x69c5[88]]:0});return ReportQueue[_0x69c5[38]]({where:{queuecallercomplete:true,queue:_0x6405x19},group:_0x69c5[84],attributes:[[_0x69c5[84],_0x69c5[33]],[sequelize[_0x69c5[87]](_0x69c5[85],sequelize[_0x69c5[86]](_0x69c5[24])),_0x69c5[55]]]})})[_0x69c5[15]](function(_0x6405x2f){_0x6405x2f= _[_0x69c5[34]](_0x6405x2f,_0x69c5[82]);_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x2f,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[55]]= _0x6405x20?_0x6405x20[_0x69c5[55]]:0});return ReportQueue[_0x69c5[38]]({where:{queuecallerabandon:true,queue:_0x6405x19},group:_0x69c5[84],attributes:[[_0x69c5[84],_0x69c5[33]],[sequelize[_0x69c5[87]](_0x69c5[85],sequelize[_0x69c5[86]](_0x69c5[24])),_0x69c5[58]]]})})[_0x69c5[15]](function(_0x6405x2e){_0x6405x2e= _[_0x69c5[34]](_0x6405x2e,_0x69c5[82]);_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x2e,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[58]]= _0x6405x20?_0x6405x20[_0x69c5[58]]:0});return ReportQueue[_0x69c5[38]]({where:{queuecallerexit:true,queue:_0x6405x19},group:_0x69c5[84],attributes:[[_0x69c5[84],_0x69c5[33]],[sequelize[_0x69c5[87]](_0x69c5[85],sequelize[_0x69c5[86]](_0x69c5[24])),_0x69c5[61]]]})})[_0x69c5[15]](function(_0x6405x2d){_0x6405x2d= _[_0x69c5[34]](_0x6405x2d,_0x69c5[82]);_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x2d,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[61]]= _0x6405x20?_0x6405x20[_0x69c5[61]]:0});return sequelize[_0x69c5[16]](_0x69c5[83]+ _0x6405x19[_0x69c5[76]](_0x69c5[75])+ _0x69c5[77],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x2c){_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x2c,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[80]]= _0x6405x20?_0x6405x20[_0x69c5[80]]:_0x69c5[73]});return sequelize[_0x69c5[16]](_0x69c5[81]+ _0x6405x19[_0x69c5[76]](_0x69c5[75])+ _0x69c5[77],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x2b){_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x2b,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[72]]= _0x6405x20?_0x6405x20[_0x69c5[72]]:_0x69c5[73]});return sequelize[_0x69c5[16]](_0x69c5[74]+ _0x6405x19[_0x69c5[76]](_0x69c5[75])+ _0x69c5[77],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x1e){_0x6405x18[_0x69c5[53]](function(_0x6405x1f){var _0x6405x20=_[_0x69c5[51]](_0x6405x1e,{name:_0x6405x1f[_0x69c5[33]]});_0x6405x1f[_0x69c5[52]]= _0x6405x20?_0x6405x20[_0x69c5[52]]:0});var _0x6405x21=_(_[_0x69c5[66]](_0x6405x18,function(_0x6405x1f){var _0x6405x22=_0x6405x17[_0x69c5[54]]?(_0x6405x1f[_0x69c5[55]]>= Number(_0x6405x17._answeredFrom)):true;var _0x6405x23=_0x6405x17[_0x69c5[56]]?(_0x6405x1f[_0x69c5[55]]<= Number(_0x6405x17._answeredTo)):true;var _0x6405x24=_0x6405x17[_0x69c5[57]]?(_0x6405x1f[_0x69c5[58]]>= Number(_0x6405x17._abandonedFrom)):true;var _0x6405x25=_0x6405x17[_0x69c5[59]]?(_0x6405x1f[_0x69c5[58]]<= Number(_0x6405x17._abandonedTo)):true;var _0x6405x26=_0x6405x17[_0x69c5[60]]?(_0x6405x1f[_0x69c5[61]]>= Number(_0x6405x17._unmanagedFrom)):true;var _0x6405x27=_0x6405x17[_0x69c5[62]]?(_0x6405x1f[_0x69c5[61]]<= Number(_0x6405x17._unmanagedTo)):true;var _0x6405x28=_0x6405x17[_0x69c5[63]]?_[_0x69c5[64]](_0x6405x1f[_0x69c5[33]],_0x6405x17._name):true;return _[_0x69c5[65]]([_0x6405x22,_0x6405x23,_0x6405x24,_0x6405x25,_0x6405x26,_0x6405x27,_0x6405x28],function(_0x6405x29,_0x6405x2a){return _0x6405x29&& _0x6405x2a})}));if(_0x6405x17[_0x69c5[67]]){_0x6405x21= _0x6405x21[_0x69c5[70]](_0x6405x17._offset)[_0x69c5[69]](_0x6405x17._limit)[_0x69c5[68]]()};return [_0x6405x18[_0x69c5[71]],_0x6405x21]})[_0x69c5[50]](function(_0x6405x1c,_0x6405x1d){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({rows:_0x6405x1d,count:_0x6405x1c})})[_0x69c5[12]](function(_0x6405xc){console[_0x69c5[49]](_0x6405xc);return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[89]]= function(_0x6405x9,_0x6405xa){var _0x6405x33={};if(_0x6405x9[_0x69c5[30]][_0x69c5[39]]=== _0x69c5[37]){_0x6405x33[_0x69c5[90]]= _0x6405x9[_0x69c5[30]][_0x69c5[91]]};return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[93]](_0x69c5[28],{method:[_0x69c5[92],_0x6405x12]})[_0x69c5[38]](Util[_0x69c5[17]](_0x6405x9[_0x69c5[16]],_0x6405x33))})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({rows:_0x6405x11,count:_0x6405x11[_0x69c5[71]]})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[88]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[29]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x6405x12}})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[55]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[29]]({where:{queuecallercomplete:true,queue:_0x6405x12}})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[58]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[29]]({where:{queuecallerabandon:true,queue:_0x6405x12}})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[94]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return sequelize[_0x69c5[16]](_0x69c5[95]+ _0x6405x12[_0x69c5[76]](_0x69c5[75])+ _0x69c5[96],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11[0][_0x69c5[68]]})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[97]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return sequelize[_0x69c5[16]](_0x69c5[98]+ _0x6405x12[_0x69c5[76]](_0x69c5[75])+ _0x69c5[96],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11[0][_0x69c5[68]]})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[99]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return sequelize[_0x69c5[16]](_0x69c5[100]+ _0x6405x12[_0x69c5[76]](_0x69c5[75])+ _0x69c5[96],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11[0][_0x69c5[68]]})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[101]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return sequelize[_0x69c5[16]](_0x69c5[102]+ _0x6405x12[_0x69c5[76]](_0x69c5[75])+ _0x69c5[96],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11[0][_0x69c5[68]]})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[103]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return sequelize[_0x69c5[16]](_0x69c5[104]+ _0x6405x12[_0x69c5[76]](_0x69c5[75])+ _0x69c5[96],{type:sequelize[_0x69c5[79]][_0x69c5[78]]})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11[0][_0x69c5[68]]})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[61]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[29]]({where:{queuecallerexit:true,queue:_0x6405x12}})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]]({value:_0x6405x11})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[105]]= function(_0x6405x9,_0x6405xa){return Promise[_0x69c5[31]]([])[_0x69c5[15]](getVoiceQueues(_0x6405x9[_0x69c5[30]]))[_0x69c5[15]](function(_0x6405x12){return ReportQueue[_0x69c5[18]]({where:{queuecallerabandon:true,queue:_0x6405x12}})})[_0x69c5[15]](function(_0x6405x11){return _0x6405xa[_0x69c5[14]](200)[_0x69c5[13]](_0x6405x11)})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};exports[_0x69c5[106]]= function(_0x6405x9,_0x6405xa){return ReportQueue[_0x69c5[38]]({where:{queue:_0x6405x9[_0x69c5[25]][_0x69c5[84]]}})[_0x69c5[15]](function(_0x6405x34){if(!_0x6405x34){return _0x6405xa[_0x69c5[20]](404)};return _0x6405xa[_0x69c5[13]]({count:_0x6405x34[_0x69c5[71]],rows:_0x6405x34})})[_0x69c5[12]](function(_0x6405xc){return handleError(_0x6405xa,_0x6405xc)})};function handleError(_0x6405xa,_0x6405xc){return _0x6405xa[_0x69c5[14]](500)[_0x69c5[13]](_0x6405xc)}
\ No newline at end of file