Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / config / ami / db / voiceQueueReport.js
index 36630dd..1d8f069 100644 (file)
@@ -1 +1 @@
-var _0x3e55=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6E\x6F\x77","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x68\x65\x6E","\x75\x6E\x69\x71\x75\x65\x69\x64","\x69\x64\x20\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72\x74\x79\x70\x65","\x74\x72\x61\x6E\x73\x66\x65\x72\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65","\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","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x6D\x65\x72\x67\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\x41\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73\x20\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65"];_0x3e55[0];var BPromise=require(_0x3e55[1]);var moment=require(_0x3e55[2]);var _=require(_0x3e55[3]);var ReportQueue=require(_0x3e55[5])[_0x3e55[4]];var logger=require(_0x3e55[7])(_0x3e55[6]);module[_0x3e55[8]]= function(){return {agentcomplete:function(_0xb52cx6){return function(_0xb52cx7){return ReportQueue[_0x3e55[17]]({where:{uniqueid:_0xb52cx6[_0x3e55[15]],queuecallerleaveAt:{$ne:null},transfer:false},order:_0x3e55[16]})[_0x3e55[14]](function(_0xb52cx9){if(_0xb52cx9){return _0xb52cx9[_0x3e55[13]]({queuecallercomplete:true,queuecallercompleteAt:_0xb52cx6[_0x3e55[12]]})}})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[9],_0xb52cx8)})}},queuetransfer:function(_0xb52cx6){return function(_0xb52cx7){return ReportQueue[_0x3e55[17]]({where:{uniqueid:_0xb52cx6[_0x3e55[15]]},order:_0x3e55[16]})[_0x3e55[14]](function(_0xb52cx9){if(_0xb52cx9){var _0xb52cxa={transfer:_0xb52cx6[_0x3e55[19]],transfertype:_0xb52cx6[_0x3e55[20]],transferuniqueid:_0xb52cx6[_0x3e55[21]],transferextension:_0xb52cx6[_0x3e55[22]],queuecallerexitreason:_0xb52cx6[_0x3e55[23]]};if(!_0xb52cx9[_0x3e55[24]]){_0xb52cxa[_0x3e55[24]]= true;_0xb52cxa[_0x3e55[25]]= _0xb52cx6[_0x3e55[12]]};if(!_0xb52cx9[_0x3e55[26]]){_0xb52cxa[_0x3e55[26]]= _0xb52cx6[_0x3e55[12]]};return _0xb52cx9[_0x3e55[13]](_0xb52cxa)}})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[18],_0xb52cx8)})}},agentconnect:function(_0xb52cx6){return function(_0xb52cx7){return ReportQueue[_0x3e55[17]]({where:{uniqueid:_0xb52cx6[_0x3e55[15]]},order:_0x3e55[16]})[_0x3e55[14]](function(_0xb52cx9){if(_0xb52cx9){return _0xb52cx9[_0x3e55[13]]({holdtime:_0xb52cx6[_0x3e55[28]],assigned:true,lastAssignedTo:_0xb52cx6[_0x3e55[29]],connectedlinenum:_0xb52cx6[_0x3e55[30]],connectedlinename:_0xb52cx6[_0x3e55[31]]})}})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[27],_0xb52cx8)})}},queuecallerjoin:function(_0xb52cx6){return function(_0xb52cx7){_[_0x3e55[32]](_0xb52cx6,{queuecallerjoinAt:_0xb52cx6[_0x3e55[12]]});return ReportQueue[_0x3e55[34]](_0xb52cx6,{raw:true})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[33],_0xb52cx8)})}},queuecallerabandon:function(_0xb52cx6){return function(_0xb52cx7){return ReportQueue[_0x3e55[17]]({where:{uniqueid:_0xb52cx6[_0x3e55[15]],queuecallercomplete:false,$or:{queuecallerexitreason:null,queuecallerexit:false}},order:_0x3e55[16]})[_0x3e55[14]](function(_0xb52cx9){if(_0xb52cx9){return _0xb52cx9[_0x3e55[13]]({queuecallerabandon:true,queuecallerabandonAt:_0xb52cx6[_0x3e55[12]],queuecallerleaveAt:_0xb52cx6[_0x3e55[12]],queuecallerexit:false,queuecallerexitAt:null,queuecallerexitreason:null,connectedlinenum:null,connectedlinename:null,originalposition:_0xb52cx6[_0x3e55[36]],position:_0xb52cx6[_0x3e55[37]],holdtime:_0xb52cx6[_0x3e55[28]]})}})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[35],_0xb52cx8)})}},queuecallerunmanaged:function(_0xb52cx6){return function(_0xb52cx7){var _0xb52cxa={queuecallerabandon:false,queuecallerabandonAt:null,queuecallerexit:true,queuecallerexitAt:_0xb52cx6[_0x3e55[12]],connectedlinenum:null,connectedlinename:null,queuecallerleaveAt:_0xb52cx6[_0x3e55[12]],queuecallerexitreason:_0xb52cx6[_0x3e55[23]]};if(_0xb52cx6[_0x3e55[34]]){_0xb52cxa[_0x3e55[38]]= _0xb52cx6[_0x3e55[12]];return ReportQueue[_0x3e55[34]](_[_0x3e55[32]](_0xb52cx6,_0xb52cxa))[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[39],_0xb52cx8)})}else {return ReportQueue[_0x3e55[17]]({where:{uniqueid:_0xb52cx6[_0x3e55[15]],queuecallerexitreason:null},order:_0x3e55[16]})[_0x3e55[14]](function(_0xb52cx9){if(_0xb52cx9){return _0xb52cx9[_0x3e55[13]](_0xb52cxa)}})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[40],_0xb52cx8)})}}},queuecallerleave:function(_0xb52cx6){return function(_0xb52cx7){var _0xb52cxb={queuecallerleaveAt:_0xb52cx6[_0x3e55[12]]};return ReportQueue[_0x3e55[17]]({where:{uniqueid:_0xb52cx6[_0x3e55[15]],queuecallerleaveAt:null},order:_0x3e55[16]})[_0x3e55[14]](function(_0xb52cx9){if(_0xb52cx9){return _0xb52cx9[_0x3e55[13]](_0xb52cxb)}})[_0x3e55[11]](function(_0xb52cx8){logger[_0x3e55[10]](_0x3e55[41],_0xb52cx8)})}}}}
\ No newline at end of file
+var _0xf2bc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6D\x6F\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6E\x6F\x77","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x74\x68\x65\x6E","\x75\x6E\x69\x71\x75\x65\x69\x64","\x69\x64\x20\x44\x45\x53\x43","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72","\x74\x72\x61\x6E\x73\x66\x65\x72\x74\x79\x70\x65","\x74\x72\x61\x6E\x73\x66\x65\x72\x75\x6E\x69\x71\x75\x65\x69\x64","\x74\x72\x61\x6E\x73\x66\x65\x72\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65","\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","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x75\x6D","\x63\x6F\x6E\x6E\x65\x63\x74\x65\x64\x6C\x69\x6E\x65\x6E\x61\x6D\x65","\x6D\x65\x72\x67\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x6F\x72\x69\x67\x69\x6E\x61\x6C\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6A\x6F\x69\x6E\x41\x74","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73\x20\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x51\x75\x65\x75\x65\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65"];_0xf2bc[0];var BPromise=require(_0xf2bc[1]);var moment=require(_0xf2bc[2]);var _=require(_0xf2bc[3]);var ReportQueue=require(_0xf2bc[5])[_0xf2bc[4]];var logger=require(_0xf2bc[7])(_0xf2bc[6]);module[_0xf2bc[8]]= function(){return {agentcomplete:function(_0x9f5fx6){return function(_0x9f5fx7){return ReportQueue[_0xf2bc[17]]({where:{uniqueid:_0x9f5fx6[_0xf2bc[15]],queuecallerleaveAt:{$ne:null},transfer:false},order:_0xf2bc[16]})[_0xf2bc[14]](function(_0x9f5fx9){if(_0x9f5fx9){return _0x9f5fx9[_0xf2bc[13]]({queuecallercomplete:true,queuecallercompleteAt:_0x9f5fx6[_0xf2bc[12]]})}})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[9],_0x9f5fx8)})}},queuetransfer:function(_0x9f5fx6){return function(_0x9f5fx7){return ReportQueue[_0xf2bc[17]]({where:{uniqueid:_0x9f5fx6[_0xf2bc[15]]},order:_0xf2bc[16]})[_0xf2bc[14]](function(_0x9f5fx9){if(_0x9f5fx9){var _0x9f5fxa={transfer:_0x9f5fx6[_0xf2bc[19]],transfertype:_0x9f5fx6[_0xf2bc[20]],transferuniqueid:_0x9f5fx6[_0xf2bc[21]],transferextension:_0x9f5fx6[_0xf2bc[22]],queuecallerexitreason:_0x9f5fx6[_0xf2bc[23]]};if(!_0x9f5fx9[_0xf2bc[24]]){_0x9f5fxa[_0xf2bc[24]]= true;_0x9f5fxa[_0xf2bc[25]]= _0x9f5fx6[_0xf2bc[12]]};if(!_0x9f5fx9[_0xf2bc[26]]){_0x9f5fxa[_0xf2bc[26]]= _0x9f5fx6[_0xf2bc[12]]};return _0x9f5fx9[_0xf2bc[13]](_0x9f5fxa)}})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[18],_0x9f5fx8)})}},agentconnect:function(_0x9f5fx6){return function(_0x9f5fx7){return ReportQueue[_0xf2bc[17]]({where:{uniqueid:_0x9f5fx6[_0xf2bc[15]]},order:_0xf2bc[16]})[_0xf2bc[14]](function(_0x9f5fx9){if(_0x9f5fx9){return _0x9f5fx9[_0xf2bc[13]]({holdtime:_0x9f5fx6[_0xf2bc[28]],assigned:true,lastAssignedTo:_0x9f5fx6[_0xf2bc[29]],connectedlinenum:_0x9f5fx6[_0xf2bc[30]],connectedlinename:_0x9f5fx6[_0xf2bc[31]]})}})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[27],_0x9f5fx8)})}},queuecallerjoin:function(_0x9f5fx6){return function(_0x9f5fx7){_[_0xf2bc[32]](_0x9f5fx6,{queuecallerjoinAt:_0x9f5fx6[_0xf2bc[12]]});return ReportQueue[_0xf2bc[34]](_0x9f5fx6,{raw:true})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[33],_0x9f5fx8)})}},queuecallerabandon:function(_0x9f5fx6){return function(_0x9f5fx7){return ReportQueue[_0xf2bc[17]]({where:{uniqueid:_0x9f5fx6[_0xf2bc[15]],queuecallercomplete:false,$or:{queuecallerexitreason:null,queuecallerexit:false}},order:_0xf2bc[16]})[_0xf2bc[14]](function(_0x9f5fx9){if(_0x9f5fx9){return _0x9f5fx9[_0xf2bc[13]]({queuecallerabandon:true,queuecallerabandonAt:_0x9f5fx6[_0xf2bc[12]],queuecallerleaveAt:_0x9f5fx6[_0xf2bc[12]],queuecallerexit:false,queuecallerexitAt:null,queuecallerexitreason:null,connectedlinenum:null,connectedlinename:null,originalposition:_0x9f5fx6[_0xf2bc[36]],position:_0x9f5fx6[_0xf2bc[37]],holdtime:_0x9f5fx6[_0xf2bc[28]]})}})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[35],_0x9f5fx8)})}},queuecallerunmanaged:function(_0x9f5fx6){return function(_0x9f5fx7){var _0x9f5fxa={queuecallerabandon:false,queuecallerabandonAt:null,queuecallerexit:true,queuecallerexitAt:_0x9f5fx6[_0xf2bc[12]],connectedlinenum:null,connectedlinename:null,queuecallerleaveAt:_0x9f5fx6[_0xf2bc[12]],queuecallerexitreason:_0x9f5fx6[_0xf2bc[23]]};if(_0x9f5fx6[_0xf2bc[34]]){_0x9f5fxa[_0xf2bc[38]]= _0x9f5fx6[_0xf2bc[12]];return ReportQueue[_0xf2bc[34]](_[_0xf2bc[32]](_0x9f5fx6,_0x9f5fxa))[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[39],_0x9f5fx8)})}else {return ReportQueue[_0xf2bc[17]]({where:{uniqueid:_0x9f5fx6[_0xf2bc[15]],queuecallerexitreason:null},order:_0xf2bc[16]})[_0xf2bc[14]](function(_0x9f5fx9){if(_0x9f5fx9){return _0x9f5fx9[_0xf2bc[13]](_0x9f5fxa)}})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[40],_0x9f5fx8)})}}},queuecallerleave:function(_0x9f5fx6){return function(_0x9f5fx7){var _0x9f5fxb={queuecallerleaveAt:_0x9f5fx6[_0xf2bc[12]]};return ReportQueue[_0xf2bc[17]]({where:{uniqueid:_0x9f5fx6[_0xf2bc[15]],queuecallerleaveAt:null},order:_0xf2bc[16]})[_0xf2bc[14]](function(_0x9f5fx9){if(_0x9f5fx9){return _0x9f5fx9[_0xf2bc[13]](_0x9f5fxb)}})[_0xf2bc[11]](function(_0x9f5fx8){logger[_0xf2bc[10]](_0xf2bc[41],_0x9f5fx8)})}}}}
\ No newline at end of file