Built motion from commit a486b36.|1.0.4
[motion.git] / server / config / ami / db / voiceQueueReport.js
index 5c102a5..2d4b34b 100644 (file)
@@ -1 +1 @@
-var _0x2308=["\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","\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","\x75\x6E\x69\x71\x75\x65\x69\x64","\x6C\x6F\x67","\x74\x68\x65\x6E","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x75\x70\x64\x61\x74\x65","\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","\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","\x6D\x65\x72\x67\x65","\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\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x72\x65\x73\x6F\x6C\x76\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","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x76\x61\x6C\x75\x65","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x66\x69\x6E\x64\x4F\x6E\x65"];_0x2308[0];var BPromise=require(_0x2308[1]);var moment=require(_0x2308[2]);var _=require(_0x2308[3]);var ReportQueue=require(_0x2308[5])[_0x2308[4]];module[_0x2308[6]]= function(){return {agentcomplete:function(_0x3d6ex5){return function(_0x3d6ex6){return ReportQueue[_0x2308[15]]({queuecallercomplete:true,queuecallercompleteAt:moment()[_0x2308[14]](_0x2308[13])},{where:{uniqueid:_0x3d6ex5[_0x2308[10]]},raw:true,individualHooks:true})[_0x2308[12]](function(){console[_0x2308[11]](_0x2308[7],_0x3d6ex5[_0x2308[10]])})[_0x2308[9]](function(_0x3d6ex7){console[_0x2308[8]](_0x2308[7],_0x3d6ex7)})}},agentconnect:function(_0x3d6ex5){return function(_0x3d6ex6){return ReportQueue[_0x2308[15]]({queuecallerleaveAt:moment()[_0x2308[14]](_0x2308[13]),holdtime:_0x3d6ex5[_0x2308[17]],assigned:true,lastAssignedTo:_0x3d6ex5[_0x2308[18]]},{where:{uniqueid:_0x3d6ex5[_0x2308[10]]},individualHooks:true})[_0x2308[12]](function(){console[_0x2308[11]](_0x2308[16],_0x3d6ex5[_0x2308[10]])})[_0x2308[9]](function(_0x3d6ex7){console[_0x2308[8]](_0x2308[16],_0x3d6ex7)})}},queuecallerjoin:function(_0x3d6ex5){return function(_0x3d6ex6){return ReportQueue[_0x2308[21]](_[_0x2308[20]](_0x3d6ex5,{queuecallerjoinAt:moment()[_0x2308[14]](_0x2308[13])}),{raw:true})[_0x2308[9]](function(_0x3d6ex7){console[_0x2308[8]](_0x2308[19],_0x3d6ex7)})}},queuecallerabandon:function(_0x3d6ex5){return function(_0x3d6ex6){var _0x3d6ex8=moment()[_0x2308[14]](_0x2308[13]);return ReportQueue[_0x2308[15]]({queuecallerabandon:true,queuecallerabandonAt:_0x3d6ex8,queuecallerleaveAt:_0x3d6ex8,originalposition:_0x3d6ex5[_0x2308[23]],position:_0x3d6ex5[_0x2308[24]],holdtime:_0x3d6ex5[_0x2308[17]]},{where:{uniqueid:_0x3d6ex5[_0x2308[10]],queuecallerexit:false},individualHooks:true})[_0x2308[12]](function(){console[_0x2308[11]](_0x2308[22],_0x3d6ex5[_0x2308[10]])})[_0x2308[9]](function(_0x3d6ex7){console[_0x2308[8]](_0x2308[22],_0x3d6ex7)})}},queuestatus:function(_0x3d6ex5){return function(_0x3d6ex6){if(!_0x3d6ex5[_0x2308[27]][_0x2308[26]](_0x2308[25])){return BPromise[_0x2308[28]]()};return ReportQueue[_0x2308[33]]({where:{uniqueid:_0x3d6ex5[_0x2308[10]]}})[_0x2308[12]](function(_0x3d6ex9){if(_0x3d6ex9){return _0x3d6ex9[_0x2308[32]]({queuecallerabandon:false,queuecallerabandonAt:null,queuecallerexit:true,queuecallerexitAt:moment()[_0x2308[14]](_0x2308[13]),queuecallerexitreason:_0x3d6ex5[_0x2308[31]][_0x2308[30]]()})}})[_0x2308[9]](function(_0x3d6ex7){console[_0x2308[8]](_0x2308[29],_0x3d6ex7)})}}}}
\ No newline at end of file
+var _0x814e=["\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","\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","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\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\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","\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","\x6D\x65\x72\x67\x65","\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\x73\x74\x61\x74\x75\x73","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x72\x69\x61\x62\x6C\x65","\x72\x65\x73\x6F\x6C\x76\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","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x76\x61\x6C\x75\x65"];_0x814e[0];var BPromise=require(_0x814e[1]);var moment=require(_0x814e[2]);var _=require(_0x814e[3]);var ReportQueue=require(_0x814e[5])[_0x814e[4]];module[_0x814e[6]]= function(){return {agentcomplete:function(_0x7790x5){return function(_0x7790x6){return ReportQueue[_0x814e[16]]({where:{uniqueid:_0x7790x5[_0x814e[14]]},order:_0x814e[15]})[_0x814e[13]](function(_0x7790x8){if(_0x7790x8){return _0x7790x8[_0x814e[12]]({queuecallercomplete:true,queuecallercompleteAt:moment()[_0x814e[11]](_0x814e[10])})}})[_0x814e[9]](function(_0x7790x7){console[_0x814e[8]](_0x814e[7],_0x7790x7)})}},agentconnect:function(_0x7790x5){return function(_0x7790x6){return ReportQueue[_0x814e[16]]({where:{uniqueid:_0x7790x5[_0x814e[14]]},order:_0x814e[15]})[_0x814e[13]](function(_0x7790x8){if(_0x7790x8){return _0x7790x8[_0x814e[12]]({queuecallerleaveAt:moment()[_0x814e[11]](_0x814e[10]),holdtime:_0x7790x5[_0x814e[18]],assigned:true,lastAssignedTo:_0x7790x5[_0x814e[19]]})}})[_0x814e[9]](function(_0x7790x7){console[_0x814e[8]](_0x814e[17],_0x7790x7)})}},queuecallerjoin:function(_0x7790x5){return function(_0x7790x6){return ReportQueue[_0x814e[22]](_[_0x814e[21]](_0x7790x5,{queuecallerjoinAt:moment()[_0x814e[11]](_0x814e[10])}),{raw:true})[_0x814e[9]](function(_0x7790x7){console[_0x814e[8]](_0x814e[20],_0x7790x7)})}},queuecallerabandon:function(_0x7790x5){return function(_0x7790x6){var _0x7790x9=moment()[_0x814e[11]](_0x814e[10]);return ReportQueue[_0x814e[16]]({where:{uniqueid:_0x7790x5[_0x814e[14]],queuecallerexit:false},order:_0x814e[15]})[_0x814e[13]](function(_0x7790x8){if(_0x7790x8){return _0x7790x8[_0x814e[12]]({queuecallerabandon:true,queuecallerabandonAt:_0x7790x9,queuecallerleaveAt:_0x7790x9,originalposition:_0x7790x5[_0x814e[24]],position:_0x7790x5[_0x814e[25]],holdtime:_0x7790x5[_0x814e[18]]})}})[_0x814e[9]](function(_0x7790x7){console[_0x814e[8]](_0x814e[23],_0x7790x7)})}},queuestatus:function(_0x7790x5){return function(_0x7790x6){if(!_0x7790x5[_0x814e[28]][_0x814e[27]](_0x814e[26])){return BPromise[_0x814e[29]]()};return ReportQueue[_0x814e[16]]({where:{uniqueid:_0x7790x5[_0x814e[14]]},order:_0x814e[15]})[_0x814e[13]](function(_0x7790x8){if(_0x7790x8){var _0x7790x9=moment()[_0x814e[11]](_0x814e[10]);return _0x7790x8[_0x814e[12]]({queuecallerabandon:false,queuecallerabandonAt:null,queuecallerexit:true,queuecallerexitAt:_0x7790x9,queuecallerleaveAt:_0x7790x9,queuecallerexitreason:_0x7790x5[_0x814e[32]][_0x814e[31]]()})}})[_0x814e[9]](function(_0x7790x7){console[_0x814e[8]](_0x814e[30],_0x7790x7)})}}}}
\ No newline at end of file