Built motion from commit e1cfd85d6.|1.0.31
[motion.git] / server / config / ami / db / voiceQueueReport.js
index 890cd7e..2133314 100644 (file)
@@ -1 +1 @@
-var _0x914c=["\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"];_0x914c[0];var BPromise=require(_0x914c[1]);var moment=require(_0x914c[2]);var _=require(_0x914c[3]);var ReportQueue=require(_0x914c[5])[_0x914c[4]];var logger=require(_0x914c[7])(_0x914c[6]);module[_0x914c[8]]= function(){return {agentcomplete:function(_0x7f85x6){return function(_0x7f85x7){return ReportQueue[_0x914c[17]]({where:{uniqueid:_0x7f85x6[_0x914c[15]],queuecallerleaveAt:{$ne:null},transfer:false},order:_0x914c[16]})[_0x914c[14]](function(_0x7f85x9){if(_0x7f85x9){return _0x7f85x9[_0x914c[13]]({queuecallercomplete:true,queuecallercompleteAt:_0x7f85x6[_0x914c[12]]})}})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[9],_0x7f85x8)})}},queuetransfer:function(_0x7f85x6){return function(_0x7f85x7){return ReportQueue[_0x914c[17]]({where:{uniqueid:_0x7f85x6[_0x914c[15]]},order:_0x914c[16]})[_0x914c[14]](function(_0x7f85x9){if(_0x7f85x9){var _0x7f85xa={transfer:_0x7f85x6[_0x914c[19]],transfertype:_0x7f85x6[_0x914c[20]],transferuniqueid:_0x7f85x6[_0x914c[21]],transferextension:_0x7f85x6[_0x914c[22]],queuecallerexitreason:_0x7f85x6[_0x914c[23]]};if(!_0x7f85x9[_0x914c[24]]){_0x7f85xa[_0x914c[24]]= true;_0x7f85xa[_0x914c[25]]= _0x7f85x6[_0x914c[12]]};if(!_0x7f85x9[_0x914c[26]]){_0x7f85xa[_0x914c[26]]= _0x7f85x6[_0x914c[12]]};return _0x7f85x9[_0x914c[13]](_0x7f85xa)}})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[18],_0x7f85x8)})}},agentconnect:function(_0x7f85x6){return function(_0x7f85x7){return ReportQueue[_0x914c[17]]({where:{uniqueid:_0x7f85x6[_0x914c[15]]},order:_0x914c[16]})[_0x914c[14]](function(_0x7f85x9){if(_0x7f85x9){return _0x7f85x9[_0x914c[13]]({holdtime:_0x7f85x6[_0x914c[28]],assigned:true,lastAssignedTo:_0x7f85x6[_0x914c[29]],connectedlinenum:_0x7f85x6[_0x914c[30]],connectedlinename:_0x7f85x6[_0x914c[31]]})}})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[27],_0x7f85x8)})}},queuecallerjoin:function(_0x7f85x6){return function(_0x7f85x7){_[_0x914c[32]](_0x7f85x6,{queuecallerjoinAt:_0x7f85x6[_0x914c[12]]});return ReportQueue[_0x914c[34]](_0x7f85x6,{raw:true})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[33],_0x7f85x8)})}},queuecallerabandon:function(_0x7f85x6){return function(_0x7f85x7){return ReportQueue[_0x914c[17]]({where:{uniqueid:_0x7f85x6[_0x914c[15]],queuecallercomplete:false,$or:{queuecallerexitreason:null,queuecallerexit:false}},order:_0x914c[16]})[_0x914c[14]](function(_0x7f85x9){if(_0x7f85x9){return _0x7f85x9[_0x914c[13]]({queuecallerabandon:true,queuecallerabandonAt:_0x7f85x6[_0x914c[12]],queuecallerleaveAt:_0x7f85x6[_0x914c[12]],queuecallerexit:false,queuecallerexitAt:null,queuecallerexitreason:null,connectedlinenum:null,connectedlinename:null,originalposition:_0x7f85x6[_0x914c[36]],position:_0x7f85x6[_0x914c[37]],holdtime:_0x7f85x6[_0x914c[28]]})}})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[35],_0x7f85x8)})}},queuecallerunmanaged:function(_0x7f85x6){return function(_0x7f85x7){var _0x7f85xa={queuecallerabandon:false,queuecallerabandonAt:null,queuecallerexit:true,queuecallerexitAt:_0x7f85x6[_0x914c[12]],connectedlinenum:null,connectedlinename:null,queuecallerleaveAt:_0x7f85x6[_0x914c[12]],queuecallerexitreason:_0x7f85x6[_0x914c[23]]};if(_0x7f85x6[_0x914c[34]]){_0x7f85xa[_0x914c[38]]= _0x7f85x6[_0x914c[12]];return ReportQueue[_0x914c[34]](_[_0x914c[32]](_0x7f85x6,_0x7f85xa))[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[39],_0x7f85x8)})}else {return ReportQueue[_0x914c[17]]({where:{uniqueid:_0x7f85x6[_0x914c[15]],queuecallerexitreason:null},order:_0x914c[16]})[_0x914c[14]](function(_0x7f85x9){if(_0x7f85x9){return _0x7f85x9[_0x914c[13]](_0x7f85xa)}})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[40],_0x7f85x8)})}}},queuecallerleave:function(_0x7f85x6){return function(_0x7f85x7){var _0x7f85xb={queuecallerleaveAt:_0x7f85x6[_0x914c[12]]};return ReportQueue[_0x914c[17]]({where:{uniqueid:_0x7f85x6[_0x914c[15]],queuecallerleaveAt:null},order:_0x914c[16]})[_0x914c[14]](function(_0x7f85x9){if(_0x7f85x9){return _0x7f85x9[_0x914c[13]](_0x7f85xb)}})[_0x914c[11]](function(_0x7f85x8){logger[_0x914c[10]](_0x914c[41],_0x7f85x8)})}}}}
\ No newline at end of file
+var _0xbb4d=["\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"];_0xbb4d[0];var BPromise=require(_0xbb4d[1]);var moment=require(_0xbb4d[2]);var _=require(_0xbb4d[3]);var ReportQueue=require(_0xbb4d[5])[_0xbb4d[4]];var logger=require(_0xbb4d[7])(_0xbb4d[6]);module[_0xbb4d[8]]= function(){return {agentcomplete:function(_0x480bx6){return function(_0x480bx7){return ReportQueue[_0xbb4d[17]]({where:{uniqueid:_0x480bx6[_0xbb4d[15]],queuecallerleaveAt:{$ne:null},transfer:false},order:_0xbb4d[16]})[_0xbb4d[14]](function(_0x480bx9){if(_0x480bx9){return _0x480bx9[_0xbb4d[13]]({queuecallercomplete:true,queuecallercompleteAt:_0x480bx6[_0xbb4d[12]]})}})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[9],_0x480bx8)})}},queuetransfer:function(_0x480bx6){return function(_0x480bx7){return ReportQueue[_0xbb4d[17]]({where:{uniqueid:_0x480bx6[_0xbb4d[15]]},order:_0xbb4d[16]})[_0xbb4d[14]](function(_0x480bx9){if(_0x480bx9){var _0x480bxa={transfer:_0x480bx6[_0xbb4d[19]],transfertype:_0x480bx6[_0xbb4d[20]],transferuniqueid:_0x480bx6[_0xbb4d[21]],transferextension:_0x480bx6[_0xbb4d[22]],queuecallerexitreason:_0x480bx6[_0xbb4d[23]]};if(!_0x480bx9[_0xbb4d[24]]){_0x480bxa[_0xbb4d[24]]= true;_0x480bxa[_0xbb4d[25]]= _0x480bx6[_0xbb4d[12]]};if(!_0x480bx9[_0xbb4d[26]]){_0x480bxa[_0xbb4d[26]]= _0x480bx6[_0xbb4d[12]]};return _0x480bx9[_0xbb4d[13]](_0x480bxa)}})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[18],_0x480bx8)})}},agentconnect:function(_0x480bx6){return function(_0x480bx7){return ReportQueue[_0xbb4d[17]]({where:{uniqueid:_0x480bx6[_0xbb4d[15]]},order:_0xbb4d[16]})[_0xbb4d[14]](function(_0x480bx9){if(_0x480bx9){return _0x480bx9[_0xbb4d[13]]({holdtime:_0x480bx6[_0xbb4d[28]],assigned:true,lastAssignedTo:_0x480bx6[_0xbb4d[29]],connectedlinenum:_0x480bx6[_0xbb4d[30]],connectedlinename:_0x480bx6[_0xbb4d[31]]})}})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[27],_0x480bx8)})}},queuecallerjoin:function(_0x480bx6){return function(_0x480bx7){_[_0xbb4d[32]](_0x480bx6,{queuecallerjoinAt:_0x480bx6[_0xbb4d[12]]});return ReportQueue[_0xbb4d[34]](_0x480bx6,{raw:true})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[33],_0x480bx8)})}},queuecallerabandon:function(_0x480bx6){return function(_0x480bx7){return ReportQueue[_0xbb4d[17]]({where:{uniqueid:_0x480bx6[_0xbb4d[15]],queuecallercomplete:false,$or:{queuecallerexitreason:null,queuecallerexit:false}},order:_0xbb4d[16]})[_0xbb4d[14]](function(_0x480bx9){if(_0x480bx9){return _0x480bx9[_0xbb4d[13]]({queuecallerabandon:true,queuecallerabandonAt:_0x480bx6[_0xbb4d[12]],queuecallerleaveAt:_0x480bx6[_0xbb4d[12]],queuecallerexit:false,queuecallerexitAt:null,queuecallerexitreason:null,connectedlinenum:null,connectedlinename:null,originalposition:_0x480bx6[_0xbb4d[36]],position:_0x480bx6[_0xbb4d[37]],holdtime:_0x480bx6[_0xbb4d[28]]})}})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[35],_0x480bx8)})}},queuecallerunmanaged:function(_0x480bx6){return function(_0x480bx7){var _0x480bxa={queuecallerabandon:false,queuecallerabandonAt:null,queuecallerexit:true,queuecallerexitAt:_0x480bx6[_0xbb4d[12]],connectedlinenum:null,connectedlinename:null,queuecallerleaveAt:_0x480bx6[_0xbb4d[12]],queuecallerexitreason:_0x480bx6[_0xbb4d[23]]};if(_0x480bx6[_0xbb4d[34]]){_0x480bxa[_0xbb4d[38]]= _0x480bx6[_0xbb4d[12]];return ReportQueue[_0xbb4d[34]](_[_0xbb4d[32]](_0x480bx6,_0x480bxa))[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[39],_0x480bx8)})}else {return ReportQueue[_0xbb4d[17]]({where:{uniqueid:_0x480bx6[_0xbb4d[15]],queuecallerexitreason:null},order:_0xbb4d[16]})[_0xbb4d[14]](function(_0x480bx9){if(_0x480bx9){return _0x480bx9[_0xbb4d[13]](_0x480bxa)}})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[40],_0x480bx8)})}}},queuecallerleave:function(_0x480bx6){return function(_0x480bx7){var _0x480bxb={queuecallerleaveAt:_0x480bx6[_0xbb4d[12]]};return ReportQueue[_0xbb4d[17]]({where:{uniqueid:_0x480bx6[_0xbb4d[15]],queuecallerleaveAt:null},order:_0xbb4d[16]})[_0xbb4d[14]](function(_0x480bx9){if(_0x480bx9){return _0x480bx9[_0xbb4d[13]](_0x480bxb)}})[_0xbb4d[11]](function(_0x480bx8){logger[_0xbb4d[10]](_0xbb4d[41],_0x480bx8)})}}}}
\ No newline at end of file