88b4bb7f21a348af5e9d01f28f221e23def545a9
[motion.git] / server / config / agi / lib / connection.js
1 var _0xc7ec=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x63\x68\x61\x6E\x6E\x65\x6C","\x61\x67\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x6D\x61\x70\x70\x65\x72","\x62\x75\x66\x66\x65\x72","","\x64\x61\x74\x61","\x62\x69\x6E\x64","\x68\x61\x6E\x64\x6C\x65\x44\x61\x74\x61","\x6F\x6E","\x65\x6E\x64","\x68\x61\x6E\x64\x6C\x65\x45\x6E\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x75\x74\x66\x38","\x48\x41\x4E\x47\x55\x50","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x61\x6E\x64\x6C\x65\x72","\x68\x61\x6E\x67\x75\x70","\x74\x72\x69\x6D","\x0A\x0A","\x72\x65\x71\x75\x65\x73\x74","\x67\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65\x73","\x68\x61\x6E\x64\x6C\x65\x52\x65\x70\x6C\x79","\x68\x61\x6E\x64\x6C\x65\x52\x65\x71\x75\x65\x73\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x68\x61\x6E\x64\x6C\x65\x43\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x64\x6F\x6E\x65","\x68\x61\x6E\x64\x6C\x65\x44\x6F\x6E\x65","\x65\x72\x72\x6F\x72","\x68\x61\x6E\x64\x6C\x65\x45\x72\x72\x6F\x72","\x45\x6E\x64","\x69\x6E\x66\x6F","\x64\x65\x73\x74\x72\x6F\x79","\x52\x65\x71\x75\x65\x73\x74","\x0A","\x77\x72\x69\x74\x65","\x45\x72\x72\x6F\x72\x3A","\x44\x6F\x6E\x65","\x43\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x44\x65\x73\x74\x72\x6F\x79","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x61\x67\x69\x5F","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x66\x6F\x72\x45\x61\x63\x68","\x65\x78\x70\x6F\x72\x74\x73"];_0xc7ec[0];var AGIChannel=require(_0xc7ec[1]);var logger=require(_0xc7ec[3])(_0xc7ec[2]);var AGIConnection=function(_0xb786x4,_0xb786x5){this[_0xc7ec[4]]= _0xb786x5;this[_0xc7ec[5]]= _0xb786x4;this[_0xc7ec[6]]= _0xc7ec[7];this[_0xc7ec[4]][_0xc7ec[11]](_0xc7ec[8],this[_0xc7ec[10]][_0xc7ec[9]](this));this[_0xc7ec[4]][_0xc7ec[11]](_0xc7ec[12],this[_0xc7ec[13]][_0xc7ec[9]](this))};AGIConnection[_0xc7ec[14]][_0xc7ec[10]]= function(_0xb786x6){var _0xb786x7=this;_0xb786x6= _0xb786x6.toString(_0xc7ec[15]);if(_0xb786x6[_0xc7ec[17]](_0xc7ec[16])=== 0){if(this[_0xc7ec[18]]){this[_0xc7ec[18]](_0xc7ec[19])};return};if(this[_0xc7ec[18]]){this[_0xc7ec[18]](_0xb786x6[_0xc7ec[20]]())}else {this[_0xc7ec[6]]+= _0xb786x6;if(this[_0xc7ec[6]][_0xc7ec[17]](_0xc7ec[21])>= 0){this[_0xc7ec[22]]= this[_0xc7ec[23]](this[_0xc7ec[6]]);var _0xb786x8= new AGIChannel(this[_0xc7ec[22]],this[_0xc7ec[5]]);this[_0xc7ec[18]]= _0xb786x8[_0xc7ec[24]][_0xc7ec[9]](_0xb786x8);_0xb786x8[_0xc7ec[11]](_0xc7ec[22],this[_0xc7ec[25]][_0xc7ec[9]](this));_0xb786x8[_0xc7ec[11]](_0xc7ec[26],this[_0xc7ec[27]][_0xc7ec[9]](this));_0xb786x8[_0xc7ec[11]](_0xc7ec[28],this[_0xc7ec[29]][_0xc7ec[9]](this));_0xb786x8[_0xc7ec[11]](_0xc7ec[30],this[_0xc7ec[31]][_0xc7ec[9]](this))}}};AGIConnection[_0xc7ec[14]][_0xc7ec[13]]= function(){logger[_0xc7ec[33]](_0xc7ec[32]);if(this[_0xc7ec[18]]){this[_0xc7ec[18]](_0xc7ec[19])};this[_0xc7ec[34]]()};AGIConnection[_0xc7ec[14]][_0xc7ec[25]]= function(_0xb786x9){logger[_0xc7ec[33]](_0xc7ec[35],_0xb786x9);if(this[_0xc7ec[4]]){this[_0xc7ec[4]][_0xc7ec[37]](_0xb786x9+ _0xc7ec[36])}};AGIConnection[_0xc7ec[14]][_0xc7ec[31]]= function(_0xb786xa){logger[_0xc7ec[30]](_0xc7ec[38],_0xb786xa);this[_0xc7ec[34]]()};AGIConnection[_0xc7ec[14]][_0xc7ec[29]]= function(){logger[_0xc7ec[33]](_0xc7ec[39]);this[_0xc7ec[34]]()};AGIConnection[_0xc7ec[14]][_0xc7ec[27]]= function(){logger[_0xc7ec[33]](_0xc7ec[40])};AGIConnection[_0xc7ec[14]][_0xc7ec[34]]= function(){logger[_0xc7ec[33]](_0xc7ec[41]);if(this[_0xc7ec[4]]){this[_0xc7ec[4]][_0xc7ec[34]]();this[_0xc7ec[4]]= null}};AGIConnection[_0xc7ec[14]][_0xc7ec[23]]= function(_0xb786xb){var _0xb786xc={};var _0xb786x6=_0xb786xb.toString();_0xb786x6[_0xc7ec[42]](_0xc7ec[36])[_0xc7ec[46]](function(_0xb786xd){var _0xb786xe=_0xb786xd[_0xc7ec[42]](/:\s?/);if(_0xb786xe[_0xc7ec[43]]=== 2){var _0xb786xf=_0xb786xe[0][_0xc7ec[20]]();if(_0xb786xf[_0xc7ec[17]](_0xc7ec[44])=== 0){_0xb786xf= _0xb786xf[_0xc7ec[45]](4)};var _0xb786x10=_0xb786xe[1][_0xc7ec[20]]();_0xb786xc[_0xb786xf]= _0xb786x10}});return _0xb786xc};module[_0xc7ec[47]]= AGIConnection