Built motion from commit 0dbf6b8.|0.0.131
[motion.git] / server / api / report_queue / report_queue.controller.js
index 8493407..f8bc673 100644 (file)
@@ -1 +1 @@
-var _0xb6d6=["\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","\x71\x75\x65\x75\x65\x50\x61\x72\x61\x6D\x65\x74\x65\x72\x73","\x6C\x69\x6D\x69\x74","\x6F\x66\x66\x73\x65\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x46\x72\x6F\x6D","\x61\x6E\x73\x77\x65\x72\x65\x64\x54\x6F","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x46\x72\x6F\x6D","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64\x54\x6F","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x46\x72\x6F\x6D","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64\x54\x6F","\x6C\x6F\x67","\x73\x70\x72\x65\x61\x64","\x6E\x61\x6D\x65","\x66\x69\x6E\x64","\x74\x6F\x74\x61\x6C\x63\x61\x6C\x6C\x73","\x66\x6F\x72\x45\x61\x63\x68","\x76\x61\x6C\x75\x65","\x74\x61\x6B\x65","\x73\x6C\x69\x63\x65","\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","\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","\x6D\x61\x70","\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","\x69\x64","\x63\x6F\x6C","\x66\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x63\x74\x69\x76\x65","\x72\x6F\x77\x73","\x67\x65\x74\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65\x73\x49\x64\x42\x79\x55\x73\x65\x72","\x75\x73\x65\x72","\x66\x69\x6E\x64\x42\x79\x49\x64","\x72\x6F\x6C\x65","\x61\x6C\x6C","\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","\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","\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","\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","\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","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x70\x61\x72\x61\x6D\x73"];_0xb6d6[0];var _=require(_0xb6d6[1]);var sequelize=require(_0xb6d6[3])[_0xb6d6[2]];var Agent=require(_0xb6d6[3])[_0xb6d6[4]];var ReportQueue=require(_0xb6d6[3])[_0xb6d6[5]];var VoiceQueue=require(_0xb6d6[3])[_0xb6d6[6]];var ReportQueueHistory=require(_0xb6d6[3])[_0xb6d6[8]][_0xb6d6[7]];var Util=require(_0xb6d6[9]);var Promise=require(_0xb6d6[10]);exports[_0xb6d6[11]]=function(_0xa506x9,_0xa506xa,_0xa506xb){return ReportQueue[_0xb6d6[18]](Util[_0xb6d6[17]](_0xa506x9[_0xb6d6[16]]))[_0xb6d6[15]](function(_0xa506xd){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]](_0xa506xd)})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[19]]=function(_0xa506x9,_0xa506xa){return ReportQueueHistory[_0xb6d6[19]]()[_0xb6d6[15]](function(_0xa506xe){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]](_0xa506xe)})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[20]]=function(_0xa506x9,_0xa506xa){return ReportQueue[_0xb6d6[21]]({where:{queuecallerleaveAt:null}})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};function parametersQuery(_0xa506x11,_0xa506x12){}exports[_0xb6d6[22]]=function(_0xa506x9,_0xa506xa){var _0xa506x12={_limit:_0xa506x9[_0xb6d6[16]][_0xb6d6[23]]?_0xa506x9[_0xb6d6[16]][_0xb6d6[23]]:10,_offset:_0xa506x9[_0xb6d6[16]][_0xb6d6[24]]?_0xa506x9[_0xb6d6[16]][_0xb6d6[24]]:0,_answeredFrom:_0xa506x9[_0xb6d6[16]][_0xb6d6[25]]||_0xa506x9[_0xb6d6[16]][_0xb6d6[25]]===0?_0xa506x9[_0xb6d6[16]][_0xb6d6[25]]:undefined,_answeredTo:_0xa506x9[_0xb6d6[16]][_0xb6d6[26]]||_0xa506x9[_0xb6d6[16]][_0xb6d6[26]]===0?_0xa506x9[_0xb6d6[16]][_0xb6d6[26]]:undefined,_abandonedFrom:_0xa506x9[_0xb6d6[16]][_0xb6d6[27]]||_0xa506x9[_0xb6d6[16]][_0xb6d6[27]]===0?_0xa506x9[_0xb6d6[16]][_0xb6d6[27]]:undefined,_abandonedTo:_0xa506x9[_0xb6d6[16]][_0xb6d6[28]]||_0xa506x9[_0xb6d6[16]][_0xb6d6[28]]===0?_0xa506x9[_0xb6d6[16]][_0xb6d6[28]]:undefined,_unmanagedFrom:_0xa506x9[_0xb6d6[16]][_0xb6d6[29]]||_0xa506x9[_0xb6d6[16]][_0xb6d6[29]]===0?_0xa506x9[_0xb6d6[16]][_0xb6d6[29]]:undefined,_unmanagedTo:_0xa506x9[_0xb6d6[16]][_0xb6d6[30]]||_0xa506x9[_0xb6d6[16]][_0xb6d6[30]]===0?_0xa506x9[_0xb6d6[16]][_0xb6d6[30]]:undefined};var _0xa506x13,_0xa506x14,_0xa506x15,_0xa506x16;console[_0xb6d6[31]](_0xa506x9[_0xb6d6[16]]);delete _0xa506x9[_0xb6d6[16]][_0xb6d6[23]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[24]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[25]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[26]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[27]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[28]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[29]];delete _0xa506x9[_0xb6d6[16]][_0xb6d6[30]];return Promise[_0xb6d6[77]]([])[_0xb6d6[15]](function(){switch(_0xa506x9[_0xb6d6[74]][_0xb6d6[76]]){case _0xb6d6[74]:return Agent[_0xb6d6[75]](_0xa506x9[_0xb6d6[74]][_0xb6d6[67]],{attributes:[_0xb6d6[67]]})[_0xb6d6[15]](Util[_0xb6d6[73]](_0xa506x9[_0xb6d6[16]]));default:return VoiceQueue[_0xb6d6[70]](Util[_0xb6d6[17]](_0xa506x9[_0xb6d6[16]]))[_0xb6d6[15]](function(_0xa506x2e){return {rows:_0xa506x2e}})}})[_0xb6d6[15]](function(_0xa506x2d){_0xa506x14=_[_0xb6d6[63]](_0xa506x2d[_0xb6d6[72]],_0xb6d6[33]);console[_0xb6d6[31]](_0xa506x14);_0xa506x13=_[_0xb6d6[63]](_0xa506x2d[_0xb6d6[72]],function(_0xa506x1a){return {name:_0xa506x1a[_0xb6d6[33]]}});return ReportQueue[_0xb6d6[70]]({where:{queuecallerleaveAt:null,queue:_0xa506x14},group:_0xb6d6[65],attributes:[[_0xb6d6[65],_0xb6d6[33]],[sequelize[_0xb6d6[69]](_0xb6d6[66],sequelize[_0xb6d6[68]](_0xb6d6[67])),_0xb6d6[20]]]})})[_0xb6d6[15]](function(_0xa506x2b){_0xa506x2b=_[_0xb6d6[63]](_0xa506x2b,_0xb6d6[62]);_0xa506x13[_0xb6d6[36]](function(_0xa506x1a,_0xa506x2c){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x2b,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[20]]=_0xa506x1b?_0xa506x1b[_0xb6d6[20]]:0});return ReportQueue[_0xb6d6[70]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null},queue:_0xa506x14},group:_0xb6d6[65],attributes:[[_0xb6d6[65],_0xb6d6[33]],[sequelize[_0xb6d6[69]](_0xb6d6[66],sequelize[_0xb6d6[68]](_0xb6d6[67])),_0xb6d6[71]]]})})[_0xb6d6[15]](function(_0xa506x2a){_0xa506x2a=_[_0xb6d6[63]](_0xa506x2a,_0xb6d6[62]);_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x2a,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[71]]=_0xa506x1b?_0xa506x1b[_0xb6d6[71]]:0});return ReportQueue[_0xb6d6[70]]({where:{queuecallercomplete:true,queue:_0xa506x14},group:_0xb6d6[65],attributes:[[_0xb6d6[65],_0xb6d6[33]],[sequelize[_0xb6d6[69]](_0xb6d6[66],sequelize[_0xb6d6[68]](_0xb6d6[67])),_0xb6d6[41]]]})})[_0xb6d6[15]](function(_0xa506x29){_0xa506x29=_[_0xb6d6[63]](_0xa506x29,_0xb6d6[62]);_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x29,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[41]]=_0xa506x1b?_0xa506x1b[_0xb6d6[41]]:0});return ReportQueue[_0xb6d6[70]]({where:{queuecallerabandon:true,queue:_0xa506x14},group:_0xb6d6[65],attributes:[[_0xb6d6[65],_0xb6d6[33]],[sequelize[_0xb6d6[69]](_0xb6d6[66],sequelize[_0xb6d6[68]](_0xb6d6[67])),_0xb6d6[44]]]})})[_0xb6d6[15]](function(_0xa506x28){_0xa506x28=_[_0xb6d6[63]](_0xa506x28,_0xb6d6[62]);_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x28,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[44]]=_0xa506x1b?_0xa506x1b[_0xb6d6[44]]:0});return ReportQueue[_0xb6d6[70]]({where:{queuecallerexit:true,queue:_0xa506x14},group:_0xb6d6[65],attributes:[[_0xb6d6[65],_0xb6d6[33]],[sequelize[_0xb6d6[69]](_0xb6d6[66],sequelize[_0xb6d6[68]](_0xb6d6[67])),_0xb6d6[47]]]})})[_0xb6d6[15]](function(_0xa506x27){_0xa506x27=_[_0xb6d6[63]](_0xa506x27,_0xb6d6[62]);_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x27,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[47]]=_0xa506x1b?_0xa506x1b[_0xb6d6[47]]:0});return sequelize[_0xb6d6[16]](_0xb6d6[64]+_0xa506x14[_0xb6d6[56]](_0xb6d6[55])+_0xb6d6[57],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})})[_0xb6d6[15]](function(_0xa506x26){_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x26,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[60]]=_0xa506x1b?_0xa506x1b[_0xb6d6[60]]:_0xb6d6[53]});return sequelize[_0xb6d6[16]](_0xb6d6[61]+_0xa506x14[_0xb6d6[56]](_0xb6d6[55])+_0xb6d6[57],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})})[_0xb6d6[15]](function(_0xa506x25){_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x25,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[52]]=_0xa506x1b?_0xa506x1b[_0xb6d6[52]]:_0xb6d6[53]});return sequelize[_0xb6d6[16]](_0xb6d6[54]+_0xa506x14[_0xb6d6[56]](_0xb6d6[55])+_0xb6d6[57],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})})[_0xb6d6[15]](function(_0xa506x19){_0xa506x13[_0xb6d6[36]](function(_0xa506x1a){var _0xa506x1b=_[_0xb6d6[34]](_0xa506x19,{name:_0xa506x1a[_0xb6d6[33]]});_0xa506x1a[_0xb6d6[35]]=_0xa506x1b?_0xa506x1b[_0xb6d6[35]]:0});var _0xa506x1c=_(_[_0xb6d6[50]](_0xa506x13,function(_0xa506x1a){var _0xa506x1d=_0xa506x12[_0xb6d6[40]]?(_0xa506x1a[_0xb6d6[41]]>=Number(_0xa506x12._answeredFrom)):true;var _0xa506x1e=_0xa506x12[_0xb6d6[42]]?(_0xa506x1a[_0xb6d6[41]]<=Number(_0xa506x12._answeredTo)):true;var _0xa506x1f=_0xa506x12[_0xb6d6[43]]?(_0xa506x1a[_0xb6d6[44]]>=Number(_0xa506x12._abandonedFrom)):true;var _0xa506x20=_0xa506x12[_0xb6d6[45]]?(_0xa506x1a[_0xb6d6[44]]>=Number(_0xa506x12._abandonedTo)):true;var _0xa506x21=_0xa506x12[_0xb6d6[46]]?(_0xa506x1a[_0xb6d6[47]]>=Number(_0xa506x12._unmanagedFrom)):true;var _0xa506x22=_0xa506x12[_0xb6d6[48]]?(_0xa506x1a[_0xb6d6[47]]<=Number(_0xa506x12._unmanagedTo)):true;return _[_0xb6d6[49]]([_0xa506x1d,_0xa506x1e,_0xa506x1f,_0xa506x20,_0xa506x21,_0xa506x22],function(_0xa506x23,_0xa506x24){return _0xa506x23&&_0xa506x24})}))[_0xb6d6[39]](_0xa506x12._offset)[_0xb6d6[38]](_0xa506x12._limit)[_0xb6d6[37]]();return [_0xa506x13[_0xb6d6[51]],_0xa506x1c]})[_0xb6d6[32]](function(_0xa506x17,_0xa506x18){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({rows:_0xa506x18,count:_0xa506x17})})[_0xb6d6[12]](function(_0xa506xc){console[_0xb6d6[31]](_0xa506xc);return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[78]]=function(_0xa506x9,_0xa506xa){switch(_0xa506x9[_0xb6d6[74]][_0xb6d6[76]]){case _0xb6d6[74]:return Agent[_0xb6d6[75]](_0xa506x9[_0xb6d6[74]][_0xb6d6[67]],{attributes:[_0xb6d6[67]]})[_0xb6d6[15]](Util[_0xb6d6[73]]())[_0xb6d6[15]](function(_0xa506x2f){_0xa506x2f=_[_0xb6d6[63]](_0xa506x2f[_0xb6d6[72]],_0xb6d6[33]);return ReportQueue[_0xb6d6[70]](Util[_0xb6d6[17]](_0xa506x9[_0xb6d6[16]],{queuecallerleaveAt:null,queue:{$in:_0xa506x2f}}))})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({rows:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)});default:return ReportQueue[_0xb6d6[70]]({where:{queuecallerleaveAt:null}})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({rows:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})}};exports[_0xb6d6[79]]=function(_0xa506x9,_0xa506xa){return Agent[_0xb6d6[75]](_0xa506x9[_0xb6d6[74]][_0xb6d6[67]])[_0xb6d6[15]](function(_0xa506x31){return _0xa506x31[_0xb6d6[81]]({attributes:[_0xb6d6[33]]})})[_0xb6d6[15]](function(_0xa506x2e){return ReportQueue[_0xb6d6[80]](_0xb6d6[20],{method:[_0xa506x9[_0xb6d6[74]][_0xb6d6[76]],_[_0xb6d6[63]](_0xa506x2e,_0xb6d6[33])]})[_0xb6d6[70]]()})[_0xb6d6[15]](function(_0xa506x30){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({count:_0xa506x30[_0xb6d6[51]],rows:_0xa506x30})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[71]]=function(_0xa506x9,_0xa506xa){return ReportQueue[_0xb6d6[21]]({where:{queuecallerexit:false,queuecallerabandon:false,queuecallercomplete:false,queuecallerleaveAt:{$ne:null}}})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[41]]=function(_0xa506x9,_0xa506xa){return ReportQueue[_0xb6d6[21]]({where:{queuecallercomplete:true}})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[44]]=function(_0xa506x9,_0xa506xa){return ReportQueue[_0xb6d6[21]]({where:{queuecallerabandon:true}})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[82]]=function(_0xa506x9,_0xa506xa){return sequelize[_0xb6d6[16]](_0xb6d6[83],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf[0][_0xb6d6[37]]})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[84]]=function(_0xa506x9,_0xa506xa){return sequelize[_0xb6d6[16]](_0xb6d6[85],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf[0][_0xb6d6[37]]})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[86]]=function(_0xa506x9,_0xa506xa){return sequelize[_0xb6d6[16]](_0xb6d6[87],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf[0][_0xb6d6[37]]})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[88]]=function(_0xa506x9,_0xa506xa){return sequelize[_0xb6d6[16]](_0xb6d6[89],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf[0][_0xb6d6[37]]})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[90]]=function(_0xa506x9,_0xa506xa){return sequelize[_0xb6d6[16]](_0xb6d6[91],{type:sequelize[_0xb6d6[59]][_0xb6d6[58]]})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf[0][_0xb6d6[37]]})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[47]]=function(_0xa506x9,_0xa506xa){return ReportQueue[_0xb6d6[21]]({where:{queuecallerexit:true}})[_0xb6d6[15]](function(_0xa506xf){return _0xa506xa[_0xb6d6[14]](200)[_0xb6d6[13]]({value:_0xa506xf})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};exports[_0xb6d6[92]]=function(_0xa506x9,_0xa506xa){return ReportQueue[_0xb6d6[70]]({where:{queue:_0xa506x9[_0xb6d6[94]][_0xb6d6[65]]}})[_0xb6d6[15]](function(_0xa506x32){if(!_0xa506x32){return _0xa506xa[_0xb6d6[93]](404)};return _0xa506xa[_0xb6d6[13]]({count:_0xa506x32[_0xb6d6[51]],rows:_0xa506x32})})[_0xb6d6[12]](function(_0xa506xc){return handleError(_0xa506xa,_0xa506xc)})};function handleError(_0xa506xa,_0xa506xc){return _0xa506xa[_0xb6d6[14]](500)[_0xb6d6[13]](_0xa506xc)}
\ No newline at end of file
+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