Built motion from commit c50d73b2.|2.0.46
[motion2.git] / server / services / routing / server / applications / strategy / agent.js
1 var _0xacb6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x75\x69\x64","\x2E\x2F\x75\x74\x69\x6C","\x72\x6F\x75\x74\x69\x6E\x67","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6E\x6F\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x49\x64","\x76\x34","\x73\x71\x75\x65\x75\x65","\x61\x67\x65\x6E\x74","\x72\x65\x61\x6C\x74\x69\x6D\x65","\x62\x69\x6E\x64","\x68\x61\x6E\x64\x6C\x65\x52\x75\x6E","\x68\x61\x6E\x64\x6C\x65\x54\x69\x6D\x65\x6F\x75\x74","\x70\x75\x73\x68","\x64\x72\x61\x69\x6E\x65\x64","\x6F\x6E","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x64\x6F\x6E\x65","\x5B\x25\x73\x5D\x5B\x41\x47\x45\x4E\x54\x5D\x20\x74\x72\x79\x20\x77\x69\x74\x68\x20\x25\x73","\x69\x64","\x69\x6E\x66\x6F","\x61\x67\x65\x6E\x74\x73","\x69\x73\x4E\x69\x6C","\x5B\x25\x73\x5D\x5B\x41\x47\x45\x4E\x54\x5D\x20\x61\x67\x65\x6E\x74\x20\x73\x6B\x69\x70\x70\x65\x64\x2C\x20\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x69\x64\x20\x25\x73","\x63\x68\x61\x6E\x6E\x65\x6C","\x69\x73\x41\x67\x65\x6E\x74\x41\x76\x61\x69\x6C\x61\x62\x6C\x65","\x52\x49\x4E\x47\x49\x4E\x47","\x77\x72\x69\x74\x65\x4C\x6F\x67","\x62\x75\x73\x79","\x62\x75\x73\x79\x51\x75\x65\x75\x65","\x73\x68\x6F\x77\x4E\x6F\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E","\x5B\x25\x73\x5D\x5B\x41\x47\x45\x4E\x54\x5D\x20\x74\x69\x6D\x65\x6F\x75\x74\x20\x77\x69\x74\x68\x20\x25\x73","\x54\x49\x4D\x45\x4F\x55\x54","\x68\x69\x64\x65\x4E\x6F\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0xacb6[0];var _=require(_0xacb6[1]);var uuid=require(_0xacb6[2]);var util=require(_0xacb6[3]);var logger=require(_0xacb6[5])(_0xacb6[4]);var Agent=function(_0x52c9x6,_0x52c9x7,_0x52c9x8){this[_0xacb6[6]]= uuid[_0xacb6[7]]();this[_0xacb6[8]]= _0x52c9x6;this[_0xacb6[9]]= _0x52c9x7;this[_0xacb6[10]]= _0x52c9x8;this[_0xacb6[8]][_0xacb6[14]](this[_0xacb6[12]][_0xacb6[11]](this),this[_0xacb6[13]][_0xacb6[11]](this));this[_0xacb6[8]][_0xacb6[16]](_0xacb6[15],this[_0xacb6[13]][_0xacb6[11]](this))};Agent[_0xacb6[17]][_0xacb6[14]]= function(){this[_0xacb6[8]][_0xacb6[14]](this[_0xacb6[12]][_0xacb6[11]](this),this[_0xacb6[13]][_0xacb6[11]](this))};Agent[_0xacb6[17]][_0xacb6[18]]= function(_0x52c9x9){if(_0x52c9x9){setTimeout(this[_0xacb6[14]][_0xacb6[11]](this),1000);_0x52c9x9[_0xacb6[18]]()}};Agent[_0xacb6[17]][_0xacb6[12]]= function(_0x52c9x9){logger[_0xacb6[21]](_0xacb6[19],this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[9]][_0xacb6[20]]);if(_[_0xacb6[23]](this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]])){logger[_0xacb6[21]](_0xacb6[24],this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[9]][_0xacb6[20]]);this[_0xacb6[18]](_0x52c9x9)}else {if(util[_0xacb6[26]](this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]],this[_0xacb6[8]][_0xacb6[25]],false)){util[_0xacb6[28]](this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]],_0xacb6[27]);this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]][_0xacb6[29]]= true;this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]][_0xacb6[30]]= undefined;util[_0xacb6[31]](this[_0xacb6[6]],this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]])}else {this[_0xacb6[18]](_0x52c9x9)}}};Agent[_0xacb6[17]][_0xacb6[13]]= function(){logger[_0xacb6[21]](_0xacb6[32],this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[9]][_0xacb6[20]]);if(_[_0xacb6[23]](this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]])){return logger[_0xacb6[21]](_0xacb6[24],this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[9]][_0xacb6[20]])}else {util[_0xacb6[28]](this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]],_0xacb6[33]);this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]][_0xacb6[29]]= false;this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]][_0xacb6[30]]= undefined;util[_0xacb6[34]](this[_0xacb6[6]],this[_0xacb6[8]][_0xacb6[20]],this[_0xacb6[10]][_0xacb6[22]][this[_0xacb6[9]][_0xacb6[20]]])}};function agent(_0x52c9x6,_0x52c9x7,_0x52c9x8){return  new Agent(_0x52c9x6,_0x52c9x7,_0x52c9x8)}module[_0xacb6[35]]= agent