Built motion from commit 654a660.|0.0.150
[motion.git] / server / config / agi / lib / channel.js
1 var _0x3c76=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x73\x79\x6E\x63\x68\x6F","\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x45\x76\x65\x6E\x74\x45\x6D\x69\x74\x74\x65\x72","\x65\x76\x65\x6E\x74\x73","\x2E\x2F\x72\x65\x70\x6C\x79","\x63\x61\x6C\x6C","\x72\x65\x71\x75\x65\x73\x74","\x63\x6D\x64\x49\x64","\x61\x67\x69\x73\x71\x75\x61\x72\x65","\x65\x72\x72\x6F\x72","\x65\x6D\x69\x74","\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x6E\x65\x78\x74\x54\x69\x63\x6B","\x69\x6E\x68\x65\x72\x69\x74\x73","\x68\x61\x6E\x64\x6C\x65\x52\x65\x70\x6C\x79","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x63\x61\x6C\x6C\x62\x61\x63\x6B","\x68\x61\x6E\x67\x75\x70","\x5F\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x73\x79\x6E\x63","\x61\x6E\x73\x77\x65\x72","\x41\x4E\x53\x57\x45\x52","\x67\x65\x74\x44\x61\x74\x61","\x62\x65\x65\x70","\x35","\x31","\x47\x45\x54\x20\x44\x41\x54\x41\x20\x22\x25\x73\x22\x20\x25\x73\x20\x25\x73","\x66\x6F\x72\x6D\x61\x74","\x6E\x6F\x6F\x70","\x4E\x4F\x20\x4D\x45\x53\x53\x41\x47\x45","\x56\x45\x52\x42\x4F\x53\x45\x20\x22\x25\x73\x22","\x65\x78\x65\x63","\x69\x73\x41\x72\x72\x61\x79","\x45\x58\x45\x43\x20\x25\x73\x20\x25\x73","\x2C","\x6A\x6F\x69\x6E","\x73\x65\x74\x43\x6F\x6E\x74\x65\x78\x74","\x53\x45\x54\x20\x43\x4F\x4E\x54\x45\x58\x54\x20\x25\x73","\x73\x65\x74\x45\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x53\x45\x54\x20\x45\x58\x54\x45\x4E\x53\x49\x4F\x4E\x20\x25\x73","\x73\x65\x74\x50\x72\x69\x6F\x72\x69\x74\x79","\x53\x45\x54\x20\x50\x52\x49\x4F\x52\x49\x54\x59\x20\x25\x73","\x48\x41\x4E\x47\x55\x50","\x73\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65","\x53\x45\x54\x20\x56\x41\x52\x49\x41\x42\x4C\x45\x20\x25\x73\x20\x22\x25\x73\x22","\x73\x61\x79\x4E\x75\x6D\x62\x65\x72","\x53\x41\x59\x20\x4E\x55\x4D\x42\x45\x52\x20\x25\x73\x20\x25\x73","\x73\x61\x79\x44\x69\x67\x69\x74\x73","\x53\x41\x59\x20\x44\x49\x47\x49\x54\x53\x20\x25\x73\x20\x25\x73","\x73\x61\x79\x50\x68\x6F\x6E\x65\x74\x69\x63","\x53\x41\x59\x20\x50\x48\x4F\x4E\x45\x54\x49\x43\x20\x25\x73\x20\x25\x73","\x63\x6F\x6E\x74\x69\x6E\x75\x65\x41\x74","\x65\x78\x74\x65\x6E\x73\x69\x6F\x6E","\x47\x4F\x54\x4F\x20\x25\x73\x20\x25\x73\x20\x25\x73","\x67\x65\x74\x56\x61\x72\x69\x61\x62\x6C\x65","\x47\x45\x54\x20\x56\x41\x52\x49\x41\x42\x4C\x45\x20\x22\x25\x73\x22","\x72\x65\x63\x6F\x72\x64\x46\x69\x6C\x65","\x77\x61\x76","","\x2D\x31","\x73\x3D","\x42\x45\x45\x50","\x52\x45\x43\x4F\x52\x44\x20\x46\x49\x4C\x45\x20\x22\x25\x73\x22\x20\x22\x25\x73\x22\x20\x22\x25\x73\x22\x20\x25\x73\x20\x25\x73\x20\x25\x73","\x73\x74\x72\x65\x61\x6D\x46\x69\x6C\x65","\x53\x54\x52\x45\x41\x4D\x20\x46\x49\x4C\x45\x20\x22\x25\x73\x22\x20\x22\x25\x73\x22","\x61\x67\x69","\x41\x47\x49","\x49\x44\x3A\x25\x73\x20\x2D\x20\x4C\x41\x42\x45\x4C\x3A\x20\x25\x73\x20\x2D\x20\x4D\x53\x47\x3A\x20\x25\x73","\x69\x64","\x6C\x61\x62\x65\x6C","\x77\x61\x69\x74","\x57\x41\x49\x54","\x65\x78\x70\x6F\x72\x74\x73"];_0x3c76[0];var syncho=require(_0x3c76[1]);var util=require(_0x3c76[2]);var _=require(_0x3c76[3]);var EventEmitter=require(_0x3c76[5])[_0x3c76[4]];var AGIReply=require(_0x3c76[6]);var AGIChannel=function(_0xdca9x7,_0xdca9x8){EventEmitter[_0x3c76[7]](this);this[_0x3c76[8]]= _0xdca9x7;this[_0x3c76[9]]= 0;this[_0x3c76[10]]= _0xdca9x8;var _0xdca9x9=this;process[_0x3c76[14]](function(){syncho(function(){try{_0xdca9x9[_0x3c76[10]](_0xdca9x9)}catch(e){_0xdca9x9[_0x3c76[12]](_0x3c76[11],e.toString())};_0xdca9x9[_0x3c76[12]](_0x3c76[13])})})};util[_0x3c76[15]](AGIChannel,EventEmitter);AGIChannel[_0x3c76[17]][_0x3c76[16]]= function(_0xdca9xa){if(this[_0x3c76[18]]){if(_0xdca9xa=== _0x3c76[19]){this[_0x3c76[18]](_0x3c76[19])}else {this[_0x3c76[18]](null, new AGIReply(_0xdca9xa))}}};AGIChannel[_0x3c76[17]][_0x3c76[20]]= function(_0xdca9x7,_0xdca9xb){this[_0x3c76[18]]= _0xdca9xb;this[_0x3c76[9]]= this[_0x3c76[9]]+ 1;this[_0x3c76[12]](_0x3c76[8],_0xdca9x7,this[_0x3c76[9]])};AGIChannel[_0x3c76[17]][_0x3c76[21]]= function(_0xdca9x7){return this[_0x3c76[20]][_0x3c76[22]](this,_0xdca9x7)};AGIChannel[_0x3c76[17]][_0x3c76[23]]= function(){return this[_0x3c76[21]](_0x3c76[24])};AGIChannel[_0x3c76[17]][_0x3c76[25]]= function(_0xdca9xc,_0xdca9xd,_0xdca9xe){_0xdca9xc= (_0xdca9xc=== undefined)?_0x3c76[26]:_0xdca9xc;_0xdca9xd= (_0xdca9xd=== undefined)?_0x3c76[27]:_0xdca9xd;_0xdca9xe= (_0xdca9xe=== undefined)?_0x3c76[28]:_0xdca9xe;return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[29],_0xdca9xc,_0xdca9xd* 1000,_0xdca9xe))};AGIChannel[_0x3c76[17]][_0x3c76[31]]= function(_0xdca9xf){_0xdca9xf= _0xdca9xf|| _0x3c76[32];return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[33],_0xdca9xf))};AGIChannel[_0x3c76[17]][_0x3c76[34]]= function(_0xdca9x10,_0xdca9x11){if(_[_0x3c76[35]](_0xdca9x11)){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[36],_0xdca9x10,_0xdca9x11[_0x3c76[38]](_0x3c76[37])))};return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[36],_0xdca9x10,_0xdca9x11))};AGIChannel[_0x3c76[17]][_0x3c76[39]]= function(_0xdca9x12){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[40],_0xdca9x12))};AGIChannel[_0x3c76[17]][_0x3c76[41]]= function(_0xdca9x13){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[42],_0xdca9x13))};AGIChannel[_0x3c76[17]][_0x3c76[43]]= function(_0xdca9x14){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[44],_0xdca9x14))};AGIChannel[_0x3c76[17]][_0x3c76[19]]= function(){return this[_0x3c76[21]](_0x3c76[45])};AGIChannel[_0x3c76[17]][_0x3c76[46]]= function(_0xdca9x15,_0xdca9x16){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[47],_0xdca9x15,_0xdca9x16))};AGIChannel[_0x3c76[17]][_0x3c76[48]]= function(_0xdca9x17,_0xdca9x18){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[49],_0xdca9x17,_0xdca9x18))};AGIChannel[_0x3c76[17]][_0x3c76[50]]= function(_0xdca9x19,_0xdca9x18){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[51],_0xdca9x19,_0xdca9x18))};AGIChannel[_0x3c76[17]][_0x3c76[52]]= function(_0xdca9x1a,_0xdca9x18){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[53],_0xdca9x1a,_0xdca9x18))};AGIChannel[_0x3c76[17]][_0x3c76[54]]= function(_0xdca9x12,_0xdca9x13,_0xdca9x14){_0xdca9x13= _0xdca9x13|| this[_0x3c76[8]][_0x3c76[55]];_0xdca9x14= _0xdca9x14|| 1;this[_0x3c76[39]](_0xdca9x12);this[_0x3c76[41]](_0xdca9x13);this[_0x3c76[43]](_0xdca9x14);return this[_0x3c76[31]](util[_0x3c76[30]](_0x3c76[56],_0xdca9x12,_0xdca9x13,_0xdca9x14))};AGIChannel[_0x3c76[17]][_0x3c76[57]]= function(_0xdca9x15){return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[58],_0xdca9x15))};AGIChannel[_0x3c76[17]][_0x3c76[59]]= function(_0xdca9xc,_0xdca9x1b,_0xdca9x18,_0xdca9xd,_0xdca9x1c,_0xdca9x1d){_0xdca9x1b= _0xdca9x1b|| _0x3c76[60];_0xdca9x18= _0xdca9x18|| _0x3c76[61];_0xdca9xd= (_0xdca9xd=== undefined)?-1:((_0xdca9xd=== _0x3c76[62])?-1:_0xdca9xd* 1000);_0xdca9x1c= (_0xdca9x1c=== undefined)?_0x3c76[61]:_0x3c76[63]+ _0xdca9x1c;_0xdca9x1d= (_0xdca9x1d)?_0x3c76[64]:_0x3c76[61];return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[65],_0xdca9xc,_0xdca9x1b,_0xdca9x18,_0xdca9xd,_0xdca9x1d,_0xdca9x1c))};AGIChannel[_0x3c76[17]][_0x3c76[66]]= function(_0xdca9xc,_0xdca9x18){_0xdca9x18= _0xdca9x18|| _0x3c76[61];return this[_0x3c76[21]](util[_0x3c76[30]](_0x3c76[67],_0xdca9xc,_0xdca9x18))};AGIChannel[_0x3c76[17]][_0x3c76[68]]= function(_0xdca9x11){return this[_0x3c76[34]](_0x3c76[69],_0xdca9x11)};AGIChannel[_0x3c76[17]][_0x3c76[11]]= function(_0xdca9x1e,_0xdca9x1f){this[_0x3c76[31]](util[_0x3c76[30]](_0x3c76[70],_0xdca9x1e[_0x3c76[71]],_0xdca9x1e[_0x3c76[72]],_0xdca9x1f));return {code:500,result:_0x3c76[62],extra:_0x3c76[61]}};AGIChannel[_0x3c76[17]][_0x3c76[73]]= function(_0xdca9x20){return this[_0x3c76[34]](_0x3c76[74],_0xdca9x20)};module[_0x3c76[75]]= AGIChannel