Built motion from commit 94df3a359.|1.0.33
[motion.git] / server / config / agi / lib / server.js
1 var _0xe88d=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x6E\x65\x74","\x61\x67\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x2E\x2F\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x6C\x69\x73\x74\x65\x6E\x50\x6F\x72\x74","\x6C\x69\x73\x74\x65\x6E\x48\x6F\x73\x74","\x31\x32\x37\x2E\x30\x2E\x30\x2E\x31","\x6D\x61\x70\x70\x65\x72","\x74\x63\x70\x53\x65\x72\x76\x65\x72","\x63\x72\x65\x61\x74\x65\x53\x65\x72\x76\x65\x72","\x63\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x62\x69\x6E\x64","\x68\x61\x6E\x64\x6C\x65\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x68\x61\x6E\x64\x6C\x65\x43\x6C\x6F\x73\x65","\x65\x72\x72\x6F\x72","\x68\x61\x6E\x64\x6C\x65\x45\x72\x72\x6F\x72","\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67","\x68\x61\x6E\x64\x6C\x65\x4C\x69\x73\x74\x65\x6E\x69\x6E\x67","\x6C\x69\x73\x74\x65\x6E","\x6E\x65\x78\x74\x54\x69\x63\x6B","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x65\x74\x41\x63\x74\x69\x76\x65\x43\x68\x61\x6E\x6E\x65\x6C\x73","\x67\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x69\x6F\x6E\x73","\x53\x65\x72\x76\x65\x72\x20\x63\x6C\x6F\x73\x65\x20\x6F\x6E\x20\x25\x73\x3A\x25\x64","\x69\x6E\x66\x6F","\x45\x72\x72\x6F\x72\x20\x6F\x6E\x20\x73\x65\x72\x76\x65\x72\x20\x72\x75\x6E\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x25\x73\x3A\x25\x64","\x66\x6F\x72\x6D\x61\x74","\x53\x65\x72\x76\x65\x72\x20\x72\x75\x6E\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x25\x73\x3A\x25\x64","\x25\x64\x20\x61\x63\x74\x69\x76\x65\x20\x63\x68\x61\x6E\x6E\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73"];_0xe88d[0];var util=require(_0xe88d[1]);var net=require(_0xe88d[2]);var logger=require(_0xe88d[4])(_0xe88d[3]);var AGIConnection=require(_0xe88d[5]);var AGIServer=function(_0xfc1bx6,_0xfc1bx7,_0xfc1bx8){var _0xfc1bx9=this;this[_0xe88d[6]]= _0xfc1bx7|| 4573;this[_0xe88d[7]]= _0xfc1bx8|| _0xe88d[8];this[_0xe88d[9]]= _0xfc1bx6;this[_0xe88d[10]]= net[_0xe88d[11]]();this[_0xe88d[10]][_0xe88d[15]](_0xe88d[12],this[_0xe88d[14]][_0xe88d[13]](this));this[_0xe88d[10]][_0xe88d[15]](_0xe88d[16],this[_0xe88d[17]][_0xe88d[13]](this));this[_0xe88d[10]][_0xe88d[15]](_0xe88d[18],this[_0xe88d[19]][_0xe88d[13]](this));this[_0xe88d[10]][_0xe88d[15]](_0xe88d[20],this[_0xe88d[21]][_0xe88d[13]](this));process[_0xe88d[23]](function(){_0xfc1bx9[_0xe88d[10]][_0xe88d[22]]({port:_0xfc1bx9[_0xe88d[6]],host:_0xfc1bx9[_0xe88d[7]]})})};AGIServer[_0xe88d[24]][_0xe88d[14]]= function(_0xfc1bxa){this[_0xe88d[10]][_0xe88d[26]](this[_0xe88d[25]]);return  new AGIConnection(this[_0xe88d[9]],_0xfc1bxa)};AGIServer[_0xe88d[24]][_0xe88d[17]]= function(){logger[_0xe88d[28]](_0xe88d[27],this[_0xe88d[7]],this[_0xe88d[6]])};AGIServer[_0xe88d[24]][_0xe88d[19]]= function(_0xfc1bxb){logger[_0xe88d[18]](util[_0xe88d[30]](_0xe88d[29],this[_0xe88d[7]],this[_0xe88d[6]]),_0xfc1bxb)};AGIServer[_0xe88d[24]][_0xe88d[21]]= function(){logger[_0xe88d[28]](util[_0xe88d[30]](_0xe88d[31],this[_0xe88d[7]],this[_0xe88d[6]]));this[_0xe88d[10]][_0xe88d[26]](this[_0xe88d[25]])};AGIServer[_0xe88d[24]][_0xe88d[25]]= function(_0xfc1bxb,_0xfc1bxc){if(_0xfc1bxb){logger[_0xe88d[18]](_0xfc1bxb)}else {logger[_0xe88d[28]](util[_0xe88d[30]](_0xe88d[32],_0xfc1bxc))}};module[_0xe88d[33]]= AGIServer