Built motion from commit 2438401.|1.0.5
[motion.git] / server / config / agi / lib / connection.js
1 var _0xdb6f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x63\x68\x61\x6E\x6E\x65\x6C","\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","\x5B\x41\x47\x49\x5D\x20\x45\x6E\x64","\x6C\x6F\x67","\x64\x65\x73\x74\x72\x6F\x79","\x5B\x41\x47\x49\x5D\x20\x52\x65\x71\x75\x65\x73\x74","\x0A","\x77\x72\x69\x74\x65","\x5B\x41\x47\x49\x5D\x20\x45\x72\x72\x6F\x72\x3A","\x5B\x41\x47\x49\x5D\x20\x44\x6F\x6E\x65","\x5B\x41\x47\x49\x5D\x20\x43\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x5B\x41\x47\x49\x5D\x20\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"];_0xdb6f[0];var AGIChannel=require(_0xdb6f[1]);var AGIConnection=function(_0x1f93x3,_0x1f93x4){this[_0xdb6f[2]]= _0x1f93x4;this[_0xdb6f[3]]= _0x1f93x3;this[_0xdb6f[4]]= _0xdb6f[5];this[_0xdb6f[2]][_0xdb6f[9]](_0xdb6f[6],this[_0xdb6f[8]][_0xdb6f[7]](this));this[_0xdb6f[2]][_0xdb6f[9]](_0xdb6f[10],this[_0xdb6f[11]][_0xdb6f[7]](this))};AGIConnection[_0xdb6f[12]][_0xdb6f[8]]= function(_0x1f93x5){var _0x1f93x6=this;_0x1f93x5= _0x1f93x5.toString(_0xdb6f[13]);if(_0x1f93x5[_0xdb6f[15]](_0xdb6f[14])=== 0){if(this[_0xdb6f[16]]){this[_0xdb6f[16]](_0xdb6f[17])};return};if(this[_0xdb6f[16]]){this[_0xdb6f[16]](_0x1f93x5[_0xdb6f[18]]())}else {this[_0xdb6f[4]]+= _0x1f93x5;if(this[_0xdb6f[4]][_0xdb6f[15]](_0xdb6f[19])>= 0){this[_0xdb6f[20]]= this[_0xdb6f[21]](this[_0xdb6f[4]]);var _0x1f93x7= new AGIChannel(this[_0xdb6f[20]],this[_0xdb6f[3]]);this[_0xdb6f[16]]= _0x1f93x7[_0xdb6f[22]][_0xdb6f[7]](_0x1f93x7);_0x1f93x7[_0xdb6f[9]](_0xdb6f[20],this[_0xdb6f[23]][_0xdb6f[7]](this));_0x1f93x7[_0xdb6f[9]](_0xdb6f[24],this[_0xdb6f[25]][_0xdb6f[7]](this));_0x1f93x7[_0xdb6f[9]](_0xdb6f[26],this[_0xdb6f[27]][_0xdb6f[7]](this));_0x1f93x7[_0xdb6f[9]](_0xdb6f[28],this[_0xdb6f[29]][_0xdb6f[7]](this))}}};AGIConnection[_0xdb6f[12]][_0xdb6f[11]]= function(){console[_0xdb6f[31]](_0xdb6f[30]);if(this[_0xdb6f[16]]){this[_0xdb6f[16]](_0xdb6f[17])};this[_0xdb6f[32]]()};AGIConnection[_0xdb6f[12]][_0xdb6f[23]]= function(_0x1f93x8){console[_0xdb6f[31]](_0xdb6f[33],_0x1f93x8);if(this[_0xdb6f[2]]){this[_0xdb6f[2]][_0xdb6f[35]](_0x1f93x8+ _0xdb6f[34])}};AGIConnection[_0xdb6f[12]][_0xdb6f[29]]= function(_0x1f93x9){console[_0xdb6f[28]](_0xdb6f[36],_0x1f93x9);this[_0xdb6f[32]]()};AGIConnection[_0xdb6f[12]][_0xdb6f[27]]= function(){console[_0xdb6f[31]](_0xdb6f[37]);this[_0xdb6f[32]]()};AGIConnection[_0xdb6f[12]][_0xdb6f[25]]= function(){console[_0xdb6f[31]](_0xdb6f[38])};AGIConnection[_0xdb6f[12]][_0xdb6f[32]]= function(){console[_0xdb6f[31]](_0xdb6f[39]);if(this[_0xdb6f[2]]){this[_0xdb6f[2]][_0xdb6f[32]]();this[_0xdb6f[2]]= null}};AGIConnection[_0xdb6f[12]][_0xdb6f[21]]= function(_0x1f93xa){var _0x1f93xb={};var _0x1f93x5=_0x1f93xa.toString();_0x1f93x5[_0xdb6f[40]](_0xdb6f[34])[_0xdb6f[44]](function(_0x1f93xc){var _0x1f93xd=_0x1f93xc[_0xdb6f[40]](/:\s?/);if(_0x1f93xd[_0xdb6f[41]]=== 2){var _0x1f93xe=_0x1f93xd[0][_0xdb6f[18]]();if(_0x1f93xe[_0xdb6f[15]](_0xdb6f[42])=== 0){_0x1f93xe= _0x1f93xe[_0xdb6f[43]](4)};var _0x1f93xf=_0x1f93xd[1][_0xdb6f[18]]();_0x1f93xb[_0x1f93xe]= _0x1f93xf}});return _0x1f93xb};module[_0xdb6f[45]]= AGIConnection