Built motion from commit ae98c6c.|0.0.149
[motion.git] / server / api / report_queue / report_queue.controller.js
index 1041c07..e3f2975 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 _0x7e46=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\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","\x64\x61\x73\x68\x62\x6F\x61\x72\x64","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x6C\x65\x6E\x67\x74\x68","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x73\x75\x6D\x42\x79","\x72\x6F\x75\x6E\x64","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x75\x6E\x69\x78","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x41\x74","\x66\x6F\x72\x45\x61\x63\x68","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x62\x61\x6E\x64\x6F\x6E","\x63\x6F\x75\x6E\x74","\x61\x63\x74\x69\x76\x65","\x77\x61\x69\x74\x69\x6E\x67","\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","\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","\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","\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","\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","\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","\x77\x61\x69\x74\x69\x6E\x67\x43\x61\x6C\x6C\x73","\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"];_0x7e46[0];var _=require(_0x7e46[1]);var moment=require(_0x7e46[2]);var sequelize=require(_0x7e46[4])[_0x7e46[3]];var Agent=require(_0x7e46[4])[_0x7e46[5]];var ReportQueue=require(_0x7e46[4])[_0x7e46[6]];var VoiceQueue=require(_0x7e46[4])[_0x7e46[7]];var ReportQueueHistory=require(_0x7e46[4])[_0x7e46[9]][_0x7e46[8]];var Util=require(_0x7e46[10]);var Promise=require(_0x7e46[11]);exports[_0x7e46[12]]= function(_0x8144xa,_0x8144xb,_0x8144xc){return ReportQueue[_0x7e46[19]](Util[_0x7e46[18]](_0x8144xa[_0x7e46[17]]))[_0x7e46[16]](function(_0x8144xe){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]](_0x8144xe)})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[20]]= function(_0x8144xa,_0x8144xb){return ReportQueue[_0x7e46[27]](_0x8144xa[_0x7e46[26]][_0x7e46[25]])[_0x7e46[16]](function(_0x8144xf){if(!_0x8144xf){return _0x8144xb[_0x7e46[21]](404)};var _0x8144x10=_[_0x7e46[23]](_0x8144xf,_0x8144xa[_0x7e46[22]]);return _0x8144x10[_0x7e46[24]]()})[_0x7e46[16]](function(_0x8144xf){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]](_0x8144xf)})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[28]]= function(_0x8144xa,_0x8144xb){return ReportQueueHistory[_0x7e46[28]]()[_0x7e46[16]](function(_0x8144x11){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]](_0x8144x11)})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[29]]= function(_0x8144xa,_0x8144xb){var _0x8144x12,_0x8144x13={};return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){_0x8144x12= _0x8144x16;return ReportQueue[_0x7e46[43]]({where:{queuecallerleaveAt:null,queuecallerexit:false,queue:_0x8144x12}})})[_0x7e46[16]](function(_0x8144x14){_0x8144x13[_0x7e46[45]]= _0x8144x14;return ReportQueue[_0x7e46[43]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x8144x12}})})[_0x7e46[16]](function(_0x8144x14){_0x8144x13[_0x7e46[44]]= _0x8144x14;return ReportQueue[_0x7e46[43]]({where:{queuecallerabandon:true,queue:_0x8144x12}})})[_0x7e46[16]](function(_0x8144x14){_0x8144x13[_0x7e46[42]]= _0x8144x14;return ReportQueue[_0x7e46[43]]({where:{queuecallerexit:true,queue:_0x8144x12}})})[_0x7e46[16]](function(_0x8144x14){_0x8144x13[_0x7e46[40]]= _0x8144x14;return ReportQueue[_0x7e46[41]]({where:{queuecallercomplete:true,queue:_0x8144x12},raw:true})})[_0x7e46[16]](function(_0x8144x14){_0x8144x13[_0x7e46[30]]= _0x8144x14[_0x7e46[31]];_0x8144x13[_0x7e46[32]]= _[_0x7e46[34]](_[_0x7e46[33]](_0x8144x14,_0x7e46[32]));_0x8144x13[_0x7e46[35]]= 0;_[_0x7e46[39]](_0x8144x14,function(_0x8144x15){_0x8144x13[_0x7e46[35]]+= moment(_0x8144x15[_0x7e46[37]])[_0x7e46[36]]()- moment(_0x8144x15[_0x7e46[38]])[_0x7e46[36]]()});return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]](_0x8144x13)})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[45]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[43]]({where:{queuecallerleaveAt:null,queuecallerexit:false,queue:_0x8144x16}})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};function getVoiceQueues(_0x8144x18){return function(){switch(_0x8144x18[_0x7e46[54]]){case _0x7e46[46]:return Agent[_0x7e46[27]](_0x8144x18[_0x7e46[25]],{attributes:[_0x7e46[25]]})[_0x7e46[16]](Util[_0x7e46[51]]())[_0x7e46[16]](function(_0x8144x16){return _[_0x7e46[50]](_0x8144x16[_0x7e46[48]],_0x7e46[49])});case _0x7e46[53]:return Agent[_0x7e46[27]](_0x8144x18[_0x7e46[25]])[_0x7e46[16]](function(_0x8144x19){return _0x8144x19[_0x7e46[52]]({attributes:[_0x7e46[49]]})})[_0x7e46[16]](function(_0x8144x16){return _[_0x7e46[50]](_0x8144x16,_0x7e46[49])});default:return VoiceQueue[_0x7e46[41]]()[_0x7e46[16]](function(_0x8144x1a){return {rows:_0x8144x1a}})[_0x7e46[16]](function(_0x8144x16){return _[_0x7e46[50]](_0x8144x16[_0x7e46[48]],_0x7e46[49])})}}}exports[_0x7e46[55]]= function(_0x8144xa,_0x8144xb){var _0x8144x1b={_limit:_0x8144xa[_0x7e46[17]][_0x7e46[56]]?_0x8144xa[_0x7e46[17]][_0x7e46[56]]:null,_offset:_0x8144xa[_0x7e46[17]][_0x7e46[57]]?_0x8144xa[_0x7e46[17]][_0x7e46[57]]:0,_name:_0x8144xa[_0x7e46[17]][_0x7e46[49]]|| undefined,_answeredFrom:_0x8144xa[_0x7e46[17]][_0x7e46[58]]|| _0x8144xa[_0x7e46[17]][_0x7e46[58]]=== 0?_0x8144xa[_0x7e46[17]][_0x7e46[58]]:undefined,_answeredTo:_0x8144xa[_0x7e46[17]][_0x7e46[59]]|| _0x8144xa[_0x7e46[17]][_0x7e46[59]]=== 0?_0x8144xa[_0x7e46[17]][_0x7e46[59]]:undefined,_abandonedFrom:_0x8144xa[_0x7e46[17]][_0x7e46[60]]|| _0x8144xa[_0x7e46[17]][_0x7e46[60]]=== 0?_0x8144xa[_0x7e46[17]][_0x7e46[60]]:undefined,_abandonedTo:_0x8144xa[_0x7e46[17]][_0x7e46[61]]|| _0x8144xa[_0x7e46[17]][_0x7e46[61]]=== 0?_0x8144xa[_0x7e46[17]][_0x7e46[61]]:undefined,_unmanagedFrom:_0x8144xa[_0x7e46[17]][_0x7e46[62]]|| _0x8144xa[_0x7e46[17]][_0x7e46[62]]=== 0?_0x8144xa[_0x7e46[17]][_0x7e46[62]]:undefined,_unmanagedTo:_0x8144xa[_0x7e46[17]][_0x7e46[63]]|| _0x8144xa[_0x7e46[17]][_0x7e46[63]]=== 0?_0x8144xa[_0x7e46[17]][_0x7e46[63]]:undefined};console[_0x7e46[64]](_0x8144x1b);var _0x8144x1c,_0x8144x12,_0x8144x1d,_0x8144x1e;delete _0x8144xa[_0x7e46[17]][_0x7e46[56]];delete _0x8144xa[_0x7e46[17]][_0x7e46[57]];delete _0x8144xa[_0x7e46[17]][_0x7e46[58]];delete _0x8144xa[_0x7e46[17]][_0x7e46[59]];delete _0x8144xa[_0x7e46[17]][_0x7e46[60]];delete _0x8144xa[_0x7e46[17]][_0x7e46[61]];delete _0x8144xa[_0x7e46[17]][_0x7e46[62]];delete _0x8144xa[_0x7e46[17]][_0x7e46[63]];return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){_0x8144x12= _0x8144x16;_0x8144x1c= _[_0x7e46[50]](_0x8144x16,function(_0x8144x22){return {name:_0x8144x22}});return ReportQueue[_0x7e46[41]]({where:{queuecallerleaveAt:null,queue:_0x8144x12},group:_0x7e46[94],attributes:[[_0x7e46[94],_0x7e46[49]],[sequelize[_0x7e46[97]](_0x7e46[95],sequelize[_0x7e46[96]](_0x7e46[25])),_0x7e46[45]]]})})[_0x7e46[16]](function(_0x8144x34){_0x8144x34= _[_0x7e46[50]](_0x8144x34,_0x7e46[92]);_0x8144x1c[_0x7e46[39]](function(_0x8144x22,_0x8144x35){var _0x8144x23=_[_0x7e46[66]](_0x8144x34,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[45]]= _0x8144x23?_0x8144x23[_0x7e46[45]]:0});return ReportQueue[_0x7e46[41]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x8144x12},group:_0x7e46[94],attributes:[[_0x7e46[94],_0x7e46[49]],[sequelize[_0x7e46[97]](_0x7e46[95],sequelize[_0x7e46[96]](_0x7e46[25])),_0x7e46[44]]]})})[_0x7e46[16]](function(_0x8144x33){_0x8144x33= _[_0x7e46[50]](_0x8144x33,_0x7e46[92]);_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x33,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[44]]= _0x8144x23?_0x8144x23[_0x7e46[44]]:0});return ReportQueue[_0x7e46[41]]({where:{queuecallercomplete:true,queue:_0x8144x12},group:_0x7e46[94],attributes:[[_0x7e46[94],_0x7e46[49]],[sequelize[_0x7e46[97]](_0x7e46[95],sequelize[_0x7e46[96]](_0x7e46[25])),_0x7e46[69]]]})})[_0x7e46[16]](function(_0x8144x32){_0x8144x32= _[_0x7e46[50]](_0x8144x32,_0x7e46[92]);_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x32,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[69]]= _0x8144x23?_0x8144x23[_0x7e46[69]]:0});return ReportQueue[_0x7e46[41]]({where:{queuecallerabandon:true,queue:_0x8144x12},group:_0x7e46[94],attributes:[[_0x7e46[94],_0x7e46[49]],[sequelize[_0x7e46[97]](_0x7e46[95],sequelize[_0x7e46[96]](_0x7e46[25])),_0x7e46[72]]]})})[_0x7e46[16]](function(_0x8144x31){_0x8144x31= _[_0x7e46[50]](_0x8144x31,_0x7e46[92]);_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x31,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[72]]= _0x8144x23?_0x8144x23[_0x7e46[72]]:0});return ReportQueue[_0x7e46[41]]({where:{queuecallerexit:true,queue:_0x8144x12},group:_0x7e46[94],attributes:[[_0x7e46[94],_0x7e46[49]],[sequelize[_0x7e46[97]](_0x7e46[95],sequelize[_0x7e46[96]](_0x7e46[25])),_0x7e46[40]]]})})[_0x7e46[16]](function(_0x8144x30){_0x8144x30= _[_0x7e46[50]](_0x8144x30,_0x7e46[92]);_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x30,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[40]]= _0x8144x23?_0x8144x23[_0x7e46[40]]:0});return sequelize[_0x7e46[17]](_0x7e46[93]+ _0x8144x12[_0x7e46[87]](_0x7e46[86])+ _0x7e46[88],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x2f){_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x2f,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[32]]= _0x8144x23?_0x8144x23[_0x7e46[32]]:_0x7e46[84]});return sequelize[_0x7e46[17]](_0x7e46[91]+ _0x8144x12[_0x7e46[87]](_0x7e46[86])+ _0x7e46[88],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x2e){_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x2e,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[35]]= _0x8144x23?_0x8144x23[_0x7e46[35]]:_0x7e46[84]});return sequelize[_0x7e46[17]](_0x7e46[85]+ _0x8144x12[_0x7e46[87]](_0x7e46[86])+ _0x7e46[88],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x21){_0x8144x1c[_0x7e46[39]](function(_0x8144x22){var _0x8144x23=_[_0x7e46[66]](_0x8144x21,{name:_0x8144x22[_0x7e46[49]]});_0x8144x22[_0x7e46[67]]= _0x8144x23?_0x8144x23[_0x7e46[67]]:0});var _0x8144x24=_(_[_0x7e46[79]](_0x8144x1c,function(_0x8144x22){var _0x8144x25=_0x8144x1b[_0x7e46[68]]?(_0x8144x22[_0x7e46[69]]>= Number(_0x8144x1b._answeredFrom)):true;var _0x8144x26=_0x8144x1b[_0x7e46[70]]?(_0x8144x22[_0x7e46[69]]<= Number(_0x8144x1b._answeredTo)):true;var _0x8144x27=_0x8144x1b[_0x7e46[71]]?(_0x8144x22[_0x7e46[72]]>= Number(_0x8144x1b._abandonedFrom)):true;var _0x8144x28=_0x8144x1b[_0x7e46[73]]?(_0x8144x22[_0x7e46[72]]<= Number(_0x8144x1b._abandonedTo)):true;var _0x8144x29=_0x8144x1b[_0x7e46[74]]?(_0x8144x22[_0x7e46[40]]>= Number(_0x8144x1b._unmanagedFrom)):true;var _0x8144x2a=_0x8144x1b[_0x7e46[75]]?(_0x8144x22[_0x7e46[40]]<= Number(_0x8144x1b._unmanagedTo)):true;var _0x8144x2b=_0x8144x1b[_0x7e46[76]]?_[_0x7e46[77]](_0x8144x22[_0x7e46[49]],_0x8144x1b._name):true;return _[_0x7e46[78]]([_0x8144x25,_0x8144x26,_0x8144x27,_0x8144x28,_0x8144x29,_0x8144x2a,_0x8144x2b],function(_0x8144x2c,_0x8144x2d){return _0x8144x2c&& _0x8144x2d})}));if(_0x8144x1b[_0x7e46[80]]){_0x8144x24= _0x8144x24[_0x7e46[83]](_0x8144x1b._offset)[_0x7e46[82]](_0x8144x1b._limit)[_0x7e46[81]]()};return [_0x8144x1c[_0x7e46[31]],_0x8144x24]})[_0x7e46[65]](function(_0x8144x1f,_0x8144x20){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({rows:_0x8144x20,count:_0x8144x1f})})[_0x7e46[13]](function(_0x8144xd){console[_0x7e46[64]](_0x8144xd);return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[98]]= function(_0x8144xa,_0x8144xb){var _0x8144x36={};return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[100]](_0x7e46[45],{method:[_0x7e46[99],_0x8144x16]})[_0x7e46[41]](Util[_0x7e46[18]](_0x8144xa[_0x7e46[17]],_0x8144x36))})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({rows:_0x8144x14,count:_0x8144x14[_0x7e46[31]]})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[44]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[43]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x8144x16}})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[69]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[43]]({where:{queuecallercomplete:true,queue:_0x8144x16}})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[72]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[43]]({where:{queuecallerabandon:true,queue:_0x8144x16}})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[101]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return sequelize[_0x7e46[17]](_0x7e46[102]+ _0x8144x16[_0x7e46[87]](_0x7e46[86])+ _0x7e46[103],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14[0][_0x7e46[81]]})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[104]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return sequelize[_0x7e46[17]](_0x7e46[105]+ _0x8144x16[_0x7e46[87]](_0x7e46[86])+ _0x7e46[103],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14[0][_0x7e46[81]]})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[106]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return sequelize[_0x7e46[17]](_0x7e46[107]+ _0x8144x16[_0x7e46[87]](_0x7e46[86])+ _0x7e46[103],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14[0][_0x7e46[81]]})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[108]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return sequelize[_0x7e46[17]](_0x7e46[109]+ _0x8144x16[_0x7e46[87]](_0x7e46[86])+ _0x7e46[103],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14[0][_0x7e46[81]]})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[110]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return sequelize[_0x7e46[17]](_0x7e46[111]+ _0x8144x16[_0x7e46[87]](_0x7e46[86])+ _0x7e46[103],{type:sequelize[_0x7e46[90]][_0x7e46[89]]})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14[0][_0x7e46[81]]})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[40]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[43]]({where:{queuecallerexit:true,queue:_0x8144x16}})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]]({value:_0x8144x14})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[112]]= function(_0x8144xa,_0x8144xb){return Promise[_0x7e46[47]]([])[_0x7e46[16]](getVoiceQueues(_0x8144xa[_0x7e46[46]]))[_0x7e46[16]](function(_0x8144x16){return ReportQueue[_0x7e46[19]]({where:{queuecallerabandon:true,queue:_0x8144x16}})})[_0x7e46[16]](function(_0x8144x14){return _0x8144xb[_0x7e46[15]](200)[_0x7e46[14]](_0x8144x14)})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};exports[_0x7e46[113]]= function(_0x8144xa,_0x8144xb){return ReportQueue[_0x7e46[41]]({where:{queue:_0x8144xa[_0x7e46[26]][_0x7e46[94]]}})[_0x7e46[16]](function(_0x8144x37){if(!_0x8144x37){return _0x8144xb[_0x7e46[21]](404)};return _0x8144xb[_0x7e46[14]]({count:_0x8144x37[_0x7e46[31]],rows:_0x8144x37})})[_0x7e46[13]](function(_0x8144xd){return handleError(_0x8144xb,_0x8144xd)})};function handleError(_0x8144xb,_0x8144xd){console[_0x7e46[64]](_0x8144xd);return _0x8144xb[_0x7e46[15]](500)[_0x7e46[14]](_0x8144xd)}
\ No newline at end of file