Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / api / report_queue / report_queue.controller.js
index f8bc673..42620fd 100644 (file)
@@ -1 +1 @@
-var _0xf787=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x55\x73\x65\x72","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x48\x69\x73\x74\x6F\x72\x79","\x68\x69\x73\x74\x6F\x72\x79","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x62\x6C\x75\x65\x62\x69\x72\x64","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x75\x70\x64\x61\x74\x65","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x62\x6F\x64\x79","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x64\x65\x73\x63\x72\x69\x62\x65","\x77\x61\x69\x74\x69\x6E\x67","\x63\x6F\x75\x6E\x74","\x75\x73\x65\x72","\x61\x6C\x6C","\x72\x6F\x77\x73","\x6E\x61\x6D\x65","\x6D\x61\x70","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73","\x61\x67\x65\x6E\x74","\x66\x69\x6E\x64\x41\x6C\x6C","\x72\x6F\x6C\x65","\x71\x75\x65\x75\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73","\x6C\x69\x6D\x69\x74","\x6F\x66\x66\x73\x65\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x75\x69\x46\x72\x6F\x6D","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x75\x69\x54\x6F","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x5F\x75\x69\x46\x72\x6F\x6D","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x5F\x75\x69\x54\x6F","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x5F\x75\x69\x46\x72\x6F\x6D","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x5F\x75\x69\x54\x6F","\x6C\x6F\x67","\x73\x70\x72\x65\x61\x64","\x66\x69\x6E\x64","\x74\x6F\x74\x61\x6C\x63\x61\x6C\x6C\x73","\x66\x6F\x72\x45\x61\x63\x68","\x5F\x61\x6E\x73\x77\x65\x72\x65\x64\x46\x72\x6F\x6D","\x61\x6E\x73\x77\x65\x72\x65\x64","\x5F\x61\x6E\x73\x77\x65\x72\x65\x64\x54\x6F","\x5F\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x46\x72\x6F\x6D","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x5F\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x54\x6F","\x5F\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x46\x72\x6F\x6D","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x5F\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x54\x6F","\x5F\x6E\x61\x6D\x65","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x72\x65\x64\x75\x63\x65","\x66\x69\x6C\x74\x65\x72","\x5F\x6C\x69\x6D\x69\x74","\x76\x61\x6C\x75\x65","\x74\x61\x6B\x65","\x73\x6C\x69\x63\x65","\x6C\x65\x6E\x67\x74\x68","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x30\x30\x3A\x30\x30\x3A\x30\x30","\x53\x45\x4C\x45\x43\x54\x20\x71\x75\x65\x75\x65\x20\x41\x53\x20\x27\x6E\x61\x6D\x65\x27\x2C\x43\x4F\x55\x4E\x54\x28\x64\x69\x73\x74\x69\x6E\x63\x74\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x29\x20\x61\x73\x20\x74\x6F\x74\x61\x6C\x63\x61\x6C\x6C\x73\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x27\x2C\x27","\x6A\x6F\x69\x6E","\x27\x29\x20\x47\x52\x4F\x55\x50\x20\x42\x59\x20\x71\x75\x65\x75\x65","\x53\x45\x4C\x45\x43\x54","\x51\x75\x65\x72\x79\x54\x79\x70\x65\x73","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x53\x45\x4C\x45\x43\x54\x20\x71\x75\x65\x75\x65\x20\x41\x53\x20\x27\x6E\x61\x6D\x65\x27\x2C\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x74\x61\x6C\x6B\x74\x69\x6D\x65\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x74\x61\x6C\x6B\x74\x69\x6D\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x20\x57\x48\x45\x52\x45\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x3D\x20\x31\x20\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x53\x45\x4C\x45\x43\x54\x20\x71\x75\x65\x75\x65\x20\x41\x53\x20\x27\x6E\x61\x6D\x65\x27\x2C\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x68\x6F\x6C\x64\x74\x69\x6D\x65\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x68\x6F\x6C\x64\x74\x69\x6D\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x20\x57\x48\x45\x52\x45\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x3D\x20\x31\x20\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x71\x75\x65\x75\x65","\x43\x4F\x55\x4E\x54","\x63\x6F\x6C","\x66\x6E","\x61\x63\x74\x69\x76\x65","\x77\x61\x69\x74\x69\x6E\x67\x43\x61\x6C\x6C\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x66\x75\x6C\x6C\x6E\x61\x6D\x65","\x71\x75\x65\x75\x65\x46\x69\x6C\x74\x65\x72","\x73\x63\x6F\x70\x65","\x61\x76\x67\x61\x6E\x73\x77\x65\x72\x74\x69\x6D\x65","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x68\x6F\x6C\x64\x74\x69\x6D\x65\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x20\x57\x48\x45\x52\x45\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x3D\x20\x31\x20\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x27\x29","\x61\x76\x67\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x53\x45\x4C\x45\x43\x54\x20\x53\x45\x43\x5F\x54\x4F\x5F\x54\x49\x4D\x45\x28\x52\x4F\x55\x4E\x44\x28\x41\x56\x47\x28\x74\x61\x6C\x6B\x74\x69\x6D\x65\x29\x2C\x20\x30\x29\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x61\x67\x65\x6E\x74\x20\x57\x48\x45\x52\x45\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x20\x3D\x20\x31\x20\x41\x4E\x44\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x61\x6E\x73\x77\x65\x72\x72\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x29\x20\x2F\x20\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x29\x20\x2B\x20\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x29\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x61\x62\x61\x6E\x64\x6F\x6E\x72\x61\x74\x65","\x53\x45\x4C\x45\x43\x54\x20\x52\x4F\x55\x4E\x44\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x29\x20\x2F\x20\x28\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65\x29\x20\x2B\x20\x53\x55\x4D\x28\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E\x29\x29\x20\x2A\x20\x31\x30\x30\x2C\x20\x31\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x74\x6F\x74\x61\x6C\x6F\x66\x66\x65\x72\x65\x64","\x53\x45\x4C\x45\x43\x54\x20\x43\x4F\x55\x4E\x54\x28\x64\x69\x73\x74\x69\x6E\x63\x74\x20\x75\x6E\x69\x71\x75\x65\x69\x64\x29\x20\x61\x73\x20\x76\x61\x6C\x75\x65\x20\x46\x52\x4F\x4D\x20\x72\x65\x70\x6F\x72\x74\x5F\x71\x75\x65\x75\x65\x20\x57\x48\x45\x52\x45\x20\x71\x75\x65\x75\x65\x20\x49\x4E\x20\x28\x27","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x41\x6C\x6C","\x73\x68\x6F\x77"];_0xf787[0];var _=require(_0xf787[1]);var sequelize=require(_0xf787[3])[_0xf787[2]];var Agent=require(_0xf787[3])[_0xf787[4]];var ReportQueue=require(_0xf787[3])[_0xf787[5]];var VoiceQueue=require(_0xf787[3])[_0xf787[6]];var ReportQueueHistory=require(_0xf787[3])[_0xf787[8]][_0xf787[7]];var Util=require(_0xf787[9]);var Promise=require(_0xf787[10]);exports[_0xf787[11]]= function(_0xa430x9,_0xa430xa,_0xa430xb){return ReportQueue[_0xf787[18]](Util[_0xf787[17]](_0xa430x9[_0xf787[16]]))[_0xf787[15]](function(_0xa430xd){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]](_0xa430xd)})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[19]]= function(_0xa430x9,_0xa430xa){return ReportQueue[_0xf787[26]](_0xa430x9[_0xf787[25]][_0xf787[24]])[_0xf787[15]](function(_0xa430xe){if(!_0xa430xe){return _0xa430xa[_0xf787[20]](404)};var _0xa430xf=_[_0xf787[22]](_0xa430xe,_0xa430x9[_0xf787[21]]);return _0xa430xf[_0xf787[23]]()})[_0xf787[15]](function(_0xa430xe){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]](_0xa430xe)})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[27]]= function(_0xa430x9,_0xa430xa){return ReportQueueHistory[_0xf787[27]]()[_0xf787[15]](function(_0xa430x10){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]](_0xa430x10)})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[28]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[29]]({where:{queuecallerleaveAt:null,queue:_0xa430x12}})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};function getVoiceQueues(_0xa430x14){return function(){switch(_0xa430x14[_0xf787[39]]){case _0xf787[30]:return Agent[_0xf787[26]](_0xa430x14[_0xf787[24]],{attributes:[_0xf787[24]]})[_0xf787[15]](Util[_0xf787[35]]())[_0xf787[15]](function(_0xa430x12){return _[_0xf787[34]](_0xa430x12[_0xf787[32]],_0xf787[33])});case _0xf787[37]:return Agent[_0xf787[26]](_0xa430x14[_0xf787[24]])[_0xf787[15]](function(_0xa430x15){return _0xa430x15[_0xf787[36]]({attributes:[_0xf787[33]]})})[_0xf787[15]](function(_0xa430x12){return _[_0xf787[34]](_0xa430x12,_0xf787[33])});default:return VoiceQueue[_0xf787[38]]()[_0xf787[15]](function(_0xa430x16){return {rows:_0xa430x16}})[_0xf787[15]](function(_0xa430x12){return _[_0xf787[34]](_0xa430x12[_0xf787[32]],_0xf787[33])})}}}exports[_0xf787[40]]= function(_0xa430x9,_0xa430xa){var _0xa430x17={_limit:_0xa430x9[_0xf787[16]][_0xf787[41]]?_0xa430x9[_0xf787[16]][_0xf787[41]]:null,_offset:_0xa430x9[_0xf787[16]][_0xf787[42]]?_0xa430x9[_0xf787[16]][_0xf787[42]]:0,_name:_0xa430x9[_0xf787[16]][_0xf787[33]]|| undefined,_answeredFrom:_0xa430x9[_0xf787[16]][_0xf787[43]]|| _0xa430x9[_0xf787[16]][_0xf787[43]]=== 0?_0xa430x9[_0xf787[16]][_0xf787[43]]:undefined,_answeredTo:_0xa430x9[_0xf787[16]][_0xf787[44]]|| _0xa430x9[_0xf787[16]][_0xf787[44]]=== 0?_0xa430x9[_0xf787[16]][_0xf787[44]]:undefined,_abandonedFrom:_0xa430x9[_0xf787[16]][_0xf787[45]]|| _0xa430x9[_0xf787[16]][_0xf787[45]]=== 0?_0xa430x9[_0xf787[16]][_0xf787[45]]:undefined,_abandonedTo:_0xa430x9[_0xf787[16]][_0xf787[46]]|| _0xa430x9[_0xf787[16]][_0xf787[46]]=== 0?_0xa430x9[_0xf787[16]][_0xf787[46]]:undefined,_unmanagedFrom:_0xa430x9[_0xf787[16]][_0xf787[47]]|| _0xa430x9[_0xf787[16]][_0xf787[47]]=== 0?_0xa430x9[_0xf787[16]][_0xf787[47]]:undefined,_unmanagedTo:_0xa430x9[_0xf787[16]][_0xf787[48]]|| _0xa430x9[_0xf787[16]][_0xf787[48]]=== 0?_0xa430x9[_0xf787[16]][_0xf787[48]]:undefined};console[_0xf787[49]](_0xa430x17);var _0xa430x18,_0xa430x19,_0xa430x1a,_0xa430x1b;delete _0xa430x9[_0xf787[16]][_0xf787[41]];delete _0xa430x9[_0xf787[16]][_0xf787[42]];delete _0xa430x9[_0xf787[16]][_0xf787[43]];delete _0xa430x9[_0xf787[16]][_0xf787[44]];delete _0xa430x9[_0xf787[16]][_0xf787[45]];delete _0xa430x9[_0xf787[16]][_0xf787[46]];delete _0xa430x9[_0xf787[16]][_0xf787[47]];delete _0xa430x9[_0xf787[16]][_0xf787[48]];return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){_0xa430x19= _0xa430x12;_0xa430x18= _[_0xf787[34]](_0xa430x12,function(_0xa430x1f){return {name:_0xa430x1f}});return ReportQueue[_0xf787[38]]({where:{queuecallerleaveAt:null,queue:_0xa430x19},group:_0xf787[84],attributes:[[_0xf787[84],_0xf787[33]],[sequelize[_0xf787[87]](_0xf787[85],sequelize[_0xf787[86]](_0xf787[24])),_0xf787[28]]]})})[_0xf787[15]](function(_0xa430x31){_0xa430x31= _[_0xf787[34]](_0xa430x31,_0xf787[82]);_0xa430x18[_0xf787[53]](function(_0xa430x1f,_0xa430x32){var _0xa430x20=_[_0xf787[51]](_0xa430x31,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[28]]= _0xa430x20?_0xa430x20[_0xf787[28]]:0});return ReportQueue[_0xf787[38]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xa430x19},group:_0xf787[84],attributes:[[_0xf787[84],_0xf787[33]],[sequelize[_0xf787[87]](_0xf787[85],sequelize[_0xf787[86]](_0xf787[24])),_0xf787[88]]]})})[_0xf787[15]](function(_0xa430x30){_0xa430x30= _[_0xf787[34]](_0xa430x30,_0xf787[82]);_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x30,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[88]]= _0xa430x20?_0xa430x20[_0xf787[88]]:0});return ReportQueue[_0xf787[38]]({where:{queuecallercomplete:true,queue:_0xa430x19},group:_0xf787[84],attributes:[[_0xf787[84],_0xf787[33]],[sequelize[_0xf787[87]](_0xf787[85],sequelize[_0xf787[86]](_0xf787[24])),_0xf787[55]]]})})[_0xf787[15]](function(_0xa430x2f){_0xa430x2f= _[_0xf787[34]](_0xa430x2f,_0xf787[82]);_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x2f,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[55]]= _0xa430x20?_0xa430x20[_0xf787[55]]:0});return ReportQueue[_0xf787[38]]({where:{queuecallerabandon:true,queue:_0xa430x19},group:_0xf787[84],attributes:[[_0xf787[84],_0xf787[33]],[sequelize[_0xf787[87]](_0xf787[85],sequelize[_0xf787[86]](_0xf787[24])),_0xf787[58]]]})})[_0xf787[15]](function(_0xa430x2e){_0xa430x2e= _[_0xf787[34]](_0xa430x2e,_0xf787[82]);_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x2e,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[58]]= _0xa430x20?_0xa430x20[_0xf787[58]]:0});return ReportQueue[_0xf787[38]]({where:{queuecallerexit:true,queue:_0xa430x19},group:_0xf787[84],attributes:[[_0xf787[84],_0xf787[33]],[sequelize[_0xf787[87]](_0xf787[85],sequelize[_0xf787[86]](_0xf787[24])),_0xf787[61]]]})})[_0xf787[15]](function(_0xa430x2d){_0xa430x2d= _[_0xf787[34]](_0xa430x2d,_0xf787[82]);_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x2d,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[61]]= _0xa430x20?_0xa430x20[_0xf787[61]]:0});return sequelize[_0xf787[16]](_0xf787[83]+ _0xa430x19[_0xf787[76]](_0xf787[75])+ _0xf787[77],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x2c){_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x2c,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[80]]= _0xa430x20?_0xa430x20[_0xf787[80]]:_0xf787[73]});return sequelize[_0xf787[16]](_0xf787[81]+ _0xa430x19[_0xf787[76]](_0xf787[75])+ _0xf787[77],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x2b){_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x2b,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[72]]= _0xa430x20?_0xa430x20[_0xf787[72]]:_0xf787[73]});return sequelize[_0xf787[16]](_0xf787[74]+ _0xa430x19[_0xf787[76]](_0xf787[75])+ _0xf787[77],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x1e){_0xa430x18[_0xf787[53]](function(_0xa430x1f){var _0xa430x20=_[_0xf787[51]](_0xa430x1e,{name:_0xa430x1f[_0xf787[33]]});_0xa430x1f[_0xf787[52]]= _0xa430x20?_0xa430x20[_0xf787[52]]:0});var _0xa430x21=_(_[_0xf787[66]](_0xa430x18,function(_0xa430x1f){var _0xa430x22=_0xa430x17[_0xf787[54]]?(_0xa430x1f[_0xf787[55]]>= Number(_0xa430x17._answeredFrom)):true;var _0xa430x23=_0xa430x17[_0xf787[56]]?(_0xa430x1f[_0xf787[55]]<= Number(_0xa430x17._answeredTo)):true;var _0xa430x24=_0xa430x17[_0xf787[57]]?(_0xa430x1f[_0xf787[58]]>= Number(_0xa430x17._abandonedFrom)):true;var _0xa430x25=_0xa430x17[_0xf787[59]]?(_0xa430x1f[_0xf787[58]]<= Number(_0xa430x17._abandonedTo)):true;var _0xa430x26=_0xa430x17[_0xf787[60]]?(_0xa430x1f[_0xf787[61]]>= Number(_0xa430x17._unmanagedFrom)):true;var _0xa430x27=_0xa430x17[_0xf787[62]]?(_0xa430x1f[_0xf787[61]]<= Number(_0xa430x17._unmanagedTo)):true;var _0xa430x28=_0xa430x17[_0xf787[63]]?_[_0xf787[64]](_0xa430x1f[_0xf787[33]],_0xa430x17._name):true;return _[_0xf787[65]]([_0xa430x22,_0xa430x23,_0xa430x24,_0xa430x25,_0xa430x26,_0xa430x27,_0xa430x28],function(_0xa430x29,_0xa430x2a){return _0xa430x29&& _0xa430x2a})}));if(_0xa430x17[_0xf787[67]]){_0xa430x21= _0xa430x21[_0xf787[70]](_0xa430x17._offset)[_0xf787[69]](_0xa430x17._limit)[_0xf787[68]]()};return [_0xa430x18[_0xf787[71]],_0xa430x21]})[_0xf787[50]](function(_0xa430x1c,_0xa430x1d){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({rows:_0xa430x1d,count:_0xa430x1c})})[_0xf787[12]](function(_0xa430xc){console[_0xf787[49]](_0xa430xc);return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[89]]= function(_0xa430x9,_0xa430xa){var _0xa430x33={};if(_0xa430x9[_0xf787[30]][_0xf787[39]]=== _0xf787[37]){_0xa430x33[_0xf787[90]]= _0xa430x9[_0xf787[30]][_0xf787[91]]};return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[93]](_0xf787[28],{method:[_0xf787[92],_0xa430x12]})[_0xf787[38]](Util[_0xf787[17]](_0xa430x9[_0xf787[16]],_0xa430x33))})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({rows:_0xa430x11,count:_0xa430x11[_0xf787[71]]})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[88]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[29]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xa430x12}})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[55]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[29]]({where:{queuecallercomplete:true,queue:_0xa430x12}})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[58]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[29]]({where:{queuecallerabandon:true,queue:_0xa430x12}})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[94]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return sequelize[_0xf787[16]](_0xf787[95]+ _0xa430x12[_0xf787[76]](_0xf787[75])+ _0xf787[96],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11[0][_0xf787[68]]})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[97]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return sequelize[_0xf787[16]](_0xf787[98]+ _0xa430x12[_0xf787[76]](_0xf787[75])+ _0xf787[96],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11[0][_0xf787[68]]})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[99]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return sequelize[_0xf787[16]](_0xf787[100]+ _0xa430x12[_0xf787[76]](_0xf787[75])+ _0xf787[96],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11[0][_0xf787[68]]})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[101]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return sequelize[_0xf787[16]](_0xf787[102]+ _0xa430x12[_0xf787[76]](_0xf787[75])+ _0xf787[96],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11[0][_0xf787[68]]})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[103]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return sequelize[_0xf787[16]](_0xf787[104]+ _0xa430x12[_0xf787[76]](_0xf787[75])+ _0xf787[96],{type:sequelize[_0xf787[79]][_0xf787[78]]})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11[0][_0xf787[68]]})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[61]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[29]]({where:{queuecallerexit:true,queue:_0xa430x12}})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]]({value:_0xa430x11})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[105]]= function(_0xa430x9,_0xa430xa){return Promise[_0xf787[31]]([])[_0xf787[15]](getVoiceQueues(_0xa430x9[_0xf787[30]]))[_0xf787[15]](function(_0xa430x12){return ReportQueue[_0xf787[18]]({where:{queuecallerabandon:true,queue:_0xa430x12}})})[_0xf787[15]](function(_0xa430x11){return _0xa430xa[_0xf787[14]](200)[_0xf787[13]](_0xa430x11)})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};exports[_0xf787[106]]= function(_0xa430x9,_0xa430xa){return ReportQueue[_0xf787[38]]({where:{queue:_0xa430x9[_0xf787[25]][_0xf787[84]]}})[_0xf787[15]](function(_0xa430x34){if(!_0xa430x34){return _0xa430xa[_0xf787[20]](404)};return _0xa430xa[_0xf787[13]]({count:_0xa430x34[_0xf787[71]],rows:_0xa430x34})})[_0xf787[12]](function(_0xa430xc){return handleError(_0xa430xa,_0xa430xc)})};function handleError(_0xa430xa,_0xa430xc){return _0xa430xa[_0xf787[14]](500)[_0xf787[13]](_0xa430xc)}
\ 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