Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / services / agi / channel.js
index 9bfdd33..2986116 100644 (file)
@@ -1 +1 @@
-const a1026_0x17cb=['answer','close','emit','error','isArray','code','hangup','BEEP','EXEC\x20%s\x20%s','beep','SAY\x20NUMBER\x20%s\x20%s','destroy','E_AGI_SOCKET_CLOSE','continueAt','agi','timeout','wait','substr','SET\x20CONTEXT\x20%s','520-Invalid','replace','command','extension','GOTO\x20%s\x20%s\x20%s','prototype','streamFile','setPriority','isNumber','WAIT','setEncoding','utf8','length','startsWith','line','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','headers','format','ANSWER','./reply','sendRequest','toString','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','noop','E_AGI_SOCKET_TIMEOUT','setVariable','EventEmitter','sayPhonetic','wav','inherits','SET\x20EXTENSION\x20%s','join','VERBOSE\x20\x22%s\x22','result=','function','setTimeout','split','HANGUP','exec','AGI','toLowerCase','pipe','recordFile','sayNumber','util','substring','write','sync','SET\x20PRIORITY\x20%s','indexOf','getData','search','setContext','match','setExtension'];(function(_0x57d70a,_0x17cbec){const _0x53b859=function(_0x3c82ec){while(--_0x3c82ec){_0x57d70a['push'](_0x57d70a['shift']());}};_0x53b859(++_0x17cbec);}(a1026_0x17cb,0x1c0));const a1026_0x53b8=function(_0x57d70a,_0x17cbec){_0x57d70a=_0x57d70a-0x0;let _0x53b859=a1026_0x17cb[_0x57d70a];return _0x53b859;};const _0x5bc0d1=a1026_0x53b8;'use strict';const util=require(_0x5bc0d1('0x3b')),_=require('lodash'),EventEmitter=require('events')[_0x5bc0d1('0x29')],AGIReply=require(_0x5bc0d1('0x22')),AGIError=require('./error');function AGIChannel(_0x3c82ec){const _0x446885=_0x5bc0d1,_0x562705=this,_0x238c7f=new AGIReply();let _0x54b630=![],_0x5afe54={};EventEmitter['call'](_0x562705),_0x3c82ec['setEncoding'](_0x446885('0x1a')),_0x3c82ec[_0x446885('0x32')](0x8*0x3c*0x3c*0x3e8),_0x238c7f[_0x446885('0x19')](_0x446885('0x1a')),_0x238c7f['on'](_0x446885('0x1f'),function(_0x3c7fce){for(const _0x4965a1 in _0x3c7fce){_0x562705[_0x4965a1]=_0x3c7fce[_0x4965a1];}_0x562705['emit']('ready');}),_0x238c7f['on'](_0x446885('0x1d'),function(_0x184d3c){const _0x165fbc=_0x446885;if(_0x184d3c[_0x165fbc('0x37')]()==_0x165fbc('0x2')){_0x562705['emit']('hangup');return;}_0x184d3c['substring'](0x0,0xb)==_0x165fbc('0xf')&&(_0x54b630=!![]);_0x54b630?(_0x5afe54['rx']+=_0x184d3c+'\x0a',_0x184d3c[_0x165fbc('0x42')]('520\x20End\x20of\x20proper')!=-0x1&&(_0x54b630=![])):_0x5afe54['rx']=_0x184d3c;if(_0x54b630)return;if(typeof _0x5afe54['cb']=='function'){let _0x456aa9=_0x5afe54['rx'][_0x165fbc('0x3c')](0x0,0x3),_0x3d2105=null,_0x4db187=null;_0x456aa9=parseInt(_0x456aa9);if(isNaN(_0x456aa9)){_0x5afe54['cb'](null,{'code':0x1f4,'result':-0x1,'extra':'no\x20code'});return;}if(_0x456aa9!=0xc8){_0x5afe54['cb'](null,{'code':_0x456aa9,'result':-0x1,'extra':'KO'});return;}_0x3d2105=_0x5afe54['rx']['substring'](0x4)[_0x165fbc('0x10')](_0x165fbc('0x30'),'');_0x3d2105[_0x165fbc('0x40')]('\x20')!=-0x1&&(_0x3d2105=_0x3d2105[_0x165fbc('0xd')](0x0,_0x3d2105[_0x165fbc('0x40')]('\x20')));_[_0x165fbc('0x1c')](_0x3d2105,'-1')&&(_0x3d2105=parseInt(_0x3d2105));_0x4db187=_0x5afe54['rx'][_0x165fbc('0x33')]('\x20');if(_0x4db187['length']==0x3)_0x4db187=_0x4db187[0x2][_0x165fbc('0x3c')](0x1,_0x4db187[0x2][_0x165fbc('0x1b')]-0x1);else{if(_0x4db187[_0x165fbc('0x1b')]>0x3){const _0x12e6a4=/\((.+)\)/,_0x339b3e=_0x5afe54['rx'][_0x165fbc('0x44')](_0x12e6a4);_0x339b3e?_0x4db187=_0x339b3e[0x1]:_0x4db187=null;}else _0x4db187=null;}_0x5afe54['cb'](null,{'code':_0x456aa9,'result':_0x3d2105,'extra':_0x4db187});}}),_0x3c82ec['on']('error',function(_0x86d3b6){const _0x46ba86=_0x446885;_0x562705[_0x46ba86('0x48')]('error',new AGIError('E_AGI_SOCKET_ERROR',_0x86d3b6[_0x46ba86('0x1')]));}),_0x3c82ec['on']('close',function(){const _0x1eafcb=_0x446885;_0x562705[_0x1eafcb('0x48')](_0x1eafcb('0x47'),new AGIError(_0x1eafcb('0x8')));}),_0x3c82ec['on'](_0x446885('0xb'),function(){const _0x5eddd6=_0x446885;_0x562705[_0x5eddd6('0x48')](_0x5eddd6('0xb'),new AGIError(_0x5eddd6('0x27'))),_0x3c82ec[_0x5eddd6('0x7')]();}),_0x3c82ec[_0x446885('0x38')](_0x238c7f),(this[_0x446885('0x11')]=function(_0x11f06d,_0x5a419e){const _0x3cc46f=_0x446885;_0x11f06d=_0x11f06d||'',_0x5a419e=typeof _0x5a419e==_0x3cc46f('0x31')?_0x5a419e:new Function(),_0x5afe54={'tx':_0x11f06d,'rx':'','cb':_0x5a419e},_0x3c82ec[_0x3cc46f('0x3d')](_0x11f06d+'\x0a');},this[_0x446885('0x47')]=function(){const _0x9bc8d5=_0x446885;_0x3c82ec[_0x9bc8d5('0x7')]();});}util[_0x5bc0d1('0x2c')](AGIChannel,EventEmitter),AGIChannel[_0x5bc0d1('0x14')]['sendRequest']=function(_0x6b3973){const _0x5609af=_0x5bc0d1;return this[_0x5609af('0x11')][_0x5609af('0x3e')](this,_0x6b3973);},AGIChannel['prototype'][_0x5bc0d1('0x46')]=function(){const _0x3f0c89=_0x5bc0d1;return this['sendRequest'](_0x3f0c89('0x21'));},AGIChannel['prototype'][_0x5bc0d1('0x41')]=function(_0x200be9,_0x3747c8,_0x526053){const _0x778e05=_0x5bc0d1;return _0x200be9=_0x200be9===undefined?_0x778e05('0x5'):_0x200be9,_0x3747c8=_0x3747c8===undefined?'5':_0x3747c8,_0x526053=_0x526053===undefined?'1':_0x526053,this['sendRequest'](util[_0x778e05('0x20')]('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x200be9,_0x3747c8*0x3e8,_0x526053));},AGIChannel['prototype'][_0x5bc0d1('0x26')]=function(_0x3b19d2){const _0x5d363c=_0x5bc0d1;return _0x3b19d2=_0x3b19d2||'NO\x20MESSAGE',this[_0x5d363c('0x23')](util[_0x5d363c('0x20')](_0x5d363c('0x2f'),_0x3b19d2));},AGIChannel[_0x5bc0d1('0x14')]['exec']=function(_0x39f9f0,_0x12d3e2){const _0x17cc3c=_0x5bc0d1;if(_[_0x17cc3c('0x0')](_0x12d3e2))return this['sendRequest'](util[_0x17cc3c('0x20')](_0x17cc3c('0x4'),_0x39f9f0,_0x12d3e2[_0x17cc3c('0x2e')](',')));return this[_0x17cc3c('0x23')](util['format'](_0x17cc3c('0x4'),_0x39f9f0,_0x12d3e2));},AGIChannel['prototype'][_0x5bc0d1('0x43')]=function(_0x2eb5a4){const _0x44c81d=_0x5bc0d1;return this[_0x44c81d('0x23')](util[_0x44c81d('0x20')](_0x44c81d('0xe'),_0x2eb5a4));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x45')]=function(_0x2caf30){const _0x5a6118=_0x5bc0d1;return this[_0x5a6118('0x23')](util[_0x5a6118('0x20')](_0x5a6118('0x2d'),_0x2caf30));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x16')]=function(_0x536ed5){const _0x13c49b=_0x5bc0d1;return this['sendRequest'](util[_0x13c49b('0x20')](_0x13c49b('0x3f'),_0x536ed5));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x2')]=function(){const _0x15cfe4=_0x5bc0d1;return this[_0x15cfe4('0x23')](_0x15cfe4('0x34'));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x28')]=function(_0x1097be,_0x6eff0a){const _0x407676=_0x5bc0d1,_0x47ea3b=_['isBoolean'](_0x6eff0a)||_[_0x407676('0x17')](_0x6eff0a)?_0x6eff0a[_0x407676('0x24')]():_0x6eff0a;return this[_0x407676('0x23')](util[_0x407676('0x20')]('SET\x20VARIABLE\x20%s\x20\x22%s\x22',_0x1097be,_0x47ea3b?_0x47ea3b[_0x407676('0x24')]()[_0x407676('0x10')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x3a')]=function(_0x1dba84,_0x3548ca){const _0x1feaa6=_0x5bc0d1;return this[_0x1feaa6('0x23')](util['format'](_0x1feaa6('0x6'),_0x1dba84,_0x3548ca));},AGIChannel['prototype']['sayDigits']=function(_0x1f6dbd,_0x2fd628){const _0x3fe906=_0x5bc0d1;return this[_0x3fe906('0x23')](util[_0x3fe906('0x20')]('SAY\x20DIGITS\x20%s\x20%s',_0x1f6dbd,_0x2fd628));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x2a')]=function(_0x5af199,_0x5892d9){const _0x2f1a56=_0x5bc0d1;return this[_0x2f1a56('0x23')](util[_0x2f1a56('0x20')](_0x2f1a56('0x1e'),_0x5af199,_0x5892d9));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x9')]=function(_0x723c77,_0x483566,_0xb3933b){const _0xbb6861=_0x5bc0d1;return _0x483566=_0x483566||this[_0xbb6861('0x12')],_0xb3933b=_0xb3933b||0x1,this[_0xbb6861('0x43')](_0x723c77),this[_0xbb6861('0x45')](_0x483566),this[_0xbb6861('0x16')](_0xb3933b),this['noop'](util[_0xbb6861('0x20')](_0xbb6861('0x13'),_0x723c77,_0x483566,_0xb3933b));},AGIChannel[_0x5bc0d1('0x14')]['getVariable']=function(_0x266033){const _0x468c70=_0x5bc0d1;return this[_0x468c70('0x23')](util[_0x468c70('0x20')]('GET\x20VARIABLE\x20\x22%s\x22',_0x266033));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x39')]=function(_0x1c138c,_0x53b89e,_0x3fb4c1,_0x3f8057,_0x5c976c,_0x12e2a6){const _0x1f82cf=_0x5bc0d1;return _0x53b89e=_0x53b89e||_0x1f82cf('0x2b'),_0x3fb4c1=_0x3fb4c1||'',_0x3f8057=_0x3f8057===undefined?-0x1:_0x3f8057==='-1'?-0x1:_0x3f8057*0x3e8,_0x5c976c=_0x5c976c===undefined?'':'s='+_0x5c976c,_0x12e2a6=_0x12e2a6?_0x1f82cf('0x3'):'',this['sendRequest'](util[_0x1f82cf('0x20')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x1c138c,_0x53b89e,_0x3fb4c1,_0x3f8057,_0x12e2a6,_0x5c976c));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x15')]=function(_0xf53135,_0x20b818){const _0xa33004=_0x5bc0d1;return _0x20b818=_0x20b818||'',this[_0xa33004('0x23')](util[_0xa33004('0x20')](_0xa33004('0x25'),_0xf53135,_0x20b818));},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0xa')]=function(_0x4bd6b2){const _0x1bcb98=_0x5bc0d1;return this['exec'](_0x1bcb98('0x36'),_0x4bd6b2);},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0xc')]=function(_0x30378f){const _0x48f52c=_0x5bc0d1;return this[_0x48f52c('0x35')](_0x48f52c('0x18'),_0x30378f);},AGIChannel[_0x5bc0d1('0x14')][_0x5bc0d1('0x49')]=function(_0x3bb973,_0x2c61d5){const _0x30251a=_0x5bc0d1;return this[_0x30251a('0x26')](util[_0x30251a('0x20')]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x3bb973['id'],_0x3bb973['label'],_0x2c61d5)),{'code':0x1f4,'result':'-1','extra':''};},module['exports']=AGIChannel;
\ No newline at end of file
+const a1026_0x215a=['E_AGI_SOCKET_CLOSE','./reply','isArray','isBoolean','error','streamFile','write','exports','HANGUP','isNumber','command','getVariable','SET\x20EXTENSION\x20%s','setPriority','timeout','close','search','replace','format','setExtension','line','join','SAY\x20NUMBER\x20%s\x20%s','prototype','sync','noop','function','sayPhonetic','setTimeout','call','SAY\x20DIGITS\x20%s\x20%s','label','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','EXEC\x20%s\x20%s','AGI','pipe','NO\x20MESSAGE','SET\x20CONTEXT\x20%s','520-Invalid','setContext','utf8','continueAt','length','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','split','VERBOSE\x20\x22%s\x22','indexOf','SET\x20VARIABLE\x20%s\x20\x22%s\x22','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','E_AGI_SOCKET_TIMEOUT','ANSWER','substring','inherits','startsWith','exec','520\x20End\x20of\x20proper','wav','no\x20code','answer','emit','destroy','hangup','GOTO\x20%s\x20%s\x20%s','getData','sendRequest','./error','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','BEEP','WAIT','result=','match','lodash','beep','SET\x20PRIORITY\x20%s','extension','setEncoding','headers','ready','substr','GET\x20VARIABLE\x20\x22%s\x22','toLowerCase','recordFile','sayNumber','sayDigits'];(function(_0x10a74f,_0x215afc){const _0x34298c=function(_0x4678e4){while(--_0x4678e4){_0x10a74f['push'](_0x10a74f['shift']());}};_0x34298c(++_0x215afc);}(a1026_0x215a,0x1f0));const a1026_0x3429=function(_0x10a74f,_0x215afc){_0x10a74f=_0x10a74f-0x0;let _0x34298c=a1026_0x215a[_0x10a74f];return _0x34298c;};const _0x407b7e=a1026_0x3429;'use strict';const util=require('util'),_=require(_0x407b7e('0x4f')),EventEmitter=require('events')['EventEmitter'],AGIReply=require(_0x407b7e('0x9')),AGIError=require(_0x407b7e('0x49'));function AGIChannel(_0x4678e4){const _0x3ee138=_0x407b7e,_0x2492bf=this,_0x5cb34f=new AGIReply();let _0x4227d6=![],_0x44caff={};EventEmitter[_0x3ee138('0x25')](_0x2492bf),_0x4678e4[_0x3ee138('0x53')]('utf8'),_0x4678e4[_0x3ee138('0x24')](0x8*0x3c*0x3c*0x3e8),_0x5cb34f[_0x3ee138('0x53')](_0x3ee138('0x30')),_0x5cb34f['on'](_0x3ee138('0x0'),function(_0x49067d){const _0x30ab7a=_0x3ee138;for(const _0x44be55 in _0x49067d){_0x2492bf[_0x44be55]=_0x49067d[_0x44be55];}_0x2492bf['emit'](_0x30ab7a('0x1'));}),_0x5cb34f['on'](_0x3ee138('0x1c'),function(_0x50cdda){const _0x5b6967=_0x3ee138;if(_0x50cdda[_0x5b6967('0x4')]()==_0x5b6967('0x45')){_0x2492bf['emit']('hangup');return;}_0x50cdda[_0x5b6967('0x3b')](0x0,0xb)==_0x5b6967('0x2e')&&(_0x4227d6=!![]);_0x4227d6?(_0x44caff['rx']+=_0x50cdda+'\x0a',_0x50cdda[_0x5b6967('0x18')](_0x5b6967('0x3f'))!=-0x1&&(_0x4227d6=![])):_0x44caff['rx']=_0x50cdda;if(_0x4227d6)return;if(typeof _0x44caff['cb']==_0x5b6967('0x22')){let _0xe49dcd=_0x44caff['rx'][_0x5b6967('0x3b')](0x0,0x3),_0xba1928=null,_0x322024=null;_0xe49dcd=parseInt(_0xe49dcd);if(isNaN(_0xe49dcd)){_0x44caff['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x5b6967('0x41')});return;}if(_0xe49dcd!=0xc8){_0x44caff['cb'](null,{'code':_0xe49dcd,'result':-0x1,'extra':'KO'});return;}_0xba1928=_0x44caff['rx'][_0x5b6967('0x3b')](0x4)[_0x5b6967('0x19')](_0x5b6967('0x4d'),'');_0xba1928[_0x5b6967('0x36')]('\x20')!=-0x1&&(_0xba1928=_0xba1928[_0x5b6967('0x2')](0x0,_0xba1928[_0x5b6967('0x36')]('\x20')));_[_0x5b6967('0x3d')](_0xba1928,'-1')&&(_0xba1928=parseInt(_0xba1928));_0x322024=_0x44caff['rx'][_0x5b6967('0x34')]('\x20');if(_0x322024[_0x5b6967('0x32')]==0x3)_0x322024=_0x322024[0x2][_0x5b6967('0x3b')](0x1,_0x322024[0x2][_0x5b6967('0x32')]-0x1);else{if(_0x322024[_0x5b6967('0x32')]>0x3){const _0x3d7cf8=/\((.+)\)/,_0x253c47=_0x44caff['rx'][_0x5b6967('0x4e')](_0x3d7cf8);_0x253c47?_0x322024=_0x253c47[0x1]:_0x322024=null;}else _0x322024=null;}_0x44caff['cb'](null,{'code':_0xe49dcd,'result':_0xba1928,'extra':_0x322024});}}),_0x4678e4['on'](_0x3ee138('0xc'),function(_0x48e692){const _0x23a477=_0x3ee138;_0x2492bf['emit'](_0x23a477('0xc'),new AGIError('E_AGI_SOCKET_ERROR',_0x48e692['code']));}),_0x4678e4['on'](_0x3ee138('0x17'),function(){const _0xd2b31f=_0x3ee138;_0x2492bf[_0xd2b31f('0x43')](_0xd2b31f('0x17'),new AGIError(_0xd2b31f('0x8')));}),_0x4678e4['on'](_0x3ee138('0x16'),function(){const _0xfb6272=_0x3ee138;_0x2492bf[_0xfb6272('0x43')](_0xfb6272('0x16'),new AGIError(_0xfb6272('0x39'))),_0x4678e4['destroy']();}),_0x4678e4[_0x3ee138('0x2b')](_0x5cb34f),(this[_0x3ee138('0x12')]=function(_0x5ea57f,_0x2edc92){const _0x4b96ef=_0x3ee138;_0x5ea57f=_0x5ea57f||'',_0x2edc92=typeof _0x2edc92=='function'?_0x2edc92:new Function(),_0x44caff={'tx':_0x5ea57f,'rx':'','cb':_0x2edc92},_0x4678e4[_0x4b96ef('0xe')](_0x5ea57f+'\x0a');},this[_0x3ee138('0x17')]=function(){const _0x123654=_0x3ee138;_0x4678e4[_0x123654('0x44')]();});}util[_0x407b7e('0x3c')](AGIChannel,EventEmitter),AGIChannel[_0x407b7e('0x1f')]['sendRequest']=function(_0x21fb88){const _0x3d5317=_0x407b7e;return this[_0x3d5317('0x12')][_0x3d5317('0x20')](this,_0x21fb88);},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x42')]=function(){const _0x55995d=_0x407b7e;return this[_0x55995d('0x48')](_0x55995d('0x3a'));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x47')]=function(_0x2ec798,_0x45f236,_0x3ba030){const _0xd79682=_0x407b7e;return _0x2ec798=_0x2ec798===undefined?_0xd79682('0x50'):_0x2ec798,_0x45f236=_0x45f236===undefined?'5':_0x45f236,_0x3ba030=_0x3ba030===undefined?'1':_0x3ba030,this['sendRequest'](util['format'](_0xd79682('0x4a'),_0x2ec798,_0x45f236*0x3e8,_0x3ba030));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x21')]=function(_0x3cbf0e){const _0x247fe1=_0x407b7e;return _0x3cbf0e=_0x3cbf0e||_0x247fe1('0x2c'),this[_0x247fe1('0x48')](util[_0x247fe1('0x1a')](_0x247fe1('0x35'),_0x3cbf0e));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x3e')]=function(_0x418166,_0x192a24){const _0x2c56ca=_0x407b7e;if(_[_0x2c56ca('0xa')](_0x192a24))return this[_0x2c56ca('0x48')](util[_0x2c56ca('0x1a')](_0x2c56ca('0x29'),_0x418166,_0x192a24[_0x2c56ca('0x1d')](',')));return this[_0x2c56ca('0x48')](util[_0x2c56ca('0x1a')](_0x2c56ca('0x29'),_0x418166,_0x192a24));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x2f')]=function(_0x378349){const _0x57a51c=_0x407b7e;return this[_0x57a51c('0x48')](util[_0x57a51c('0x1a')](_0x57a51c('0x2d'),_0x378349));},AGIChannel['prototype'][_0x407b7e('0x1b')]=function(_0x5cae8a){const _0x3a8d69=_0x407b7e;return this[_0x3a8d69('0x48')](util[_0x3a8d69('0x1a')](_0x3a8d69('0x14'),_0x5cae8a));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x15')]=function(_0x5e5739){const _0x162df7=_0x407b7e;return this['sendRequest'](util['format'](_0x162df7('0x51'),_0x5e5739));},AGIChannel['prototype'][_0x407b7e('0x45')]=function(){const _0x12b75b=_0x407b7e;return this['sendRequest'](_0x12b75b('0x10'));},AGIChannel[_0x407b7e('0x1f')]['setVariable']=function(_0x131eca,_0x3fb444){const _0x4611b5=_0x407b7e,_0x3191c5=_[_0x4611b5('0xb')](_0x3fb444)||_[_0x4611b5('0x11')](_0x3fb444)?_0x3fb444['toString']():_0x3fb444;return this[_0x4611b5('0x48')](util[_0x4611b5('0x1a')](_0x4611b5('0x37'),_0x131eca,_0x3191c5?_0x3191c5['toString']()[_0x4611b5('0x19')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x6')]=function(_0x234753,_0x1d41ca){const _0x530c21=_0x407b7e;return this[_0x530c21('0x48')](util['format'](_0x530c21('0x1e'),_0x234753,_0x1d41ca));},AGIChannel['prototype'][_0x407b7e('0x7')]=function(_0x2144df,_0x185947){const _0x29ad82=_0x407b7e;return this[_0x29ad82('0x48')](util['format'](_0x29ad82('0x26'),_0x2144df,_0x185947));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x23')]=function(_0x35237f,_0x1d9d9b){const _0x15b593=_0x407b7e;return this[_0x15b593('0x48')](util[_0x15b593('0x1a')](_0x15b593('0x38'),_0x35237f,_0x1d9d9b));},AGIChannel['prototype'][_0x407b7e('0x31')]=function(_0x2aefe5,_0x43cb67,_0x14e429){const _0x547876=_0x407b7e;return _0x43cb67=_0x43cb67||this[_0x547876('0x52')],_0x14e429=_0x14e429||0x1,this[_0x547876('0x2f')](_0x2aefe5),this[_0x547876('0x1b')](_0x43cb67),this[_0x547876('0x15')](_0x14e429),this['noop'](util[_0x547876('0x1a')](_0x547876('0x46'),_0x2aefe5,_0x43cb67,_0x14e429));},AGIChannel['prototype'][_0x407b7e('0x13')]=function(_0x1c64e0){const _0xa37e58=_0x407b7e;return this[_0xa37e58('0x48')](util[_0xa37e58('0x1a')](_0xa37e58('0x3'),_0x1c64e0));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0x5')]=function(_0x71edd3,_0x327282,_0x58c5e1,_0x5777df,_0x4a182b,_0x403785){const _0x394880=_0x407b7e;return _0x327282=_0x327282||_0x394880('0x40'),_0x58c5e1=_0x58c5e1||'',_0x5777df=_0x5777df===undefined?-0x1:_0x5777df==='-1'?-0x1:_0x5777df*0x3e8,_0x4a182b=_0x4a182b===undefined?'':'s='+_0x4a182b,_0x403785=_0x403785?_0x394880('0x4b'):'',this[_0x394880('0x48')](util['format'](_0x394880('0x28'),_0x71edd3,_0x327282,_0x58c5e1,_0x5777df,_0x403785,_0x4a182b));},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0xd')]=function(_0x3fa838,_0x47f08a){const _0x45a074=_0x407b7e;return _0x47f08a=_0x47f08a||'',this['sendRequest'](util[_0x45a074('0x1a')](_0x45a074('0x33'),_0x3fa838,_0x47f08a));},AGIChannel[_0x407b7e('0x1f')]['agi']=function(_0x2ee7f3){const _0x37ad13=_0x407b7e;return this[_0x37ad13('0x3e')](_0x37ad13('0x2a'),_0x2ee7f3);},AGIChannel[_0x407b7e('0x1f')]['wait']=function(_0x47e6f6){const _0x2be973=_0x407b7e;return this[_0x2be973('0x3e')](_0x2be973('0x4c'),_0x47e6f6);},AGIChannel[_0x407b7e('0x1f')][_0x407b7e('0xc')]=function(_0x29ff35,_0x4ef633){const _0x1ded03=_0x407b7e;return this[_0x1ded03('0x21')](util[_0x1ded03('0x1a')]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x29ff35['id'],_0x29ff35[_0x1ded03('0x27')],_0x4ef633)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x407b7e('0xf')]=AGIChannel;
\ No newline at end of file