bae76e73a5c6ad53c803ccaa91c3bc5acb7e3952
[motion.git] / server / config / agi / lib / connection.js
1 var _0x81a4=["\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"];_0x81a4[0];var AGIChannel=require(_0x81a4[1]);var logger=require(_0x81a4[3])(_0x81a4[2]);var AGIConnection=function(_0xb38fx4,_0xb38fx5){this[_0x81a4[4]]= _0xb38fx5;this[_0x81a4[5]]= _0xb38fx4;this[_0x81a4[6]]= _0x81a4[7];this[_0x81a4[4]][_0x81a4[11]](_0x81a4[8],this[_0x81a4[10]][_0x81a4[9]](this));this[_0x81a4[4]][_0x81a4[11]](_0x81a4[12],this[_0x81a4[13]][_0x81a4[9]](this))};AGIConnection[_0x81a4[14]][_0x81a4[10]]= function(_0xb38fx6){var _0xb38fx7=this;_0xb38fx6= _0xb38fx6.toString(_0x81a4[15]);if(_0xb38fx6[_0x81a4[17]](_0x81a4[16])=== 0){if(this[_0x81a4[18]]){this[_0x81a4[18]](_0x81a4[19])};return};if(this[_0x81a4[18]]){this[_0x81a4[18]](_0xb38fx6[_0x81a4[20]]())}else {this[_0x81a4[6]]+= _0xb38fx6;if(this[_0x81a4[6]][_0x81a4[17]](_0x81a4[21])>= 0){this[_0x81a4[22]]= this[_0x81a4[23]](this[_0x81a4[6]]);var _0xb38fx8= new AGIChannel(this[_0x81a4[22]],this[_0x81a4[5]]);this[_0x81a4[18]]= _0xb38fx8[_0x81a4[24]][_0x81a4[9]](_0xb38fx8);_0xb38fx8[_0x81a4[11]](_0x81a4[22],this[_0x81a4[25]][_0x81a4[9]](this));_0xb38fx8[_0x81a4[11]](_0x81a4[26],this[_0x81a4[27]][_0x81a4[9]](this));_0xb38fx8[_0x81a4[11]](_0x81a4[28],this[_0x81a4[29]][_0x81a4[9]](this));_0xb38fx8[_0x81a4[11]](_0x81a4[30],this[_0x81a4[31]][_0x81a4[9]](this))}}};AGIConnection[_0x81a4[14]][_0x81a4[13]]= function(){logger[_0x81a4[33]](_0x81a4[32]);if(this[_0x81a4[18]]){this[_0x81a4[18]](_0x81a4[19])};this[_0x81a4[34]]()};AGIConnection[_0x81a4[14]][_0x81a4[25]]= function(_0xb38fx9){logger[_0x81a4[33]](_0x81a4[35],_0xb38fx9);if(this[_0x81a4[4]]){this[_0x81a4[4]][_0x81a4[37]](_0xb38fx9+ _0x81a4[36])}};AGIConnection[_0x81a4[14]][_0x81a4[31]]= function(_0xb38fxa){logger[_0x81a4[30]](_0x81a4[38],_0xb38fxa);this[_0x81a4[34]]()};AGIConnection[_0x81a4[14]][_0x81a4[29]]= function(){logger[_0x81a4[33]](_0x81a4[39]);this[_0x81a4[34]]()};AGIConnection[_0x81a4[14]][_0x81a4[27]]= function(){logger[_0x81a4[33]](_0x81a4[40])};AGIConnection[_0x81a4[14]][_0x81a4[34]]= function(){logger[_0x81a4[33]](_0x81a4[41]);if(this[_0x81a4[4]]){this[_0x81a4[4]][_0x81a4[34]]();this[_0x81a4[4]]= null}};AGIConnection[_0x81a4[14]][_0x81a4[23]]= function(_0xb38fxb){var _0xb38fxc={};var _0xb38fx6=_0xb38fxb.toString();_0xb38fx6[_0x81a4[42]](_0x81a4[36])[_0x81a4[46]](function(_0xb38fxd){var _0xb38fxe=_0xb38fxd[_0x81a4[42]](/:\s?/);if(_0xb38fxe[_0x81a4[43]]=== 2){var _0xb38fxf=_0xb38fxe[0][_0x81a4[20]]();if(_0xb38fxf[_0x81a4[17]](_0x81a4[44])=== 0){_0xb38fxf= _0xb38fxf[_0x81a4[45]](4)};var _0xb38fx10=_0xb38fxe[1][_0x81a4[20]]();_0xb38fxc[_0xb38fxf]= _0xb38fx10}});return _0xb38fxc};module[_0x81a4[47]]= AGIConnection