Built motion from commit 67e5df37.|2.0.64
[motion2.git] / server / services / agi / channel.js
index d6e2756..ce4dfc9 100644 (file)
@@ -1 +1 @@
-var _0x39b9=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\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","\x2E\x2F\x65\x72\x72\x6F\x72","\x63\x61\x6C\x6C","\x75\x74\x66\x38","\x73\x65\x74\x45\x6E\x63\x6F\x64\x69\x6E\x67","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x68\x65\x61\x64\x65\x72\x73","\x72\x65\x61\x64\x79","\x65\x6D\x69\x74","\x6F\x6E","\x6C\x69\x6E\x65","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x68\x61\x6E\x67\x75\x70","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x35\x32\x30\x2D\x49\x6E\x76\x61\x6C\x69\x64","\x72\x78","\x0A","\x35\x32\x30\x20\x45\x6E\x64\x20\x6F\x66\x20\x70\x72\x6F\x70\x65\x72","\x73\x65\x61\x72\x63\x68","\x63\x62","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x6E\x6F\x20\x63\x6F\x64\x65","\x4B\x4F","\x72\x65\x73\x75\x6C\x74\x3D","","\x72\x65\x70\x6C\x61\x63\x65","\x20","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x75\x62\x73\x74\x72","\x2D\x31","\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x6D\x61\x74\x63\x68","\x65\x72\x72\x6F\x72","\x45\x5F\x41\x47\x49\x5F\x53\x4F\x43\x4B\x45\x54\x5F\x45\x52\x52\x4F\x52","\x63\x6F\x64\x65","\x63\x6C\x6F\x73\x65","\x45\x5F\x41\x47\x49\x5F\x53\x4F\x43\x4B\x45\x54\x5F\x43\x4C\x4F\x53\x45","\x74\x69\x6D\x65\x6F\x75\x74","\x45\x5F\x41\x47\x49\x5F\x53\x4F\x43\x4B\x45\x54\x5F\x54\x49\x4D\x45\x4F\x55\x54","\x64\x65\x73\x74\x72\x6F\x79","\x70\x69\x70\x65","\x63\x6F\x6D\x6D\x61\x6E\x64","\x77\x72\x69\x74\x65","\x69\x6E\x68\x65\x72\x69\x74\x73","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\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\x22\x25\x73\x22\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","\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","\x77\x61\x69\x74","\x57\x41\x49\x54","\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","\x65\x78\x70\x6F\x72\x74\x73"];_0x39b9[0];var util=require(_0x39b9[1]);var _=require(_0x39b9[2]);var EventEmitter=require(_0x39b9[4])[_0x39b9[3]];var AGIReply=require(_0x39b9[5]);var AGIError=require(_0x39b9[6]);function AGIChannel(_0x6f63x7){var _0x6f63x8=this,_0x6f63x9= new AGIReply(),_0x6f63xa=false,_0x6f63xb={};EventEmitter[_0x39b9[7]](_0x6f63x8);_0x6f63x7[_0x39b9[9]](_0x39b9[8]);_0x6f63x7[_0x39b9[10]](8* 60* 60* 1000);_0x6f63x9[_0x39b9[9]](_0x39b9[8]);_0x6f63x9[_0x39b9[14]](_0x39b9[11],function(_0x6f63xc){for(var _0x6f63xd in _0x6f63xc){_0x6f63x8[_0x6f63xd]= _0x6f63xc[_0x6f63xd]};_0x6f63x8[_0x39b9[13]](_0x39b9[12])});_0x6f63x9[_0x39b9[14]](_0x39b9[15],function(_0x6f63xe){if(_0x6f63xe[_0x39b9[16]]()== _0x39b9[17]){_0x6f63x8[_0x39b9[13]](_0x39b9[17]);return};if(_0x6f63xe[_0x39b9[18]](0,11)== _0x39b9[19]){_0x6f63xa= true};if(_0x6f63xa){_0x6f63xb[_0x39b9[20]]+= _0x6f63xe+ _0x39b9[21];if(_0x6f63xe[_0x39b9[23]](_0x39b9[22])!=  -1){_0x6f63xa= false}}else {_0x6f63xb[_0x39b9[20]]= _0x6f63xe};if(_0x6f63xa){return};if( typeof _0x6f63xb[_0x39b9[24]]== _0x39b9[25]){var _0x6f63xf=_0x6f63xb[_0x39b9[20]][_0x39b9[18]](0,3),_0x6f63x10=null,_0x6f63x11=null;_0x6f63xf= parseInt(_0x6f63xf);if(isNaN(_0x6f63xf)){_0x6f63xb[_0x39b9[24]](null,{code:500,result:-1,extra:_0x39b9[26]});return};if(_0x6f63xf!= 200){_0x6f63xb[_0x39b9[24]](null,{code:_0x6f63xf,result:-1,extra:_0x39b9[27]});return};_0x6f63x10= _0x6f63xb[_0x39b9[20]][_0x39b9[18]](4)[_0x39b9[30]](_0x39b9[28],_0x39b9[29]);if(_0x6f63x10[_0x39b9[32]](_0x39b9[31])!=  -1){_0x6f63x10= _0x6f63x10[_0x39b9[33]](0,_0x6f63x10[_0x39b9[32]](_0x39b9[31]))};if(_[_0x39b9[35]](_0x6f63x10,_0x39b9[34])){_0x6f63x10= parseInt(_0x6f63x10)};_0x6f63x11= _0x6f63xb[_0x39b9[20]][_0x39b9[36]](_0x39b9[31]);if(_0x6f63x11[_0x39b9[37]]== 3){_0x6f63x11= _0x6f63x11[2][_0x39b9[18]](1,_0x6f63x11[2][_0x39b9[37]]- 1)}else {if(_0x6f63x11[_0x39b9[37]]> 3){var _0x6f63x12=/\((.+)\)/;var _0x6f63x13=_0x6f63xb[_0x39b9[20]][_0x39b9[38]](_0x6f63x12);if(_0x6f63x13){_0x6f63x11= _0x6f63x13[1]}else {_0x6f63x11= null}}else {_0x6f63x11= null}};_0x6f63xb[_0x39b9[24]](null,{code:_0x6f63xf,result:_0x6f63x10,extra:_0x6f63x11})}});_0x6f63x7[_0x39b9[14]](_0x39b9[39],function(_0x6f63x14){_0x6f63x8[_0x39b9[13]](_0x39b9[39], new AGIError(_0x39b9[40],_0x6f63x14[_0x39b9[41]]))});_0x6f63x7[_0x39b9[14]](_0x39b9[42],function(){_0x6f63x8[_0x39b9[13]](_0x39b9[42], new AGIError(_0x39b9[43]))});_0x6f63x7[_0x39b9[14]](_0x39b9[44],function(){_0x6f63x8[_0x39b9[13]](_0x39b9[44], new AGIError(_0x39b9[45]));_0x6f63x7[_0x39b9[46]]()});_0x6f63x7[_0x39b9[47]](_0x6f63x9);this[_0x39b9[48]]= function(_0x6f63x15,_0x6f63x16){var _0x6f63x15=_0x6f63x15|| _0x39b9[29],_0x6f63x16=( typeof _0x6f63x16== _0x39b9[25])?_0x6f63x16: new Function();_0x6f63xb= {tx:_0x6f63x15,rx:_0x39b9[29],cb:_0x6f63x16};_0x6f63x7[_0x39b9[49]](_0x6f63x15+ _0x39b9[21])},this[_0x39b9[42]]= function(){_0x6f63x7[_0x39b9[46]]()}}util[_0x39b9[50]](AGIChannel,EventEmitter);AGIChannel[_0x39b9[52]][_0x39b9[51]]= function(_0x6f63x17){return this[_0x39b9[48]][_0x39b9[53]](this,_0x6f63x17)};AGIChannel[_0x39b9[52]][_0x39b9[54]]= function(){return this[_0x39b9[51]](_0x39b9[55])};AGIChannel[_0x39b9[52]][_0x39b9[56]]= function(_0x6f63x18,_0x6f63x19,_0x6f63x1a){_0x6f63x18= (_0x6f63x18=== undefined)?_0x39b9[57]:_0x6f63x18;_0x6f63x19= (_0x6f63x19=== undefined)?_0x39b9[58]:_0x6f63x19;_0x6f63x1a= (_0x6f63x1a=== undefined)?_0x39b9[59]:_0x6f63x1a;return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[60],_0x6f63x18,_0x6f63x19* 1000,_0x6f63x1a))};AGIChannel[_0x39b9[52]][_0x39b9[62]]= function(_0x6f63x1b){_0x6f63x1b= _0x6f63x1b|| _0x39b9[63];return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[64],_0x6f63x1b))};AGIChannel[_0x39b9[52]][_0x39b9[65]]= function(_0x6f63x1c,_0x6f63x1d){if(_[_0x39b9[66]](_0x6f63x1d)){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[67],_0x6f63x1c,_0x6f63x1d[_0x39b9[69]](_0x39b9[68])))};return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[67],_0x6f63x1c,_0x6f63x1d))};AGIChannel[_0x39b9[52]][_0x39b9[70]]= function(_0x6f63x1e){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[71],_0x6f63x1e))};AGIChannel[_0x39b9[52]][_0x39b9[72]]= function(_0x6f63x1f){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[73],_0x6f63x1f))};AGIChannel[_0x39b9[52]][_0x39b9[74]]= function(_0x6f63x20){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[75],_0x6f63x20))};AGIChannel[_0x39b9[52]][_0x39b9[17]]= function(){return this[_0x39b9[51]](_0x39b9[76])};AGIChannel[_0x39b9[52]][_0x39b9[77]]= function(_0x6f63x21,_0x6f63x22){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[78],_0x6f63x21,_0x6f63x22?_0x6f63x22.toString()[_0x39b9[30]](/(\r\n|\n|\r)/gm,_0x39b9[31]):_0x39b9[29]))};AGIChannel[_0x39b9[52]][_0x39b9[79]]= function(_0x6f63x23,_0x6f63x24){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[80],_0x6f63x23,_0x6f63x24))};AGIChannel[_0x39b9[52]][_0x39b9[81]]= function(_0x6f63x25,_0x6f63x24){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[82],_0x6f63x25,_0x6f63x24))};AGIChannel[_0x39b9[52]][_0x39b9[83]]= function(_0x6f63x26,_0x6f63x24){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[84],_0x6f63x26,_0x6f63x24))};AGIChannel[_0x39b9[52]][_0x39b9[85]]= function(_0x6f63x1e,_0x6f63x1f,_0x6f63x20){_0x6f63x1f= _0x6f63x1f|| this[_0x39b9[86]];_0x6f63x20= _0x6f63x20|| 1;this[_0x39b9[70]](_0x6f63x1e);this[_0x39b9[72]](_0x6f63x1f);this[_0x39b9[74]](_0x6f63x20);return this[_0x39b9[62]](util[_0x39b9[61]](_0x39b9[87],_0x6f63x1e,_0x6f63x1f,_0x6f63x20))};AGIChannel[_0x39b9[52]][_0x39b9[88]]= function(_0x6f63x21){return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[89],_0x6f63x21))};AGIChannel[_0x39b9[52]][_0x39b9[90]]= function(_0x6f63x18,_0x6f63x27,_0x6f63x24,_0x6f63x19,_0x6f63x28,_0x6f63x29){_0x6f63x27= _0x6f63x27|| _0x39b9[91];_0x6f63x24= _0x6f63x24|| _0x39b9[29];_0x6f63x19= (_0x6f63x19=== undefined)?-1:((_0x6f63x19=== _0x39b9[34])?-1:_0x6f63x19* 1000);_0x6f63x28= (_0x6f63x28=== undefined)?_0x39b9[29]:_0x39b9[92]+ _0x6f63x28;_0x6f63x29= (_0x6f63x29)?_0x39b9[93]:_0x39b9[29];return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[94],_0x6f63x18,_0x6f63x27,_0x6f63x24,_0x6f63x19,_0x6f63x29,_0x6f63x28))};AGIChannel[_0x39b9[52]][_0x39b9[95]]= function(_0x6f63x18,_0x6f63x24){_0x6f63x24= _0x6f63x24|| _0x39b9[29];return this[_0x39b9[51]](util[_0x39b9[61]](_0x39b9[96],_0x6f63x18,_0x6f63x24))};AGIChannel[_0x39b9[52]][_0x39b9[97]]= function(_0x6f63x1d){return this[_0x39b9[65]](_0x39b9[98],_0x6f63x1d)};AGIChannel[_0x39b9[52]][_0x39b9[99]]= function(_0x6f63x2a){return this[_0x39b9[65]](_0x39b9[100],_0x6f63x2a)};AGIChannel[_0x39b9[52]][_0x39b9[39]]= function(_0x6f63x2b,_0x6f63x2c){this[_0x39b9[62]](util[_0x39b9[61]](_0x39b9[101],_0x6f63x2b[_0x39b9[102]],_0x6f63x2b[_0x39b9[103]],_0x6f63x2c));return {code:500,result:_0x39b9[34],extra:_0x39b9[29]}};module[_0x39b9[104]]= AGIChannel
\ No newline at end of file
+var _0xe34a=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\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","\x2E\x2F\x65\x72\x72\x6F\x72","\x63\x61\x6C\x6C","\x75\x74\x66\x38","\x73\x65\x74\x45\x6E\x63\x6F\x64\x69\x6E\x67","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x68\x65\x61\x64\x65\x72\x73","\x72\x65\x61\x64\x79","\x65\x6D\x69\x74","\x6F\x6E","\x6C\x69\x6E\x65","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x68\x61\x6E\x67\x75\x70","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x35\x32\x30\x2D\x49\x6E\x76\x61\x6C\x69\x64","\x72\x78","\x0A","\x35\x32\x30\x20\x45\x6E\x64\x20\x6F\x66\x20\x70\x72\x6F\x70\x65\x72","\x73\x65\x61\x72\x63\x68","\x63\x62","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x6E\x6F\x20\x63\x6F\x64\x65","\x4B\x4F","\x72\x65\x73\x75\x6C\x74\x3D","","\x72\x65\x70\x6C\x61\x63\x65","\x20","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x75\x62\x73\x74\x72","\x2D\x31","\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x6D\x61\x74\x63\x68","\x65\x72\x72\x6F\x72","\x45\x5F\x41\x47\x49\x5F\x53\x4F\x43\x4B\x45\x54\x5F\x45\x52\x52\x4F\x52","\x63\x6F\x64\x65","\x63\x6C\x6F\x73\x65","\x45\x5F\x41\x47\x49\x5F\x53\x4F\x43\x4B\x45\x54\x5F\x43\x4C\x4F\x53\x45","\x74\x69\x6D\x65\x6F\x75\x74","\x45\x5F\x41\x47\x49\x5F\x53\x4F\x43\x4B\x45\x54\x5F\x54\x49\x4D\x45\x4F\x55\x54","\x64\x65\x73\x74\x72\x6F\x79","\x70\x69\x70\x65","\x63\x6F\x6D\x6D\x61\x6E\x64","\x77\x72\x69\x74\x65","\x69\x6E\x68\x65\x72\x69\x74\x73","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\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\x22\x25\x73\x22\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","\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","\x77\x61\x69\x74","\x57\x41\x49\x54","\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","\x65\x78\x70\x6F\x72\x74\x73"];_0xe34a[0];var util=require(_0xe34a[1]);var _=require(_0xe34a[2]);var EventEmitter=require(_0xe34a[4])[_0xe34a[3]];var AGIReply=require(_0xe34a[5]);var AGIError=require(_0xe34a[6]);function AGIChannel(_0xe00ax7){var _0xe00ax8=this,_0xe00ax9= new AGIReply(),_0xe00axa=false,_0xe00axb={};EventEmitter[_0xe34a[7]](_0xe00ax8);_0xe00ax7[_0xe34a[9]](_0xe34a[8]);_0xe00ax7[_0xe34a[10]](8* 60* 60* 1000);_0xe00ax9[_0xe34a[9]](_0xe34a[8]);_0xe00ax9[_0xe34a[14]](_0xe34a[11],function(_0xe00axc){for(var _0xe00axd in _0xe00axc){_0xe00ax8[_0xe00axd]= _0xe00axc[_0xe00axd]};_0xe00ax8[_0xe34a[13]](_0xe34a[12])});_0xe00ax9[_0xe34a[14]](_0xe34a[15],function(_0xe00axe){if(_0xe00axe[_0xe34a[16]]()== _0xe34a[17]){_0xe00ax8[_0xe34a[13]](_0xe34a[17]);return};if(_0xe00axe[_0xe34a[18]](0,11)== _0xe34a[19]){_0xe00axa= true};if(_0xe00axa){_0xe00axb[_0xe34a[20]]+= _0xe00axe+ _0xe34a[21];if(_0xe00axe[_0xe34a[23]](_0xe34a[22])!=  -1){_0xe00axa= false}}else {_0xe00axb[_0xe34a[20]]= _0xe00axe};if(_0xe00axa){return};if( typeof _0xe00axb[_0xe34a[24]]== _0xe34a[25]){var _0xe00axf=_0xe00axb[_0xe34a[20]][_0xe34a[18]](0,3),_0xe00ax10=null,_0xe00ax11=null;_0xe00axf= parseInt(_0xe00axf);if(isNaN(_0xe00axf)){_0xe00axb[_0xe34a[24]](null,{code:500,result:-1,extra:_0xe34a[26]});return};if(_0xe00axf!= 200){_0xe00axb[_0xe34a[24]](null,{code:_0xe00axf,result:-1,extra:_0xe34a[27]});return};_0xe00ax10= _0xe00axb[_0xe34a[20]][_0xe34a[18]](4)[_0xe34a[30]](_0xe34a[28],_0xe34a[29]);if(_0xe00ax10[_0xe34a[32]](_0xe34a[31])!=  -1){_0xe00ax10= _0xe00ax10[_0xe34a[33]](0,_0xe00ax10[_0xe34a[32]](_0xe34a[31]))};if(_[_0xe34a[35]](_0xe00ax10,_0xe34a[34])){_0xe00ax10= parseInt(_0xe00ax10)};_0xe00ax11= _0xe00axb[_0xe34a[20]][_0xe34a[36]](_0xe34a[31]);if(_0xe00ax11[_0xe34a[37]]== 3){_0xe00ax11= _0xe00ax11[2][_0xe34a[18]](1,_0xe00ax11[2][_0xe34a[37]]- 1)}else {if(_0xe00ax11[_0xe34a[37]]> 3){var _0xe00ax12=/\((.+)\)/;var _0xe00ax13=_0xe00axb[_0xe34a[20]][_0xe34a[38]](_0xe00ax12);if(_0xe00ax13){_0xe00ax11= _0xe00ax13[1]}else {_0xe00ax11= null}}else {_0xe00ax11= null}};_0xe00axb[_0xe34a[24]](null,{code:_0xe00axf,result:_0xe00ax10,extra:_0xe00ax11})}});_0xe00ax7[_0xe34a[14]](_0xe34a[39],function(_0xe00ax14){_0xe00ax8[_0xe34a[13]](_0xe34a[39], new AGIError(_0xe34a[40],_0xe00ax14[_0xe34a[41]]))});_0xe00ax7[_0xe34a[14]](_0xe34a[42],function(){_0xe00ax8[_0xe34a[13]](_0xe34a[42], new AGIError(_0xe34a[43]))});_0xe00ax7[_0xe34a[14]](_0xe34a[44],function(){_0xe00ax8[_0xe34a[13]](_0xe34a[44], new AGIError(_0xe34a[45]));_0xe00ax7[_0xe34a[46]]()});_0xe00ax7[_0xe34a[47]](_0xe00ax9);this[_0xe34a[48]]= function(_0xe00ax15,_0xe00ax16){var _0xe00ax15=_0xe00ax15|| _0xe34a[29],_0xe00ax16=( typeof _0xe00ax16== _0xe34a[25])?_0xe00ax16: new Function();_0xe00axb= {tx:_0xe00ax15,rx:_0xe34a[29],cb:_0xe00ax16};_0xe00ax7[_0xe34a[49]](_0xe00ax15+ _0xe34a[21])},this[_0xe34a[42]]= function(){_0xe00ax7[_0xe34a[46]]()}}util[_0xe34a[50]](AGIChannel,EventEmitter);AGIChannel[_0xe34a[52]][_0xe34a[51]]= function(_0xe00ax17){return this[_0xe34a[48]][_0xe34a[53]](this,_0xe00ax17)};AGIChannel[_0xe34a[52]][_0xe34a[54]]= function(){return this[_0xe34a[51]](_0xe34a[55])};AGIChannel[_0xe34a[52]][_0xe34a[56]]= function(_0xe00ax18,_0xe00ax19,_0xe00ax1a){_0xe00ax18= (_0xe00ax18=== undefined)?_0xe34a[57]:_0xe00ax18;_0xe00ax19= (_0xe00ax19=== undefined)?_0xe34a[58]:_0xe00ax19;_0xe00ax1a= (_0xe00ax1a=== undefined)?_0xe34a[59]:_0xe00ax1a;return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[60],_0xe00ax18,_0xe00ax19* 1000,_0xe00ax1a))};AGIChannel[_0xe34a[52]][_0xe34a[62]]= function(_0xe00ax1b){_0xe00ax1b= _0xe00ax1b|| _0xe34a[63];return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[64],_0xe00ax1b))};AGIChannel[_0xe34a[52]][_0xe34a[65]]= function(_0xe00ax1c,_0xe00ax1d){if(_[_0xe34a[66]](_0xe00ax1d)){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[67],_0xe00ax1c,_0xe00ax1d[_0xe34a[69]](_0xe34a[68])))};return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[67],_0xe00ax1c,_0xe00ax1d))};AGIChannel[_0xe34a[52]][_0xe34a[70]]= function(_0xe00ax1e){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[71],_0xe00ax1e))};AGIChannel[_0xe34a[52]][_0xe34a[72]]= function(_0xe00ax1f){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[73],_0xe00ax1f))};AGIChannel[_0xe34a[52]][_0xe34a[74]]= function(_0xe00ax20){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[75],_0xe00ax20))};AGIChannel[_0xe34a[52]][_0xe34a[17]]= function(){return this[_0xe34a[51]](_0xe34a[76])};AGIChannel[_0xe34a[52]][_0xe34a[77]]= function(_0xe00ax21,_0xe00ax22){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[78],_0xe00ax21,_0xe00ax22?_0xe00ax22.toString()[_0xe34a[30]](/(\r\n|\n|\r)/gm,_0xe34a[31]):_0xe34a[29]))};AGIChannel[_0xe34a[52]][_0xe34a[79]]= function(_0xe00ax23,_0xe00ax24){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[80],_0xe00ax23,_0xe00ax24))};AGIChannel[_0xe34a[52]][_0xe34a[81]]= function(_0xe00ax25,_0xe00ax24){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[82],_0xe00ax25,_0xe00ax24))};AGIChannel[_0xe34a[52]][_0xe34a[83]]= function(_0xe00ax26,_0xe00ax24){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[84],_0xe00ax26,_0xe00ax24))};AGIChannel[_0xe34a[52]][_0xe34a[85]]= function(_0xe00ax1e,_0xe00ax1f,_0xe00ax20){_0xe00ax1f= _0xe00ax1f|| this[_0xe34a[86]];_0xe00ax20= _0xe00ax20|| 1;this[_0xe34a[70]](_0xe00ax1e);this[_0xe34a[72]](_0xe00ax1f);this[_0xe34a[74]](_0xe00ax20);return this[_0xe34a[62]](util[_0xe34a[61]](_0xe34a[87],_0xe00ax1e,_0xe00ax1f,_0xe00ax20))};AGIChannel[_0xe34a[52]][_0xe34a[88]]= function(_0xe00ax21){return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[89],_0xe00ax21))};AGIChannel[_0xe34a[52]][_0xe34a[90]]= function(_0xe00ax18,_0xe00ax27,_0xe00ax24,_0xe00ax19,_0xe00ax28,_0xe00ax29){_0xe00ax27= _0xe00ax27|| _0xe34a[91];_0xe00ax24= _0xe00ax24|| _0xe34a[29];_0xe00ax19= (_0xe00ax19=== undefined)?-1:((_0xe00ax19=== _0xe34a[34])?-1:_0xe00ax19* 1000);_0xe00ax28= (_0xe00ax28=== undefined)?_0xe34a[29]:_0xe34a[92]+ _0xe00ax28;_0xe00ax29= (_0xe00ax29)?_0xe34a[93]:_0xe34a[29];return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[94],_0xe00ax18,_0xe00ax27,_0xe00ax24,_0xe00ax19,_0xe00ax29,_0xe00ax28))};AGIChannel[_0xe34a[52]][_0xe34a[95]]= function(_0xe00ax18,_0xe00ax24){_0xe00ax24= _0xe00ax24|| _0xe34a[29];return this[_0xe34a[51]](util[_0xe34a[61]](_0xe34a[96],_0xe00ax18,_0xe00ax24))};AGIChannel[_0xe34a[52]][_0xe34a[97]]= function(_0xe00ax1d){return this[_0xe34a[65]](_0xe34a[98],_0xe00ax1d)};AGIChannel[_0xe34a[52]][_0xe34a[99]]= function(_0xe00ax2a){return this[_0xe34a[65]](_0xe34a[100],_0xe00ax2a)};AGIChannel[_0xe34a[52]][_0xe34a[39]]= function(_0xe00ax2b,_0xe00ax2c){this[_0xe34a[62]](util[_0xe34a[61]](_0xe34a[101],_0xe00ax2b[_0xe34a[102]],_0xe00ax2b[_0xe34a[103]],_0xe00ax2c));return {code:500,result:_0xe34a[34],extra:_0xe34a[29]}};module[_0xe34a[104]]= AGIChannel
\ No newline at end of file