Built motion from commit ec3ecc5.|1.0.2
[motion.git] / server / config / ami / acw.js
index f9b47cb..5b79ecc 100644 (file)
@@ -1 +1 @@
-var _0x19c5=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x63\x74\x69\x6F\x6E","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x41\x43\x57","\x66\x69\x6E\x61\x6C\x6C\x79","\x61\x63\x77","\x55\x6E\x70\x61\x75\x73\x65\x55\x73\x65\x72","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x6E\x70\x61\x75\x73\x65","\x63\x72\x65\x61\x74\x65","\x63\x68\x65\x63\x6B\x61\x63\x77","\x74\x69\x6D\x65\x6F\x75\x74\x73","\x72\x70\x63","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x64","\x6E\x61\x6D\x65","\x61\x63\x77\x54\x69\x6D\x65\x6F\x75\x74","\x70\x61\x75\x73\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x71\x75\x65\x75\x65","\x76\x6F\x69\x63\x65\x50\x61\x75\x73\x65","\x66\x69\x6E\x64\x4F\x6E\x65"];_0x19c5[0];var _=require(_0x19c5[1]);var util=require(_0x19c5[2]);var moment=require(_0x19c5[3]);var BPromise=require(_0x19c5[4]);var VoiceQueue=require(_0x19c5[6])[_0x19c5[5]];var Action=require(_0x19c5[6])[_0x19c5[7]];var Agent=require(_0x19c5[6])[_0x19c5[8]];module[_0x19c5[9]]= function(){var _0x7a96x8=_0x19c5[10];var _0x7a96x9=[];var _0x7a96xa=function(_0x7a96xb,_0x7a96xc){return Action[_0x19c5[20]]({name:_0x19c5[19],data1:_0x19c5[10]},{body:{agent:_0x7a96xb,type:_0x19c5[10]},raw:true})[_0x19c5[18]](function(){console[_0x19c5[17]](_0x19c5[12],_0x19c5[13],_0x7a96xc);return null})[_0x19c5[16]](function(_0x7a96xd){console[_0x19c5[15]](_0x19c5[12],_0x19c5[13],_0x7a96xc,JSON[_0x19c5[14]](_0x7a96xd));return null})[_0x19c5[11]](function(){if(_0x7a96x9[_0x7a96xc]){clearTimeout(_0x7a96x9[_0x7a96xc]);delete _0x7a96x9[_0x7a96xc]};return null})};return {checkacw:function(_0x7a96xc){if(_0x7a96x9[_0x7a96xc]){console[_0x19c5[17]](_0x19c5[12],_0x19c5[21],_0x19c5[22],JSON[_0x19c5[14]](_0x7a96x9));console[_0x19c5[17]](_0x19c5[12],_0x19c5[21],_0x7a96xc);clearTimeout(_0x7a96x9[_0x7a96xc]);delete _0x7a96x9[_0x7a96xc]}},agentcomplete:function(_0x7a96xe){return function(_0x7a96xf){var _0x7a96x10,_0x7a96x11;return Agent[_0x19c5[32]]({where:{name:_0x7a96xe[_0x19c5[24]]}})[_0x19c5[18]](function(_0x7a96x12){if(_0x7a96x12&& !_0x7a96x12[_0x19c5[31]]){_0x7a96x11= _0x7a96x12;return VoiceQueue[_0x19c5[32]]({where:{name:_0x7a96xe[_0x19c5[30]]},attributes:[_0x19c5[26],_0x19c5[12],_0x19c5[27]]})};return null})[_0x19c5[18]](function(_0x7a96x12){if(_0x7a96x12&& _0x7a96x12[_0x19c5[12]]){_0x7a96x10= _0x7a96x12;return Action[_0x19c5[20]]({name:_0x19c5[28],data1:_0x19c5[10],data2:_0x7a96x12[_0x19c5[27]],data3:_0x7a96xe[_0x19c5[29]],data4:_0x7a96xe[_0x19c5[30]]},{body:{agent:_0x7a96x11[_0x19c5[25]],type:_0x19c5[10]},raw:true})};return null})[_0x19c5[18]](function(_0x7a96x12){if(_0x7a96x12){_0x7a96x9[_0x7a96xe[_0x19c5[24]]]= setTimeout(function(){_0x7a96xa(_0x7a96x11[_0x19c5[25]],_0x7a96x11[_0x19c5[26]])},_0x7a96x10[_0x19c5[27]]* 1000)};return null})[_0x19c5[16]](function(_0x7a96xd){console[_0x19c5[15]](_0x19c5[23],_0x19c5[12],JSON[_0x19c5[14]](_0x7a96xd))})}}}}
\ No newline at end of file
+var _0xf2dc=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x6D\x6F\x6D\x65\x6E\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x56\x6F\x69\x63\x65\x51\x75\x65\x75\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x41\x63\x74\x69\x6F\x6E","\x55\x73\x65\x72","\x65\x78\x70\x6F\x72\x74\x73","\x41\x43\x57","\x66\x69\x6E\x61\x6C\x6C\x79","\x61\x63\x77","\x55\x6E\x70\x61\x75\x73\x65\x55\x73\x65\x72","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x6E\x70\x61\x75\x73\x65","\x63\x72\x65\x61\x74\x65","\x63\x68\x65\x63\x6B\x61\x63\x77","\x74\x69\x6D\x65\x6F\x75\x74\x73","\x72\x70\x63","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x69\x64","\x6E\x61\x6D\x65","\x61\x63\x77\x54\x69\x6D\x65\x6F\x75\x74","\x70\x61\x75\x73\x65","\x75\x6E\x69\x71\x75\x65\x69\x64","\x71\x75\x65\x75\x65","\x76\x6F\x69\x63\x65\x50\x61\x75\x73\x65","\x66\x69\x6E\x64\x4F\x6E\x65"];_0xf2dc[0];var _=require(_0xf2dc[1]);var util=require(_0xf2dc[2]);var moment=require(_0xf2dc[3]);var BPromise=require(_0xf2dc[4]);var VoiceQueue=require(_0xf2dc[6])[_0xf2dc[5]];var Action=require(_0xf2dc[6])[_0xf2dc[7]];var Agent=require(_0xf2dc[6])[_0xf2dc[8]];module[_0xf2dc[9]]= function(){var _0xfd4ax8=_0xf2dc[10];var _0xfd4ax9=[];var _0xfd4axa=function(_0xfd4axb,_0xfd4axc){return Action[_0xf2dc[20]]({name:_0xf2dc[19],data1:_0xf2dc[10]},{body:{agent:_0xfd4axb,type:_0xf2dc[10]},raw:true})[_0xf2dc[18]](function(){console[_0xf2dc[17]](_0xf2dc[12],_0xf2dc[13],_0xfd4axc);return null})[_0xf2dc[16]](function(_0xfd4axd){console[_0xf2dc[15]](_0xf2dc[12],_0xf2dc[13],_0xfd4axc,JSON[_0xf2dc[14]](_0xfd4axd));return null})[_0xf2dc[11]](function(){if(_0xfd4ax9[_0xfd4axc]){clearTimeout(_0xfd4ax9[_0xfd4axc]);delete _0xfd4ax9[_0xfd4axc]};return null})};return {checkacw:function(_0xfd4axc){if(_0xfd4ax9[_0xfd4axc]){console[_0xf2dc[17]](_0xf2dc[12],_0xf2dc[21],_0xf2dc[22],JSON[_0xf2dc[14]](_0xfd4ax9));console[_0xf2dc[17]](_0xf2dc[12],_0xf2dc[21],_0xfd4axc);clearTimeout(_0xfd4ax9[_0xfd4axc]);delete _0xfd4ax9[_0xfd4axc]}},agentcomplete:function(_0xfd4axe){return function(_0xfd4axf){var _0xfd4ax10,_0xfd4ax11;return Agent[_0xf2dc[32]]({where:{name:_0xfd4axe[_0xf2dc[24]]}})[_0xf2dc[18]](function(_0xfd4ax12){if(_0xfd4ax12&& !_0xfd4ax12[_0xf2dc[31]]){_0xfd4ax11= _0xfd4ax12;return VoiceQueue[_0xf2dc[32]]({where:{name:_0xfd4axe[_0xf2dc[30]]},attributes:[_0xf2dc[26],_0xf2dc[12],_0xf2dc[27]]})};return null})[_0xf2dc[18]](function(_0xfd4ax12){if(_0xfd4ax12&& _0xfd4ax12[_0xf2dc[12]]){_0xfd4ax10= _0xfd4ax12;return Action[_0xf2dc[20]]({name:_0xf2dc[28],data1:_0xf2dc[10],data2:_0xfd4ax12[_0xf2dc[27]],data3:_0xfd4axe[_0xf2dc[29]],data4:_0xfd4axe[_0xf2dc[30]]},{body:{agent:_0xfd4ax11[_0xf2dc[25]],type:_0xf2dc[10]},raw:true})};return null})[_0xf2dc[18]](function(_0xfd4ax12){if(_0xfd4ax12){_0xfd4ax9[_0xfd4axe[_0xf2dc[24]]]= setTimeout(function(){_0xfd4axa(_0xfd4ax11[_0xf2dc[25]],_0xfd4ax11[_0xf2dc[26]])},_0xfd4ax10[_0xf2dc[27]]* 1000)};return null})[_0xf2dc[16]](function(_0xfd4axd){console[_0xf2dc[15]](_0xf2dc[23],_0xf2dc[12],JSON[_0xf2dc[14]](_0xfd4axd))})}}}}
\ No newline at end of file