Built motion from commit b33b832.|1.0.17
[motion.git] / server / config / ami / db / voiceAgentReport.js
index 98910e4..1a21f80 100644 (file)
@@ -1 +1 @@
-var _0x942f=["\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","\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","\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\x70\x64\x61\x74\x65","\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"];_0x942f[0];var BPromise=require(_0x942f[1]);var moment=require(_0x942f[2]);var _=require(_0x942f[3]);var ReportAgent=require(_0x942f[5])[_0x942f[4]];module[_0x942f[6]]= function(){return {agentcalled:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[14]](_[_0x942f[13]](_0xa3e1x5,{lastevent:_0x942f[10],agentcalledAt:moment()[_0x942f[12]](_0x942f[11])}))[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[7],_0xa3e1x7)})}},agentconnect:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[22]]({where:{uniqueid:_0xa3e1x5[_0x942f[20]],destuniqueid:_0xa3e1x5[_0x942f[21]]}})[_0x942f[19]](function(_0xa3e1x8){if(_0xa3e1x8){return _0xa3e1x8[_0x942f[18]]({lastevent:_0x942f[16],agentconnectAt:moment()[_0x942f[12]](_0x942f[11]),holdtime:_0xa3e1x5[_0x942f[17]]})}})[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[15],_0xa3e1x7)})}},answered_elsewhere:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[22]]({where:{uniqueid:_0xa3e1x5[_0x942f[20]],destuniqueid:{$ne:_0xa3e1x5[_0x942f[21]]},reason:null}})[_0x942f[19]](function(_0xa3e1x8){if(_0xa3e1x8){return _0xa3e1x8[_0x942f[18]]({lastevent:_0x942f[24],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x942f[12]](_0x942f[11]),reason:_0x942f[24],answeredelsewheredestinationuniqueid:_0xa3e1x5[_0x942f[21]],answeredelsewheremembername:_0xa3e1x5[_0x942f[25]]})}})[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[23],_0xa3e1x7)})}},agentcomplete:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[22]]({where:{uniqueid:_0xa3e1x5[_0x942f[20]],destuniqueid:_0xa3e1x5[_0x942f[21]]}})[_0x942f[19]](function(_0xa3e1x8){if(_0xa3e1x8){return _0xa3e1x8[_0x942f[18]]({lastevent:_0x942f[27],agentcomplete:true,agentcompleteAt:moment()[_0x942f[12]](_0x942f[11]),talktime:_0xa3e1x5[_0x942f[28]],reason:_0xa3e1x5[_0x942f[29]]})}})[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[26],_0xa3e1x7)})}},agentringnoanswer:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[22]]({where:{uniqueid:_0xa3e1x5[_0x942f[20]],destuniqueid:_0xa3e1x5[_0x942f[21]]}})[_0x942f[19]](function(_0xa3e1x8){if(_0xa3e1x8){return _0xa3e1x8[_0x942f[18]]({lastevent:_0x942f[31],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x942f[12]](_0x942f[11]),reason:_0x942f[31]})}})[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[30],_0xa3e1x7)})}},queuecallerabandon:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[34]]({lastevent:_0x942f[33],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x942f[12]](_0x942f[11]),reason:_0x942f[33]},{where:{uniqueid:_0xa3e1x5[_0x942f[20]],reason:null},individualHooks:true})[_0x942f[19]](function(_0xa3e1x9){return {reportAgent:_0xa3e1x9,reportQueue:_0xa3e1x6}})[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[32],_0xa3e1x7)})}},queuecallerunmanaged:function(_0xa3e1x5){return function(_0xa3e1x6){return ReportAgent[_0x942f[34]]({lastevent:_0x942f[35],agentringnoanswer:true,agentringnoanswerAt:moment()[_0x942f[12]](_0x942f[11]),reason:_0xa3e1x5[_0x942f[36]]},{where:{uniqueid:_0xa3e1x5[_0x942f[20]],reason:null},individualHooks:true})[_0x942f[9]](function(_0xa3e1x7){console[_0x942f[8]](_0x942f[32],_0xa3e1x7)})}}}}
\ No newline at end of file
+var _0x6c3c=["\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"];_0x6c3c[0];var BPromise=require(_0x6c3c[1]);var moment=require(_0x6c3c[2]);var _=require(_0x6c3c[3]);var ReportAgent=require(_0x6c3c[5])[_0x6c3c[4]];module[_0x6c3c[6]]= function(){return {agentcalled:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[13]](_[_0x6c3c[12]](_0xf640x5,{lastevent:_0x6c3c[10],agentcalledAt:_0xf640x5[_0x6c3c[11]]}))[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[7],_0xf640x7)})}},agentconnect:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[21]]({where:{uniqueid:_0xf640x5[_0x6c3c[19]],destuniqueid:_0xf640x5[_0x6c3c[20]]}})[_0x6c3c[18]](function(_0xf640x8){if(_0xf640x8){return _0xf640x8[_0x6c3c[17]]({lastevent:_0x6c3c[15],agentconnectAt:_0xf640x5[_0x6c3c[11]],holdtime:_0xf640x5[_0x6c3c[16]]})}})[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[14],_0xf640x7)})}},answered_elsewhere:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[25]]({lastevent:_0x6c3c[23],agentringnoanswer:true,agentringnoanswerAt:_0xf640x5[_0x6c3c[11]],reason:_0x6c3c[23],answeredelsewheredestinationuniqueid:_0xf640x5[_0x6c3c[20]],answeredelsewheremembername:_0xf640x5[_0x6c3c[24]]},{where:{uniqueid:_0xf640x5[_0x6c3c[19]],destuniqueid:{$ne:_0xf640x5[_0x6c3c[20]]},reason:null}})[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[22],_0xf640x7)})}},agentcomplete:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[21]]({where:{uniqueid:_0xf640x5[_0x6c3c[19]],destuniqueid:_0xf640x5[_0x6c3c[20]]}})[_0x6c3c[18]](function(_0xf640x8){if(_0xf640x8){return _0xf640x8[_0x6c3c[17]]({lastevent:_0x6c3c[27],agentcomplete:true,agentcompleteAt:_0xf640x5[_0x6c3c[11]],talktime:_0xf640x5[_0x6c3c[28]],reason:_0xf640x5[_0x6c3c[29]]})}})[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[26],_0xf640x7)})}},agentringnoanswer:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[21]]({where:{uniqueid:_0xf640x5[_0x6c3c[19]],destuniqueid:_0xf640x5[_0x6c3c[20]]}})[_0x6c3c[18]](function(_0xf640x8){if(_0xf640x8){return _0xf640x8[_0x6c3c[17]]({lastevent:_0xf640x5[_0x6c3c[31]],reason:_0xf640x5[_0x6c3c[31]],agentringnoanswer:true,agentringnoanswerAt:_0xf640x5[_0x6c3c[11]]})}})[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[30],_0xf640x7)})}},queuecallerabandon:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[25]]({lastevent:_0x6c3c[33],agentringnoanswer:true,agentringnoanswerAt:_0xf640x5[_0x6c3c[11]],reason:_0x6c3c[33]},{where:{uniqueid:_0xf640x5[_0x6c3c[19]],reason:null},individualHooks:true})[_0x6c3c[18]](function(_0xf640x9){return {reportAgent:_0xf640x9,reportQueue:_0xf640x6}})[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[32],_0xf640x7)})}},queuecallerunmanaged:function(_0xf640x5){return function(_0xf640x6){return ReportAgent[_0x6c3c[25]]({lastevent:_0x6c3c[34],agentringnoanswer:true,agentringnoanswerAt:_0xf640x5[_0x6c3c[11]],reason:_0xf640x5[_0x6c3c[35]]},{where:{uniqueid:_0xf640x5[_0x6c3c[19]],reason:null},individualHooks:true})[_0x6c3c[9]](function(_0xf640x7){console[_0x6c3c[8]](_0x6c3c[32],_0xf640x7)})}}}}
\ No newline at end of file