Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / api / report_queue / report_queue.controller.js
index 8308919..42620fd 100644 (file)
@@ -1 +1 @@
-var _0x2d51=["\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\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","\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"];_0x2d51[0];var _=require(_0x2d51[1]);var sequelize=require(_0x2d51[3])[_0x2d51[2]];var Agent=require(_0x2d51[3])[_0x2d51[4]];var ReportQueue=require(_0x2d51[3])[_0x2d51[5]];var VoiceQueue=require(_0x2d51[3])[_0x2d51[6]];var ReportQueueHistory=require(_0x2d51[3])[_0x2d51[8]][_0x2d51[7]];var Util=require(_0x2d51[9]);var Promise=require(_0x2d51[10]);exports[_0x2d51[11]]=function(_0x1e62x9,_0x1e62xa,_0x1e62xb){return ReportQueue[_0x2d51[18]](Util[_0x2d51[17]](_0x1e62x9[_0x2d51[16]]))[_0x2d51[15]](function(_0x1e62xd){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]](_0x1e62xd)})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[19]]=function(_0x1e62x9,_0x1e62xa){return ReportQueueHistory[_0x2d51[19]]()[_0x2d51[15]](function(_0x1e62xe){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]](_0x1e62xe)})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[20]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return ReportQueue[_0x2d51[21]]({where:{queuecallerleaveAt:null,queue:_0x1e62x10}})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};function getVoiceQueues(_0x1e62x12){return function(){switch(_0x1e62x12[_0x2d51[31]]){case _0x2d51[22]:return Agent[_0x2d51[29]](_0x1e62x12[_0x2d51[28]],{attributes:[_0x2d51[28]]})[_0x2d51[15]](Util[_0x2d51[27]]())[_0x2d51[15]](function(_0x1e62x10){return _[_0x2d51[26]](_0x1e62x10[_0x2d51[24]],_0x2d51[25])});default:return VoiceQueue[_0x2d51[30]]()[_0x2d51[15]](function(_0x1e62x13){return {rows:_0x1e62x13}})[_0x2d51[15]](function(_0x1e62x10){return _[_0x2d51[26]](_0x1e62x10[_0x2d51[24]],_0x2d51[25])})}}}exports[_0x2d51[32]]=function(_0x1e62x9,_0x1e62xa){var _0x1e62x14={_limit:_0x1e62x9[_0x2d51[16]][_0x2d51[33]]?_0x1e62x9[_0x2d51[16]][_0x2d51[33]]:null,_offset:_0x1e62x9[_0x2d51[16]][_0x2d51[34]]?_0x1e62x9[_0x2d51[16]][_0x2d51[34]]:0,_answeredFrom:_0x1e62x9[_0x2d51[16]][_0x2d51[35]]||_0x1e62x9[_0x2d51[16]][_0x2d51[35]]===0?_0x1e62x9[_0x2d51[16]][_0x2d51[35]]:undefined,_answeredTo:_0x1e62x9[_0x2d51[16]][_0x2d51[36]]||_0x1e62x9[_0x2d51[16]][_0x2d51[36]]===0?_0x1e62x9[_0x2d51[16]][_0x2d51[36]]:undefined,_abandonedFrom:_0x1e62x9[_0x2d51[16]][_0x2d51[37]]||_0x1e62x9[_0x2d51[16]][_0x2d51[37]]===0?_0x1e62x9[_0x2d51[16]][_0x2d51[37]]:undefined,_abandonedTo:_0x1e62x9[_0x2d51[16]][_0x2d51[38]]||_0x1e62x9[_0x2d51[16]][_0x2d51[38]]===0?_0x1e62x9[_0x2d51[16]][_0x2d51[38]]:undefined,_unmanagedFrom:_0x1e62x9[_0x2d51[16]][_0x2d51[39]]||_0x1e62x9[_0x2d51[16]][_0x2d51[39]]===0?_0x1e62x9[_0x2d51[16]][_0x2d51[39]]:undefined,_unmanagedTo:_0x1e62x9[_0x2d51[16]][_0x2d51[40]]||_0x1e62x9[_0x2d51[16]][_0x2d51[40]]===0?_0x1e62x9[_0x2d51[16]][_0x2d51[40]]:undefined};var _0x1e62x15,_0x1e62x16,_0x1e62x17,_0x1e62x18;delete _0x1e62x9[_0x2d51[16]][_0x2d51[33]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[34]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[35]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[36]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[37]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[38]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[39]];delete _0x1e62x9[_0x2d51[16]][_0x2d51[40]];return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){_0x1e62x16=_0x1e62x10;_0x1e62x15=_[_0x2d51[26]](_0x1e62x10,function(_0x1e62x1c){return {name:_0x1e62x1c}});return ReportQueue[_0x2d51[30]]({where:{queuecallerleaveAt:null,queue:_0x1e62x16},group:_0x2d51[74],attributes:[[_0x2d51[74],_0x2d51[25]],[sequelize[_0x2d51[77]](_0x2d51[75],sequelize[_0x2d51[76]](_0x2d51[28])),_0x2d51[20]]]})})[_0x2d51[15]](function(_0x1e62x2d){_0x1e62x2d=_[_0x2d51[26]](_0x1e62x2d,_0x2d51[72]);_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c,_0x1e62x2e){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x2d,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[20]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[20]]:0});return ReportQueue[_0x2d51[30]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x1e62x16},group:_0x2d51[74],attributes:[[_0x2d51[74],_0x2d51[25]],[sequelize[_0x2d51[77]](_0x2d51[75],sequelize[_0x2d51[76]](_0x2d51[28])),_0x2d51[78]]]})})[_0x2d51[15]](function(_0x1e62x2c){_0x1e62x2c=_[_0x2d51[26]](_0x1e62x2c,_0x2d51[72]);_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x2c,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[78]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[78]]:0});return ReportQueue[_0x2d51[30]]({where:{queuecallercomplete:true,queue:_0x1e62x16},group:_0x2d51[74],attributes:[[_0x2d51[74],_0x2d51[25]],[sequelize[_0x2d51[77]](_0x2d51[75],sequelize[_0x2d51[76]](_0x2d51[28])),_0x2d51[47]]]})})[_0x2d51[15]](function(_0x1e62x2b){_0x1e62x2b=_[_0x2d51[26]](_0x1e62x2b,_0x2d51[72]);_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x2b,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[47]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[47]]:0});return ReportQueue[_0x2d51[30]]({where:{queuecallerabandon:true,queue:_0x1e62x16},group:_0x2d51[74],attributes:[[_0x2d51[74],_0x2d51[25]],[sequelize[_0x2d51[77]](_0x2d51[75],sequelize[_0x2d51[76]](_0x2d51[28])),_0x2d51[50]]]})})[_0x2d51[15]](function(_0x1e62x2a){_0x1e62x2a=_[_0x2d51[26]](_0x1e62x2a,_0x2d51[72]);_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x2a,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[50]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[50]]:0});return ReportQueue[_0x2d51[30]]({where:{queuecallerexit:true,queue:_0x1e62x16},group:_0x2d51[74],attributes:[[_0x2d51[74],_0x2d51[25]],[sequelize[_0x2d51[77]](_0x2d51[75],sequelize[_0x2d51[76]](_0x2d51[28])),_0x2d51[53]]]})})[_0x2d51[15]](function(_0x1e62x29){_0x1e62x29=_[_0x2d51[26]](_0x1e62x29,_0x2d51[72]);_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x29,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[53]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[53]]:0});return sequelize[_0x2d51[16]](_0x2d51[73]+_0x1e62x16[_0x2d51[66]](_0x2d51[65])+_0x2d51[67],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62x28){_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x28,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[70]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[70]]:_0x2d51[63]});return sequelize[_0x2d51[16]](_0x2d51[71]+_0x1e62x16[_0x2d51[66]](_0x2d51[65])+_0x2d51[67],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62x27){_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x27,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[62]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[62]]:_0x2d51[63]});return sequelize[_0x2d51[16]](_0x2d51[64]+_0x1e62x16[_0x2d51[66]](_0x2d51[65])+_0x2d51[67],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62x1b){_0x1e62x15[_0x2d51[45]](function(_0x1e62x1c){var _0x1e62x1d=_[_0x2d51[43]](_0x1e62x1b,{name:_0x1e62x1c[_0x2d51[25]]});_0x1e62x1c[_0x2d51[44]]=_0x1e62x1d?_0x1e62x1d[_0x2d51[44]]:0});var _0x1e62x1e=_(_[_0x2d51[56]](_0x1e62x15,function(_0x1e62x1c){var _0x1e62x1f=_0x1e62x14[_0x2d51[46]]?(_0x1e62x1c[_0x2d51[47]]>=Number(_0x1e62x14._answeredFrom)):true;var _0x1e62x20=_0x1e62x14[_0x2d51[48]]?(_0x1e62x1c[_0x2d51[47]]<=Number(_0x1e62x14._answeredTo)):true;var _0x1e62x21=_0x1e62x14[_0x2d51[49]]?(_0x1e62x1c[_0x2d51[50]]>=Number(_0x1e62x14._abandonedFrom)):true;var _0x1e62x22=_0x1e62x14[_0x2d51[51]]?(_0x1e62x1c[_0x2d51[50]]>=Number(_0x1e62x14._abandonedTo)):true;var _0x1e62x23=_0x1e62x14[_0x2d51[52]]?(_0x1e62x1c[_0x2d51[53]]>=Number(_0x1e62x14._unmanagedFrom)):true;var _0x1e62x24=_0x1e62x14[_0x2d51[54]]?(_0x1e62x1c[_0x2d51[53]]<=Number(_0x1e62x14._unmanagedTo)):true;return _[_0x2d51[55]]([_0x1e62x1f,_0x1e62x20,_0x1e62x21,_0x1e62x22,_0x1e62x23,_0x1e62x24],function(_0x1e62x25,_0x1e62x26){return _0x1e62x25&&_0x1e62x26})}));if(_0x1e62x14[_0x2d51[57]]){_0x1e62x1e=_0x1e62x1e[_0x2d51[60]](_0x1e62x14._offset)[_0x2d51[59]](_0x1e62x14._limit)[_0x2d51[58]]()};return [_0x1e62x15[_0x2d51[61]],_0x1e62x1e]})[_0x2d51[42]](function(_0x1e62x19,_0x1e62x1a){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({rows:_0x1e62x1a,count:_0x1e62x19})})[_0x2d51[12]](function(_0x1e62xc){console[_0x2d51[41]](_0x1e62xc);return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[79]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return ReportQueue[_0x2d51[30]](Util[_0x2d51[17]](_0x1e62x9[_0x2d51[16]],{queuecallerleaveAt:null,queue:_0x1e62x10}))})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({rows:_0x1e62xf})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[80]]=function(_0x1e62x9,_0x1e62xa){return Agent[_0x2d51[29]](_0x1e62x9[_0x2d51[22]][_0x2d51[28]])[_0x2d51[15]](function(_0x1e62x30){return _0x1e62x30[_0x2d51[82]]({attributes:[_0x2d51[25]]})})[_0x2d51[15]](function(_0x1e62x13){return ReportQueue[_0x2d51[81]](_0x2d51[20],{method:[_0x1e62x9[_0x2d51[22]][_0x2d51[31]],_[_0x2d51[26]](_0x1e62x13,_0x2d51[25])]})[_0x2d51[30]]()})[_0x2d51[15]](function(_0x1e62x2f){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({count:_0x1e62x2f[_0x2d51[61]],rows:_0x1e62x2f})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[78]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return ReportQueue[_0x2d51[21]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x1e62x10}})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[47]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return ReportQueue[_0x2d51[21]]({where:{queuecallercomplete:true,queue:_0x1e62x10}})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[50]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return ReportQueue[_0x2d51[21]]({where:{queuecallerabandon:true,queue:_0x1e62x10}})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[83]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return sequelize[_0x2d51[16]](_0x2d51[84]+_0x1e62x10[_0x2d51[66]](_0x2d51[65])+_0x2d51[85],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf[0][_0x2d51[58]]})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[86]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return sequelize[_0x2d51[16]](_0x2d51[87]+_0x1e62x10[_0x2d51[66]](_0x2d51[65])+_0x2d51[85],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf[0][_0x2d51[58]]})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[88]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return sequelize[_0x2d51[16]](_0x2d51[89]+_0x1e62x10[_0x2d51[66]](_0x2d51[65])+_0x2d51[85],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf[0][_0x2d51[58]]})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[90]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return sequelize[_0x2d51[16]](_0x2d51[91]+_0x1e62x10[_0x2d51[66]](_0x2d51[65])+_0x2d51[85],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf[0][_0x2d51[58]]})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[92]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return sequelize[_0x2d51[16]](_0x2d51[93]+_0x1e62x10[_0x2d51[66]](_0x2d51[65])+_0x2d51[85],{type:sequelize[_0x2d51[69]][_0x2d51[68]]})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf[0][_0x2d51[58]]})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[53]]=function(_0x1e62x9,_0x1e62xa){return Promise[_0x2d51[23]]([])[_0x2d51[15]](getVoiceQueues(_0x1e62x9[_0x2d51[22]]))[_0x2d51[15]](function(_0x1e62x10){return ReportQueue[_0x2d51[21]]({where:{queuecallerexit:true,queue:_0x1e62x10}})})[_0x2d51[15]](function(_0x1e62xf){return _0x1e62xa[_0x2d51[14]](200)[_0x2d51[13]]({value:_0x1e62xf})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};exports[_0x2d51[94]]=function(_0x1e62x9,_0x1e62xa){return ReportQueue[_0x2d51[30]]({where:{queue:_0x1e62x9[_0x2d51[96]][_0x2d51[74]]}})[_0x2d51[15]](function(_0x1e62x31){if(!_0x1e62x31){return _0x1e62xa[_0x2d51[95]](404)};return _0x1e62xa[_0x2d51[13]]({count:_0x1e62x31[_0x2d51[61]],rows:_0x1e62x31})})[_0x2d51[12]](function(_0x1e62xc){return handleError(_0x1e62xa,_0x1e62xc)})};function handleError(_0x1e62xa,_0x1e62xc){return _0x1e62xa[_0x2d51[14]](500)[_0x2d51[13]](_0x1e62xc)}
\ No newline at end of file
+var _0xbf1c=["\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","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\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","\x64\x61\x79","\x73\x74\x61\x72\x74\x4F\x66","\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","\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","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72"];_0xbf1c[0];var _=require(_0xbf1c[1]);var moment=require(_0xbf1c[2]);var sequelize=require(_0xbf1c[4])[_0xbf1c[3]];var Agent=require(_0xbf1c[4])[_0xbf1c[5]];var ReportQueue=require(_0xbf1c[4])[_0xbf1c[6]];var VoiceQueue=require(_0xbf1c[4])[_0xbf1c[7]];var ReportQueueHistory=require(_0xbf1c[4])[_0xbf1c[9]][_0xbf1c[8]];var Util=require(_0xbf1c[10]);var Promise=require(_0xbf1c[11]);var logger=require(_0xbf1c[13])(_0xbf1c[12]);exports[_0xbf1c[14]]= function(_0x8eb9xb,_0x8eb9xc,_0x8eb9xd){return ReportQueue[_0xbf1c[21]](Util[_0xbf1c[20]](_0x8eb9xb[_0xbf1c[19]]))[_0xbf1c[18]](function(_0x8eb9xf){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]](_0x8eb9xf)})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[22]]= function(_0x8eb9xb,_0x8eb9xc){return ReportQueue[_0xbf1c[29]](_0x8eb9xb[_0xbf1c[28]][_0xbf1c[27]])[_0xbf1c[18]](function(_0x8eb9x10){if(!_0x8eb9x10){return _0x8eb9xc[_0xbf1c[23]](404)};var _0x8eb9x11=_[_0xbf1c[25]](_0x8eb9x10,_0x8eb9xb[_0xbf1c[24]]);return _0x8eb9x11[_0xbf1c[26]]()})[_0xbf1c[18]](function(_0x8eb9x10){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]](_0x8eb9x10)})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[30]]= function(_0x8eb9xb,_0x8eb9xc){return ReportQueueHistory[_0xbf1c[30]]()[_0xbf1c[18]](function(_0x8eb9x12){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]](_0x8eb9x12)})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[31]]= function(_0x8eb9xb,_0x8eb9xc){var _0x8eb9x13,_0x8eb9x14={};return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){_0x8eb9x13= _0x8eb9x17;return ReportQueue[_0xbf1c[47]]({where:{queuecallerleaveAt:null,queuecallerexit:false,queue:_0x8eb9x13,createdAt:{$gte:moment()[_0xbf1c[44]](_0xbf1c[43])}}})})[_0xbf1c[18]](function(_0x8eb9x15){_0x8eb9x14[_0xbf1c[49]]= _0x8eb9x15;return ReportQueue[_0xbf1c[47]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x8eb9x13,createdAt:{$gte:moment()[_0xbf1c[44]](_0xbf1c[43])}}})})[_0xbf1c[18]](function(_0x8eb9x15){_0x8eb9x14[_0xbf1c[48]]= _0x8eb9x15;return ReportQueue[_0xbf1c[47]]({where:{queuecallerabandon:true,queue:_0x8eb9x13,createdAt:{$gte:moment()[_0xbf1c[44]](_0xbf1c[43])}}})})[_0xbf1c[18]](function(_0x8eb9x15){_0x8eb9x14[_0xbf1c[46]]= _0x8eb9x15;return ReportQueue[_0xbf1c[47]]({where:{queuecallerexit:true,queue:_0x8eb9x13,createdAt:{$gte:moment()[_0xbf1c[44]](_0xbf1c[43])}}})})[_0xbf1c[18]](function(_0x8eb9x15){_0x8eb9x14[_0xbf1c[42]]= _0x8eb9x15;return ReportQueue[_0xbf1c[45]]({where:{queuecallercomplete:true,queue:_0x8eb9x13,createdAt:{$gte:moment()[_0xbf1c[44]](_0xbf1c[43])}},raw:true})})[_0xbf1c[18]](function(_0x8eb9x15){_0x8eb9x14[_0xbf1c[32]]= _0x8eb9x15[_0xbf1c[33]];_0x8eb9x14[_0xbf1c[34]]= _[_0xbf1c[36]](_[_0xbf1c[35]](_0x8eb9x15,_0xbf1c[34]));_0x8eb9x14[_0xbf1c[37]]= 0;_[_0xbf1c[41]](_0x8eb9x15,function(_0x8eb9x16){_0x8eb9x14[_0xbf1c[37]]+= moment(_0x8eb9x16[_0xbf1c[39]])[_0xbf1c[38]]()- moment(_0x8eb9x16[_0xbf1c[40]])[_0xbf1c[38]]()});return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]](_0x8eb9x14)})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[49]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[47]]({where:{queuecallerleaveAt:null,queuecallerexit:false,queue:_0x8eb9x17}})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};function getVoiceQueues(_0x8eb9x19){return function(){switch(_0x8eb9x19[_0xbf1c[58]]){case _0xbf1c[50]:return Agent[_0xbf1c[29]](_0x8eb9x19[_0xbf1c[27]],{attributes:[_0xbf1c[27]]})[_0xbf1c[18]](Util[_0xbf1c[55]]())[_0xbf1c[18]](function(_0x8eb9x17){return _[_0xbf1c[54]](_0x8eb9x17[_0xbf1c[52]],_0xbf1c[53])});case _0xbf1c[57]:return Agent[_0xbf1c[29]](_0x8eb9x19[_0xbf1c[27]])[_0xbf1c[18]](function(_0x8eb9x1a){return _0x8eb9x1a[_0xbf1c[56]]({attributes:[_0xbf1c[53]]})})[_0xbf1c[18]](function(_0x8eb9x17){return _[_0xbf1c[54]](_0x8eb9x17,_0xbf1c[53])});default:return VoiceQueue[_0xbf1c[45]]()[_0xbf1c[18]](function(_0x8eb9x1b){return {rows:_0x8eb9x1b}})[_0xbf1c[18]](function(_0x8eb9x17){return _[_0xbf1c[54]](_0x8eb9x17[_0xbf1c[52]],_0xbf1c[53])})}}}exports[_0xbf1c[59]]= function(_0x8eb9xb,_0x8eb9xc){var _0x8eb9x1c={_limit:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[60]]?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[60]]:null,_offset:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[61]]?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[61]]:0,_name:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[53]]|| undefined,_answeredFrom:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[62]]|| _0x8eb9xb[_0xbf1c[19]][_0xbf1c[62]]=== 0?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[62]]:undefined,_answeredTo:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[63]]|| _0x8eb9xb[_0xbf1c[19]][_0xbf1c[63]]=== 0?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[63]]:undefined,_abandonedFrom:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[64]]|| _0x8eb9xb[_0xbf1c[19]][_0xbf1c[64]]=== 0?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[64]]:undefined,_abandonedTo:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[65]]|| _0x8eb9xb[_0xbf1c[19]][_0xbf1c[65]]=== 0?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[65]]:undefined,_unmanagedFrom:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[66]]|| _0x8eb9xb[_0xbf1c[19]][_0xbf1c[66]]=== 0?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[66]]:undefined,_unmanagedTo:_0x8eb9xb[_0xbf1c[19]][_0xbf1c[67]]|| _0x8eb9xb[_0xbf1c[19]][_0xbf1c[67]]=== 0?_0x8eb9xb[_0xbf1c[19]][_0xbf1c[67]]:undefined};var _0x8eb9x1d,_0x8eb9x13,_0x8eb9x1e,_0x8eb9x1f;delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[60]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[61]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[62]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[63]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[64]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[65]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[66]];delete _0x8eb9xb[_0xbf1c[19]][_0xbf1c[67]];return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){_0x8eb9x13= _0x8eb9x17;_0x8eb9x1d= _[_0xbf1c[54]](_0x8eb9x17,function(_0x8eb9x23){return {name:_0x8eb9x23}});return ReportQueue[_0xbf1c[45]]({where:{queuecallerleaveAt:null,queue:_0x8eb9x13},group:_0xbf1c[97],attributes:[[_0xbf1c[97],_0xbf1c[53]],[sequelize[_0xbf1c[100]](_0xbf1c[98],sequelize[_0xbf1c[99]](_0xbf1c[27])),_0xbf1c[49]]]})})[_0xbf1c[18]](function(_0x8eb9x35){_0x8eb9x35= _[_0xbf1c[54]](_0x8eb9x35,_0xbf1c[95]);_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23,_0x8eb9x36){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x35,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[49]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[49]]:0});return ReportQueue[_0xbf1c[45]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x8eb9x13},group:_0xbf1c[97],attributes:[[_0xbf1c[97],_0xbf1c[53]],[sequelize[_0xbf1c[100]](_0xbf1c[98],sequelize[_0xbf1c[99]](_0xbf1c[27])),_0xbf1c[48]]]})})[_0xbf1c[18]](function(_0x8eb9x34){_0x8eb9x34= _[_0xbf1c[54]](_0x8eb9x34,_0xbf1c[95]);_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x34,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[48]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[48]]:0});return ReportQueue[_0xbf1c[45]]({where:{queuecallercomplete:true,queue:_0x8eb9x13},group:_0xbf1c[97],attributes:[[_0xbf1c[97],_0xbf1c[53]],[sequelize[_0xbf1c[100]](_0xbf1c[98],sequelize[_0xbf1c[99]](_0xbf1c[27])),_0xbf1c[72]]]})})[_0xbf1c[18]](function(_0x8eb9x33){_0x8eb9x33= _[_0xbf1c[54]](_0x8eb9x33,_0xbf1c[95]);_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x33,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[72]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[72]]:0});return ReportQueue[_0xbf1c[45]]({where:{queuecallerabandon:true,queue:_0x8eb9x13},group:_0xbf1c[97],attributes:[[_0xbf1c[97],_0xbf1c[53]],[sequelize[_0xbf1c[100]](_0xbf1c[98],sequelize[_0xbf1c[99]](_0xbf1c[27])),_0xbf1c[75]]]})})[_0xbf1c[18]](function(_0x8eb9x32){_0x8eb9x32= _[_0xbf1c[54]](_0x8eb9x32,_0xbf1c[95]);_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x32,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[75]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[75]]:0});return ReportQueue[_0xbf1c[45]]({where:{queuecallerexit:true,queue:_0x8eb9x13},group:_0xbf1c[97],attributes:[[_0xbf1c[97],_0xbf1c[53]],[sequelize[_0xbf1c[100]](_0xbf1c[98],sequelize[_0xbf1c[99]](_0xbf1c[27])),_0xbf1c[42]]]})})[_0xbf1c[18]](function(_0x8eb9x31){_0x8eb9x31= _[_0xbf1c[54]](_0x8eb9x31,_0xbf1c[95]);_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x31,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[42]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[42]]:0});return sequelize[_0xbf1c[19]](_0xbf1c[96]+ _0x8eb9x13[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[91],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x30){_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x30,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[34]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[34]]:_0xbf1c[87]});return sequelize[_0xbf1c[19]](_0xbf1c[94]+ _0x8eb9x13[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[91],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x2f){_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x2f,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[37]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[37]]:_0xbf1c[87]});return sequelize[_0xbf1c[19]](_0xbf1c[88]+ _0x8eb9x13[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[91],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x22){_0x8eb9x1d[_0xbf1c[41]](function(_0x8eb9x23){var _0x8eb9x24=_[_0xbf1c[69]](_0x8eb9x22,{name:_0x8eb9x23[_0xbf1c[53]]});_0x8eb9x23[_0xbf1c[70]]= _0x8eb9x24?_0x8eb9x24[_0xbf1c[70]]:0});var _0x8eb9x25=_(_[_0xbf1c[82]](_0x8eb9x1d,function(_0x8eb9x23){var _0x8eb9x26=_0x8eb9x1c[_0xbf1c[71]]?(_0x8eb9x23[_0xbf1c[72]]>= Number(_0x8eb9x1c._answeredFrom)):true;var _0x8eb9x27=_0x8eb9x1c[_0xbf1c[73]]?(_0x8eb9x23[_0xbf1c[72]]<= Number(_0x8eb9x1c._answeredTo)):true;var _0x8eb9x28=_0x8eb9x1c[_0xbf1c[74]]?(_0x8eb9x23[_0xbf1c[75]]>= Number(_0x8eb9x1c._abandonedFrom)):true;var _0x8eb9x29=_0x8eb9x1c[_0xbf1c[76]]?(_0x8eb9x23[_0xbf1c[75]]<= Number(_0x8eb9x1c._abandonedTo)):true;var _0x8eb9x2a=_0x8eb9x1c[_0xbf1c[77]]?(_0x8eb9x23[_0xbf1c[42]]>= Number(_0x8eb9x1c._unmanagedFrom)):true;var _0x8eb9x2b=_0x8eb9x1c[_0xbf1c[78]]?(_0x8eb9x23[_0xbf1c[42]]<= Number(_0x8eb9x1c._unmanagedTo)):true;var _0x8eb9x2c=_0x8eb9x1c[_0xbf1c[79]]?_[_0xbf1c[80]](_0x8eb9x23[_0xbf1c[53]],_0x8eb9x1c._name):true;return _[_0xbf1c[81]]([_0x8eb9x26,_0x8eb9x27,_0x8eb9x28,_0x8eb9x29,_0x8eb9x2a,_0x8eb9x2b,_0x8eb9x2c],function(_0x8eb9x2d,_0x8eb9x2e){return _0x8eb9x2d&& _0x8eb9x2e})}));if(_0x8eb9x1c[_0xbf1c[83]]){_0x8eb9x25= _0x8eb9x25[_0xbf1c[86]](_0x8eb9x1c._offset)[_0xbf1c[85]](_0x8eb9x1c._limit)[_0xbf1c[84]]()};return [_0x8eb9x1d[_0xbf1c[33]],_0x8eb9x25]})[_0xbf1c[68]](function(_0x8eb9x20,_0x8eb9x21){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({rows:_0x8eb9x21,count:_0x8eb9x20})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[101]]= function(_0x8eb9xb,_0x8eb9xc){var _0x8eb9x37={};return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[103]](_0xbf1c[49],{method:[_0xbf1c[102],_0x8eb9x17]})[_0xbf1c[45]](Util[_0xbf1c[20]](_0x8eb9xb[_0xbf1c[19]],_0x8eb9x37))})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({rows:_0x8eb9x15,count:_0x8eb9x15[_0xbf1c[33]]})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[48]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[47]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0x8eb9x17}})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[72]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[47]]({where:{queuecallercomplete:true,queue:_0x8eb9x17}})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[75]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[47]]({where:{queuecallerabandon:true,queue:_0x8eb9x17}})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[104]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return sequelize[_0xbf1c[19]](_0xbf1c[105]+ _0x8eb9x17[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[106],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15[0][_0xbf1c[84]]})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[107]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return sequelize[_0xbf1c[19]](_0xbf1c[108]+ _0x8eb9x17[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[106],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15[0][_0xbf1c[84]]})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[109]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return sequelize[_0xbf1c[19]](_0xbf1c[110]+ _0x8eb9x17[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[106],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15[0][_0xbf1c[84]]})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[111]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return sequelize[_0xbf1c[19]](_0xbf1c[112]+ _0x8eb9x17[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[106],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15[0][_0xbf1c[84]]})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[113]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return sequelize[_0xbf1c[19]](_0xbf1c[114]+ _0x8eb9x17[_0xbf1c[90]](_0xbf1c[89])+ _0xbf1c[106],{type:sequelize[_0xbf1c[93]][_0xbf1c[92]]})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15[0][_0xbf1c[84]]})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[42]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[47]]({where:{queuecallerexit:true,queue:_0x8eb9x17}})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]]({value:_0x8eb9x15})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[115]]= function(_0x8eb9xb,_0x8eb9xc){return Promise[_0xbf1c[51]]([])[_0xbf1c[18]](getVoiceQueues(_0x8eb9xb[_0xbf1c[50]]))[_0xbf1c[18]](function(_0x8eb9x17){return ReportQueue[_0xbf1c[21]]({where:{queuecallerabandon:true,queue:_0x8eb9x17}})})[_0xbf1c[18]](function(_0x8eb9x15){return _0x8eb9xc[_0xbf1c[17]](200)[_0xbf1c[16]](_0x8eb9x15)})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};exports[_0xbf1c[116]]= function(_0x8eb9xb,_0x8eb9xc){return ReportQueue[_0xbf1c[45]]({where:{queue:_0x8eb9xb[_0xbf1c[28]][_0xbf1c[97]]}})[_0xbf1c[18]](function(_0x8eb9x38){if(!_0x8eb9x38){return _0x8eb9xc[_0xbf1c[23]](404)};return _0x8eb9xc[_0xbf1c[16]]({count:_0x8eb9x38[_0xbf1c[33]],rows:_0x8eb9x38})})[_0xbf1c[15]](function(_0x8eb9xe){return handleError(_0x8eb9xc,_0x8eb9xe)})};function handleError(_0x8eb9xc,_0x8eb9xe){logger[_0xbf1c[118]](_0x8eb9xe[_0xbf1c[117]]);return _0x8eb9xc[_0xbf1c[17]](500)[_0xbf1c[16]](_0x8eb9xe)}
\ No newline at end of file