Built motion from commit f524ee855.|1.0.27
[motion.git] / server / config / agi / lib / connection.js
1 var _0xa38d=["\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"];_0xa38d[0];var AGIChannel=require(_0xa38d[1]);var logger=require(_0xa38d[3])(_0xa38d[2]);var AGIConnection=function(_0xfad6x4,_0xfad6x5){this[_0xa38d[4]]= _0xfad6x5;this[_0xa38d[5]]= _0xfad6x4;this[_0xa38d[6]]= _0xa38d[7];this[_0xa38d[4]][_0xa38d[11]](_0xa38d[8],this[_0xa38d[10]][_0xa38d[9]](this));this[_0xa38d[4]][_0xa38d[11]](_0xa38d[12],this[_0xa38d[13]][_0xa38d[9]](this))};AGIConnection[_0xa38d[14]][_0xa38d[10]]= function(_0xfad6x6){var _0xfad6x7=this;_0xfad6x6= _0xfad6x6.toString(_0xa38d[15]);if(_0xfad6x6[_0xa38d[17]](_0xa38d[16])=== 0){if(this[_0xa38d[18]]){this[_0xa38d[18]](_0xa38d[19])};return};if(this[_0xa38d[18]]){this[_0xa38d[18]](_0xfad6x6[_0xa38d[20]]())}else {this[_0xa38d[6]]+= _0xfad6x6;if(this[_0xa38d[6]][_0xa38d[17]](_0xa38d[21])>= 0){this[_0xa38d[22]]= this[_0xa38d[23]](this[_0xa38d[6]]);var _0xfad6x8= new AGIChannel(this[_0xa38d[22]],this[_0xa38d[5]]);this[_0xa38d[18]]= _0xfad6x8[_0xa38d[24]][_0xa38d[9]](_0xfad6x8);_0xfad6x8[_0xa38d[11]](_0xa38d[22],this[_0xa38d[25]][_0xa38d[9]](this));_0xfad6x8[_0xa38d[11]](_0xa38d[26],this[_0xa38d[27]][_0xa38d[9]](this));_0xfad6x8[_0xa38d[11]](_0xa38d[28],this[_0xa38d[29]][_0xa38d[9]](this));_0xfad6x8[_0xa38d[11]](_0xa38d[30],this[_0xa38d[31]][_0xa38d[9]](this))}}};AGIConnection[_0xa38d[14]][_0xa38d[13]]= function(){logger[_0xa38d[33]](_0xa38d[32]);if(this[_0xa38d[18]]){this[_0xa38d[18]](_0xa38d[19])};this[_0xa38d[34]]()};AGIConnection[_0xa38d[14]][_0xa38d[25]]= function(_0xfad6x9){logger[_0xa38d[33]](_0xa38d[35],_0xfad6x9);if(this[_0xa38d[4]]){this[_0xa38d[4]][_0xa38d[37]](_0xfad6x9+ _0xa38d[36])}};AGIConnection[_0xa38d[14]][_0xa38d[31]]= function(_0xfad6xa){logger[_0xa38d[30]](_0xa38d[38],_0xfad6xa);this[_0xa38d[34]]()};AGIConnection[_0xa38d[14]][_0xa38d[29]]= function(){logger[_0xa38d[33]](_0xa38d[39]);this[_0xa38d[34]]()};AGIConnection[_0xa38d[14]][_0xa38d[27]]= function(){logger[_0xa38d[33]](_0xa38d[40])};AGIConnection[_0xa38d[14]][_0xa38d[34]]= function(){logger[_0xa38d[33]](_0xa38d[41]);if(this[_0xa38d[4]]){this[_0xa38d[4]][_0xa38d[34]]();this[_0xa38d[4]]= null}};AGIConnection[_0xa38d[14]][_0xa38d[23]]= function(_0xfad6xb){var _0xfad6xc={};var _0xfad6x6=_0xfad6xb.toString();_0xfad6x6[_0xa38d[42]](_0xa38d[36])[_0xa38d[46]](function(_0xfad6xd){var _0xfad6xe=_0xfad6xd[_0xa38d[42]](/:\s?/);if(_0xfad6xe[_0xa38d[43]]=== 2){var _0xfad6xf=_0xfad6xe[0][_0xa38d[20]]();if(_0xfad6xf[_0xa38d[17]](_0xa38d[44])=== 0){_0xfad6xf= _0xfad6xf[_0xa38d[45]](4)};var _0xfad6x10=_0xfad6xe[1][_0xa38d[20]]();_0xfad6xc[_0xfad6xf]= _0xfad6x10}});return _0xfad6xc};module[_0xa38d[47]]= AGIConnection