Built motion from commit 2e74e5e.|0.0.138
[motion.git] / server / config / ami / agent.js
index 4e25d80..5cf8e25 100644 (file)
@@ -1 +1 @@
-var _0xeb31=["\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x67\x65\x6E\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x63\x61\x6C\x6C\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x41\x74","\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","\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70\x41\x74","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x65\x6A\x65\x63\x74\x65\x64","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72\x41\x74","\x72\x65\x61\x73\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x62\x65\x67\x69\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xeb31[0]);var ReportAgent=require(_0xeb31[2])[_0xeb31[1]];function Agent(){console[_0xeb31[4]](_0xeb31[3])}Agent[_0xeb31[6]][_0xeb31[5]]=function(_0x945fx4){_0x945fx4[_0xeb31[7]]=_0xeb31[5];_0x945fx4[_0xeb31[8]]=moment()[_0xeb31[10]](_0xeb31[9]);return createAgent(_0x945fx4)};Agent[_0xeb31[6]][_0xeb31[11]]=function(_0x945fx4){_0x945fx4[_0xeb31[7]]=_0xeb31[11];_0x945fx4[_0xeb31[12]]=moment()[_0xeb31[10]](_0xeb31[9]);updateAgents(_0x945fx4);updateAgents({agentringnoanswer:true,agentringnoanswerAt:moment()[_0xeb31[10]](_0xeb31[9]),reason:_0xeb31[13],lastevent:_0xeb31[13]},{uniqueid:_0x945fx4[_0xeb31[14]],destuniqueid:{$ne:_0x945fx4[_0xeb31[15]]},reason:null})};Agent[_0xeb31[6]][_0xeb31[16]]=function(_0x945fx4){_0x945fx4[_0xeb31[7]]=_0xeb31[16];_0x945fx4[_0xeb31[17]]=true;_0x945fx4[_0xeb31[18]]=moment()[_0xeb31[10]](_0xeb31[9]);return updateAgents(_0x945fx4)};Agent[_0xeb31[6]][_0xeb31[19]]=function(_0x945fx4){_0x945fx4[_0xeb31[7]]=_0xeb31[19];_0x945fx4[_0xeb31[20]]=true;_0x945fx4[_0xeb31[21]]=moment()[_0xeb31[10]](_0xeb31[9]);return updateAgents(_0x945fx4)};Agent[_0xeb31[6]][_0xeb31[22]]=function(_0x945fx4){_0x945fx4[_0xeb31[7]]=_0xeb31[23];_0x945fx4[_0xeb31[24]]=true;_0x945fx4[_0xeb31[25]]=moment()[_0xeb31[10]](_0xeb31[9]);_0x945fx4[_0xeb31[26]]=_0xeb31[23];return updateAgents(_0x945fx4)};Agent[_0xeb31[6]][_0xeb31[27]]=function(_0x945fx4){_0x945fx4[_0xeb31[7]]=_0xeb31[28];_0x945fx4[_0xeb31[24]]=true;_0x945fx4[_0xeb31[25]]=moment()[_0xeb31[10]](_0xeb31[9]);_0x945fx4[_0xeb31[26]]=_0xeb31[28];return updateAgents(_0x945fx4,{uniqueid:_0x945fx4[_0xeb31[14]],reason:null})};function createAgent(_0x945fx4){return ReportAgent[_0xeb31[34]](_0x945fx4)[_0xeb31[33]](function(_0x945fx7){console[_0xeb31[4]](_0xeb31[32])})[_0xeb31[31]](function(_0x945fx6){console[_0xeb31[30]](_0xeb31[29]+_0x945fx6)})}function updateAgents(_0x945fx4,_0x945fx9){return ReportAgent[_0xeb31[37]](_0x945fx4,{where:(_0x945fx9)?_0x945fx9:{uniqueid:_0x945fx4[_0xeb31[14]],destuniqueid:_0x945fx4[_0xeb31[15]]},individualHooks:true})[_0xeb31[33]](function(_0x945fx7){console[_0xeb31[4]](_0xeb31[36])})[_0xeb31[31]](function(_0x945fx6){console[_0xeb31[30]](_0xeb31[35]+_0x945fx6)})}module[_0xeb31[38]]=Agent
\ No newline at end of file
+var _0xe40e=["\x6D\x6F\x6D\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x67\x65\x6E\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x63\x61\x6C\x6C\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x61\x67\x65\x6E\x74\x63\x61\x6C\x6C\x65\x64\x41\x74","\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","\x63\x6F\x6E\x6E\x65\x63\x74","\x61\x67\x65\x6E\x74\x63\x6F\x6E\x6E\x65\x63\x74\x41\x74","\x61\x6E\x73\x77\x65\x72\x65\x64\x5F\x65\x6C\x73\x65\x77\x68\x65\x72\x65","\x64\x65\x73\x74\x75\x6E\x69\x71\x75\x65\x69\x64","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x61\x67\x65\x6E\x74\x63\x6F\x6D\x70\x6C\x65\x74\x65\x41\x74","\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70","\x61\x67\x65\x6E\x74\x64\x75\x6D\x70\x41\x74","\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x72\x65\x6A\x65\x63\x74\x65\x64","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72","\x61\x67\x65\x6E\x74\x72\x69\x6E\x67\x6E\x6F\x61\x6E\x73\x77\x65\x72\x41\x74","\x72\x65\x61\x73\x6F\x6E","\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x61\x62\x61\x6E\x64\x6F\x6E\x65\x64","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x5B\x72\x65\x70\x6F\x72\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x62\x65\x67\x69\x6E\x20\x63\x72\x65\x61\x74\x65\x64","\x74\x68\x65\x6E","\x63\x72\x65\x61\x74\x65","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74\x20\x65\x72\x72\x6F\x72\x3A\x20","\x5B\x61\x67\x65\x6E\x74\x5D\x20\x61\x67\x65\x6E\x74","\x75\x70\x64\x61\x74\x65","\x65\x78\x70\x6F\x72\x74\x73"];var moment=require(_0xe40e[0]);var ReportAgent=require(_0xe40e[2])[_0xe40e[1]];function Agent(){console[_0xe40e[4]](_0xe40e[3])}Agent[_0xe40e[6]][_0xe40e[5]]= function(_0xe005x4){_0xe005x4[_0xe40e[7]]= _0xe40e[5];_0xe005x4[_0xe40e[8]]= moment()[_0xe40e[10]](_0xe40e[9]);return createAgent(_0xe005x4)};Agent[_0xe40e[6]][_0xe40e[11]]= function(_0xe005x4){_0xe005x4[_0xe40e[7]]= _0xe40e[11];_0xe005x4[_0xe40e[12]]= moment()[_0xe40e[10]](_0xe40e[9]);updateAgents(_0xe005x4);updateAgents({agentringnoanswer:true,agentringnoanswerAt:moment()[_0xe40e[10]](_0xe40e[9]),reason:_0xe40e[13],lastevent:_0xe40e[13],answeredelsewheredestinationuniqueid:_0xe005x4[_0xe40e[14]],answeredelsewheremembername:_0xe005x4[_0xe40e[15]]},{uniqueid:_0xe005x4[_0xe40e[16]],destuniqueid:{$ne:_0xe005x4[_0xe40e[14]]},reason:null})};Agent[_0xe40e[6]][_0xe40e[17]]= function(_0xe005x4){_0xe005x4[_0xe40e[7]]= _0xe40e[17];_0xe005x4[_0xe40e[18]]= true;_0xe005x4[_0xe40e[19]]= moment()[_0xe40e[10]](_0xe40e[9]);return updateAgents(_0xe005x4)};Agent[_0xe40e[6]][_0xe40e[20]]= function(_0xe005x4){_0xe005x4[_0xe40e[7]]= _0xe40e[20];_0xe005x4[_0xe40e[21]]= true;_0xe005x4[_0xe40e[22]]= moment()[_0xe40e[10]](_0xe40e[9]);return updateAgents(_0xe005x4)};Agent[_0xe40e[6]][_0xe40e[23]]= function(_0xe005x4){_0xe005x4[_0xe40e[7]]= _0xe40e[24];_0xe005x4[_0xe40e[25]]= true;_0xe005x4[_0xe40e[26]]= moment()[_0xe40e[10]](_0xe40e[9]);_0xe005x4[_0xe40e[27]]= _0xe40e[24];return updateAgents(_0xe005x4)};Agent[_0xe40e[6]][_0xe40e[28]]= function(_0xe005x4){_0xe005x4[_0xe40e[7]]= _0xe40e[29];_0xe005x4[_0xe40e[25]]= true;_0xe005x4[_0xe40e[26]]= moment()[_0xe40e[10]](_0xe40e[9]);_0xe005x4[_0xe40e[27]]= _0xe40e[29];return updateAgents(_0xe005x4,{uniqueid:_0xe005x4[_0xe40e[16]],reason:null})};function createAgent(_0xe005x4){return ReportAgent[_0xe40e[35]](_0xe005x4)[_0xe40e[34]](function(_0xe005x7){console[_0xe40e[4]](_0xe40e[33])})[_0xe40e[32]](function(_0xe005x6){console[_0xe40e[31]](_0xe40e[30]+ _0xe005x6)})}function updateAgents(_0xe005x4,_0xe005x9){return ReportAgent[_0xe40e[38]](_0xe005x4,{where:(_0xe005x9)?_0xe005x9:{uniqueid:_0xe005x4[_0xe40e[16]],destuniqueid:_0xe005x4[_0xe40e[14]]},individualHooks:true})[_0xe40e[34]](function(_0xe005x7){console[_0xe40e[4]](_0xe40e[37])})[_0xe40e[32]](function(_0xe005x6){console[_0xe40e[31]](_0xe40e[36]+ _0xe005x6)})}module[_0xe40e[39]]= Agent
\ No newline at end of file