Built motion from commit b6cf875.|1.0.15
[motion.git] / server / config / ami / db / voiceAgentReport.js
index 4974d78..4d95586 100644 (file)
@@ -1 +1 @@
-var _0x27e6=["\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\x41\x67\x65\x6E\x74","\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\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x63\x61\x6C\x6C\x65\x64","\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","\x6D\x65\x72\x67\x65","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\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","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x72\x65\x61\x73\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x65\x6A\x65\x63\x74\x65\x64","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E"];_0x27e6[0];var BPromise=require(_0x27e6[1]);var moment=require(_0x27e6[2]);var _=require(_0x27e6[3]);var ReportAgent=require(_0x27e6[5])[_0x27e6[4]];module[_0x27e6[6]]= function(){return {agentcalled:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[14]](_[_0x27e6[13]](_0x29e4x5,{lastevent:_0x27e6[10],agentcalledAt:moment()[_0x27e6[12]](_0x27e6[11])}))[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[7],_0x29e4x7)})}},agentconnect:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[22]]({where:{uniqueid:_0x29e4x5[_0x27e6[20]],destuniqueid:_0x29e4x5[_0x27e6[21]]}})[_0x27e6[19]](function(_0x29e4x8){if(_0x29e4x8){return _0x29e4x8[_0x27e6[18]]({lastevent:_0x27e6[16],agentconnectAt:moment()[_0x27e6[12]](_0x27e6[11]),holdtime:_0x29e4x5[_0x27e6[17]]})}})[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[15],_0x29e4x7)})}},answered_elsewhere:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[26]]({lastevent:_0x27e6[24],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x27e6[12]](_0x27e6[11]),reason:_0x27e6[24],answeredelsewheredestinationuniqueid:_0x29e4x5[_0x27e6[21]],answeredelsewheremembername:_0x29e4x5[_0x27e6[25]]},{where:{uniqueid:_0x29e4x5[_0x27e6[20]],destuniqueid:{$ne:_0x29e4x5[_0x27e6[21]]},reason:null}})[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[23],_0x29e4x7)})}},agentcomplete:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[22]]({where:{uniqueid:_0x29e4x5[_0x27e6[20]],destuniqueid:_0x29e4x5[_0x27e6[21]]}})[_0x27e6[19]](function(_0x29e4x8){if(_0x29e4x8){return _0x29e4x8[_0x27e6[18]]({lastevent:_0x27e6[28],agentcomplete:true,agentcompleteAt:moment()[_0x27e6[12]](_0x27e6[11]),talktime:_0x29e4x5[_0x27e6[29]],reason:_0x29e4x5[_0x27e6[30]]})}})[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[27],_0x29e4x7)})}},agentringnoanswer:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[22]]({where:{uniqueid:_0x29e4x5[_0x27e6[20]],destuniqueid:_0x29e4x5[_0x27e6[21]]}})[_0x27e6[19]](function(_0x29e4x8){if(_0x29e4x8){return _0x29e4x8[_0x27e6[18]]({lastevent:_0x27e6[32],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x27e6[12]](_0x27e6[11]),reason:_0x27e6[33]})}})[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[31],_0x29e4x7)})}},queuecallerabandon:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[26]]({lastevent:_0x27e6[35],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x27e6[12]](_0x27e6[11]),reason:_0x27e6[35]},{where:{uniqueid:_0x29e4x5[_0x27e6[20]],reason:null},individualHooks:true})[_0x27e6[19]](function(_0x29e4x9){return {reportAgent:_0x29e4x9,reportQueue:_0x29e4x6}})[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[34],_0x29e4x7)})}},queuecallerunmanaged:function(_0x29e4x5){return function(_0x29e4x6){return ReportAgent[_0x27e6[26]]({lastevent:_0x27e6[36],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x27e6[12]](_0x27e6[11]),reason:_0x29e4x5[_0x27e6[37]]},{where:{uniqueid:_0x29e4x5[_0x27e6[20]],reason:null},individualHooks:true})[_0x27e6[9]](function(_0x29e4x7){console[_0x27e6[8]](_0x27e6[34],_0x29e4x7)})}}}}
\ No newline at end of file
+var _0x500d=["\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\x41\x67\x65\x6E\x74","\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\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x63\x61\x6C\x6C\x65\x64","\x6E\x6F\x77","\x6D\x65\x72\x67\x65","\x63\x72\x65\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74","\x63\x6F\x6E\x6E\x65\x63\x74","\x68\x6F\x6C\x64\x74\x69\x6D\x65","\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","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x70\x64\x61\x74\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x74\x61\x6C\x6B\x74\x69\x6D\x65","\x72\x65\x61\x73\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x20\x2D\x20\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x75\x6E\x6D\x61\x6E\x61\x67\x65\x64","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74\x72\x65\x61\x73\x6F\x6E"];_0x500d[0];var BPromise=require(_0x500d[1]);var moment=require(_0x500d[2]);var _=require(_0x500d[3]);var ReportAgent=require(_0x500d[5])[_0x500d[4]];module[_0x500d[6]]= function(){return {agentcalled:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[13]](_[_0x500d[12]](_0xa5f7x5,{lastevent:_0x500d[10],agentcalledAt:_0xa5f7x5[_0x500d[11]]}))[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[7],_0xa5f7x7)})}},agentconnect:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[21]]({where:{uniqueid:_0xa5f7x5[_0x500d[19]],destuniqueid:_0xa5f7x5[_0x500d[20]]}})[_0x500d[18]](function(_0xa5f7x8){if(_0xa5f7x8){return _0xa5f7x8[_0x500d[17]]({lastevent:_0x500d[15],agentconnectAt:_0xa5f7x5[_0x500d[11]],holdtime:_0xa5f7x5[_0x500d[16]]})}})[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[14],_0xa5f7x7)})}},answered_elsewhere:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[25]]({lastevent:_0x500d[23],agentringnoanswer:true,agentringnoanswerAt:_0xa5f7x5[_0x500d[11]],reason:_0x500d[23],answeredelsewheredestinationuniqueid:_0xa5f7x5[_0x500d[20]],answeredelsewheremembername:_0xa5f7x5[_0x500d[24]]},{where:{uniqueid:_0xa5f7x5[_0x500d[19]],destuniqueid:{$ne:_0xa5f7x5[_0x500d[20]]},reason:null}})[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[22],_0xa5f7x7)})}},agentcomplete:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[21]]({where:{uniqueid:_0xa5f7x5[_0x500d[19]],destuniqueid:_0xa5f7x5[_0x500d[20]]}})[_0x500d[18]](function(_0xa5f7x8){if(_0xa5f7x8){return _0xa5f7x8[_0x500d[17]]({lastevent:_0x500d[27],agentcomplete:true,agentcompleteAt:_0xa5f7x5[_0x500d[11]],talktime:_0xa5f7x5[_0x500d[28]],reason:_0xa5f7x5[_0x500d[29]]})}})[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[26],_0xa5f7x7)})}},agentringnoanswer:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[21]]({where:{uniqueid:_0xa5f7x5[_0x500d[19]],destuniqueid:_0xa5f7x5[_0x500d[20]]}})[_0x500d[18]](function(_0xa5f7x8){if(_0xa5f7x8){return _0xa5f7x8[_0x500d[17]]({lastevent:_0xa5f7x5[_0x500d[31]],reason:_0xa5f7x5[_0x500d[31]],agentringnoanswer:true,agentringnoanswerAt:_0xa5f7x5[_0x500d[11]]})}})[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[30],_0xa5f7x7)})}},queuecallerabandon:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[25]]({lastevent:_0x500d[33],agentringnoanswer:true,agentringnoanswerAt:_0xa5f7x5[_0x500d[11]],reason:_0x500d[33]},{where:{uniqueid:_0xa5f7x5[_0x500d[19]],reason:null},individualHooks:true})[_0x500d[18]](function(_0xa5f7x9){return {reportAgent:_0xa5f7x9,reportQueue:_0xa5f7x6}})[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[32],_0xa5f7x7)})}},queuecallerunmanaged:function(_0xa5f7x5){return function(_0xa5f7x6){return ReportAgent[_0x500d[25]]({lastevent:_0x500d[34],agentringnoanswer:true,agentringnoanswerAt:_0xa5f7x5[_0x500d[11]],reason:_0xa5f7x5[_0x500d[35]]},{where:{uniqueid:_0xa5f7x5[_0x500d[19]],reason:null},individualHooks:true})[_0x500d[9]](function(_0xa5f7x7){console[_0x500d[8]](_0x500d[32],_0xa5f7x7)})}}}}
\ No newline at end of file