Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / services / agi / channel.js
index 4222e3a..b9a97fd 100644 (file)
@@ -1 +1 @@
-const a1025_0x3c74=['recordFile','length','join','isNumber','./reply','getData','setContext','toString','E_AGI_SOCKET_CLOSE','setVariable','emit','search','sayDigits','indexOf','util','E_AGI_SOCKET_ERROR','inherits','ANSWER','line','sync','pipe','setEncoding','hangup','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','EventEmitter','prototype','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','streamFile','error','noop','E_AGI_SOCKET_TIMEOUT','SET\x20VARIABLE\x20%s\x20\x22%s\x22','startsWith','VERBOSE\x20\x22%s\x22','NO\x20MESSAGE','split','BEEP','write','code','setPriority','beep','utf8','WAIT','wait','SET\x20EXTENSION\x20%s','command','answer','result=','EXEC\x20%s\x20%s','exports','sendRequest','./error','setExtension','substr','GOTO\x20%s\x20%s\x20%s','close','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','sayPhonetic','timeout','label','headers','exec','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','lodash','toLowerCase','GET\x20VARIABLE\x20\x22%s\x22','substring','function','extension','SET\x20CONTEXT\x20%s','wav','replace','SAY\x20DIGITS\x20%s\x20%s'];(function(_0x9b3767,_0x3c74a8){const _0x2bdfb1=function(_0x2fea15){while(--_0x2fea15){_0x9b3767['push'](_0x9b3767['shift']());}};_0x2bdfb1(++_0x3c74a8);}(a1025_0x3c74,0xbc));const a1025_0x2bdf=function(_0x9b3767,_0x3c74a8){_0x9b3767=_0x9b3767-0x0;let _0x2bdfb1=a1025_0x3c74[_0x9b3767];return _0x2bdfb1;};const _0x19b2e0=a1025_0x2bdf;'use strict';const util=require(_0x19b2e0('0x30')),_=require(_0x19b2e0('0x18')),EventEmitter=require('events')[_0x19b2e0('0x3b')],AGIReply=require(_0x19b2e0('0x26')),AGIError=require(_0x19b2e0('0xc'));function AGIChannel(_0x2fea15){const _0x39a65a=_0x19b2e0,_0x4c8c87=this,_0x2ceb2d=new AGIReply();let _0xae3555=![],_0xd011a7={};EventEmitter['call'](_0x4c8c87),_0x2fea15[_0x39a65a('0x37')](_0x39a65a('0x2')),_0x2fea15['setTimeout'](0x8*0x3c*0x3c*0x3e8),_0x2ceb2d[_0x39a65a('0x37')](_0x39a65a('0x2')),_0x2ceb2d['on'](_0x39a65a('0x15'),function(_0x1ca14e){for(const _0xda36a2 in _0x1ca14e){_0x4c8c87[_0xda36a2]=_0x1ca14e[_0xda36a2];}_0x4c8c87['emit']('ready');}),_0x2ceb2d['on'](_0x39a65a('0x34'),function(_0x1402fe){const _0x962907=_0x39a65a;if(_0x1402fe[_0x962907('0x19')]()==_0x962907('0x38')){_0x4c8c87[_0x962907('0x2c')]('hangup');return;}_0x1402fe['substring'](0x0,0xb)=='520-Invalid'&&(_0xae3555=!![]);_0xae3555?(_0xd011a7['rx']+=_0x1402fe+'\x0a',_0x1402fe[_0x962907('0x2d')]('520\x20End\x20of\x20proper')!=-0x1&&(_0xae3555=![])):_0xd011a7['rx']=_0x1402fe;if(_0xae3555)return;if(typeof _0xd011a7['cb']==_0x962907('0x1c')){let _0x104cb6=_0xd011a7['rx'][_0x962907('0x1b')](0x0,0x3),_0x4ba057=null,_0x43e140=null;_0x104cb6=parseInt(_0x104cb6);if(isNaN(_0x104cb6)){_0xd011a7['cb'](null,{'code':0x1f4,'result':-0x1,'extra':'no\x20code'});return;}if(_0x104cb6!=0xc8){_0xd011a7['cb'](null,{'code':_0x104cb6,'result':-0x1,'extra':'KO'});return;}_0x4ba057=_0xd011a7['rx']['substring'](0x4)[_0x962907('0x20')](_0x962907('0x8'),'');_0x4ba057[_0x962907('0x2f')]('\x20')!=-0x1&&(_0x4ba057=_0x4ba057[_0x962907('0xe')](0x0,_0x4ba057[_0x962907('0x2f')]('\x20')));_[_0x962907('0x43')](_0x4ba057,'-1')&&(_0x4ba057=parseInt(_0x4ba057));_0x43e140=_0xd011a7['rx'][_0x962907('0x46')]('\x20');if(_0x43e140[_0x962907('0x23')]==0x3)_0x43e140=_0x43e140[0x2]['substring'](0x1,_0x43e140[0x2][_0x962907('0x23')]-0x1);else{if(_0x43e140['length']>0x3){const _0x16de74=/\((.+)\)/,_0x463182=_0xd011a7['rx']['match'](_0x16de74);_0x463182?_0x43e140=_0x463182[0x1]:_0x43e140=null;}else _0x43e140=null;}_0xd011a7['cb'](null,{'code':_0x104cb6,'result':_0x4ba057,'extra':_0x43e140});}}),_0x2fea15['on'](_0x39a65a('0x3f'),function(_0x56b7f1){const _0x36dd03=_0x39a65a;_0x4c8c87[_0x36dd03('0x2c')](_0x36dd03('0x3f'),new AGIError(_0x36dd03('0x31'),_0x56b7f1[_0x36dd03('0x49')]));}),_0x2fea15['on'](_0x39a65a('0x10'),function(){const _0x5a9097=_0x39a65a;_0x4c8c87[_0x5a9097('0x2c')]('close',new AGIError(_0x5a9097('0x2a')));}),_0x2fea15['on']('timeout',function(){const _0x1e821f=_0x39a65a;_0x4c8c87[_0x1e821f('0x2c')](_0x1e821f('0x13'),new AGIError(_0x1e821f('0x41'))),_0x2fea15['destroy']();}),_0x2fea15[_0x39a65a('0x36')](_0x2ceb2d),(this['command']=function(_0x45ee8b,_0x26e455){const _0x5cb5c1=_0x39a65a;_0x45ee8b=_0x45ee8b||'',_0x26e455=typeof _0x26e455==_0x5cb5c1('0x1c')?_0x26e455:new Function(),_0xd011a7={'tx':_0x45ee8b,'rx':'','cb':_0x26e455},_0x2fea15[_0x5cb5c1('0x48')](_0x45ee8b+'\x0a');},this['close']=function(){_0x2fea15['destroy']();});}util[_0x19b2e0('0x32')](AGIChannel,EventEmitter),AGIChannel[_0x19b2e0('0x3c')]['sendRequest']=function(_0x5ed1f4){const _0x529a9c=_0x19b2e0;return this[_0x529a9c('0x6')][_0x529a9c('0x35')](this,_0x5ed1f4);},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x7')]=function(){const _0x311a7e=_0x19b2e0;return this[_0x311a7e('0xb')](_0x311a7e('0x33'));},AGIChannel['prototype'][_0x19b2e0('0x27')]=function(_0x44c9d8,_0x1f5793,_0x515c76){const _0x1c229c=_0x19b2e0;return _0x44c9d8=_0x44c9d8===undefined?_0x1c229c('0x1'):_0x44c9d8,_0x1f5793=_0x1f5793===undefined?'5':_0x1f5793,_0x515c76=_0x515c76===undefined?'1':_0x515c76,this[_0x1c229c('0xb')](util[_0x1c229c('0x39')](_0x1c229c('0x3a'),_0x44c9d8,_0x1f5793*0x3e8,_0x515c76));},AGIChannel['prototype'][_0x19b2e0('0x40')]=function(_0x2537c6){const _0x58fbe=_0x19b2e0;return _0x2537c6=_0x2537c6||_0x58fbe('0x45'),this[_0x58fbe('0xb')](util[_0x58fbe('0x39')](_0x58fbe('0x44'),_0x2537c6));},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x16')]=function(_0x5c7cdc,_0x22981e){const _0x101e36=_0x19b2e0;if(_['isArray'](_0x22981e))return this[_0x101e36('0xb')](util[_0x101e36('0x39')](_0x101e36('0x9'),_0x5c7cdc,_0x22981e[_0x101e36('0x24')](',')));return this[_0x101e36('0xb')](util[_0x101e36('0x39')](_0x101e36('0x9'),_0x5c7cdc,_0x22981e));},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x28')]=function(_0x55890b){const _0x120f6d=_0x19b2e0;return this['sendRequest'](util[_0x120f6d('0x39')](_0x120f6d('0x1e'),_0x55890b));},AGIChannel[_0x19b2e0('0x3c')]['setExtension']=function(_0x3fd500){const _0x402204=_0x19b2e0;return this[_0x402204('0xb')](util['format'](_0x402204('0x5'),_0x3fd500));},AGIChannel[_0x19b2e0('0x3c')]['setPriority']=function(_0x1742f7){const _0x419785=_0x19b2e0;return this[_0x419785('0xb')](util['format']('SET\x20PRIORITY\x20%s',_0x1742f7));},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x38')]=function(){const _0x3a8f3b=_0x19b2e0;return this[_0x3a8f3b('0xb')]('HANGUP');},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x2b')]=function(_0x1ac1a0,_0x2c1116){const _0x420362=_0x19b2e0,_0x2b3446=_['isBoolean'](_0x2c1116)||_[_0x420362('0x25')](_0x2c1116)?_0x2c1116[_0x420362('0x29')]():_0x2c1116;return this[_0x420362('0xb')](util[_0x420362('0x39')](_0x420362('0x42'),_0x1ac1a0,_0x2b3446?_0x2b3446[_0x420362('0x29')]()[_0x420362('0x20')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x19b2e0('0x3c')]['sayNumber']=function(_0x5230ce,_0x102832){const _0x6b5b20=_0x19b2e0;return this[_0x6b5b20('0xb')](util[_0x6b5b20('0x39')]('SAY\x20NUMBER\x20%s\x20%s',_0x5230ce,_0x102832));},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x2e')]=function(_0x6f1bb5,_0x3c8826){const _0x20a07f=_0x19b2e0;return this[_0x20a07f('0xb')](util['format'](_0x20a07f('0x21'),_0x6f1bb5,_0x3c8826));},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x12')]=function(_0x529c59,_0x205033){const _0x2748ed=_0x19b2e0;return this[_0x2748ed('0xb')](util['format'](_0x2748ed('0x3d'),_0x529c59,_0x205033));},AGIChannel[_0x19b2e0('0x3c')]['continueAt']=function(_0x1b44c9,_0x18a314,_0x4f850a){const _0x53052f=_0x19b2e0;return _0x18a314=_0x18a314||this[_0x53052f('0x1d')],_0x4f850a=_0x4f850a||0x1,this[_0x53052f('0x28')](_0x1b44c9),this[_0x53052f('0xd')](_0x18a314),this[_0x53052f('0x0')](_0x4f850a),this[_0x53052f('0x40')](util[_0x53052f('0x39')](_0x53052f('0xf'),_0x1b44c9,_0x18a314,_0x4f850a));},AGIChannel[_0x19b2e0('0x3c')]['getVariable']=function(_0x5c51ac){const _0x43a8b8=_0x19b2e0;return this['sendRequest'](util[_0x43a8b8('0x39')](_0x43a8b8('0x1a'),_0x5c51ac));},AGIChannel['prototype'][_0x19b2e0('0x22')]=function(_0x4db759,_0x17b1bc,_0x484ee6,_0x421eb0,_0x53404a,_0x1fb8af){const _0x4d9388=_0x19b2e0;return _0x17b1bc=_0x17b1bc||_0x4d9388('0x1f'),_0x484ee6=_0x484ee6||'',_0x421eb0=_0x421eb0===undefined?-0x1:_0x421eb0==='-1'?-0x1:_0x421eb0*0x3e8,_0x53404a=_0x53404a===undefined?'':'s='+_0x53404a,_0x1fb8af=_0x1fb8af?_0x4d9388('0x47'):'',this[_0x4d9388('0xb')](util[_0x4d9388('0x39')](_0x4d9388('0x17'),_0x4db759,_0x17b1bc,_0x484ee6,_0x421eb0,_0x1fb8af,_0x53404a));},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x3e')]=function(_0x47bc11,_0x5b4c87){const _0x4c567c=_0x19b2e0;return _0x5b4c87=_0x5b4c87||'',this[_0x4c567c('0xb')](util[_0x4c567c('0x39')]('STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22',_0x47bc11,_0x5b4c87));},AGIChannel[_0x19b2e0('0x3c')]['agi']=function(_0x3b4fe5){const _0x2ea52a=_0x19b2e0;return this[_0x2ea52a('0x16')]('AGI',_0x3b4fe5);},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x4')]=function(_0x31ac3e){const _0x2cb449=_0x19b2e0;return this[_0x2cb449('0x16')](_0x2cb449('0x3'),_0x31ac3e);},AGIChannel[_0x19b2e0('0x3c')][_0x19b2e0('0x3f')]=function(_0x12501a,_0x549682){const _0x1e1a7d=_0x19b2e0;return this[_0x1e1a7d('0x40')](util[_0x1e1a7d('0x39')](_0x1e1a7d('0x11'),_0x12501a['id'],_0x12501a[_0x1e1a7d('0x14')],_0x549682)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x19b2e0('0xa')]=AGIChannel;
\ No newline at end of file
+const a1025_0x5dbe=['NO\x20MESSAGE','streamFile','isBoolean','520-Invalid','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','EventEmitter','split','destroy','emit','GET\x20VARIABLE\x20\x22%s\x22','error','setContext','SET\x20CONTEXT\x20%s','beep','startsWith','indexOf','sendRequest','setTimeout','EXEC\x20%s\x20%s','E_AGI_SOCKET_TIMEOUT','setExtension','HANGUP','util','no\x20code','toLowerCase','exec','function','wav','close','recordFile','write','substr','search','./reply','inherits','GOTO\x20%s\x20%s\x20%s','events','sayDigits','sayPhonetic','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','setEncoding','join','headers','match','substring','code','prototype','length','SAY\x20DIGITS\x20%s\x20%s','noop','SAY\x20NUMBER\x20%s\x20%s','command','520\x20End\x20of\x20proper','replace','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','label','BEEP','E_AGI_SOCKET_CLOSE','SET\x20PRIORITY\x20%s','line','AGI','sync','hangup','SET\x20VARIABLE\x20%s\x20\x22%s\x22','exports','WAIT','setVariable','./error','continueAt','setPriority','answer','VERBOSE\x20\x22%s\x22','toString','format','timeout'];(function(_0x471079,_0x5dbee3){const _0x2d9c83=function(_0x118046){while(--_0x118046){_0x471079['push'](_0x471079['shift']());}};_0x2d9c83(++_0x5dbee3);}(a1025_0x5dbe,0xf1));const a1025_0x2d9c=function(_0x471079,_0x5dbee3){_0x471079=_0x471079-0x0;let _0x2d9c83=a1025_0x5dbe[_0x471079];return _0x2d9c83;};const _0x5daf65=a1025_0x2d9c;'use strict';const util=require(_0x5daf65('0x6')),_=require('lodash'),EventEmitter=require(_0x5daf65('0x14'))[_0x5daf65('0x40')],AGIReply=require(_0x5daf65('0x11')),AGIError=require(_0x5daf65('0x33'));function AGIChannel(_0x118046){const _0x39f2f7=_0x5daf65,_0x3a1091=this,_0x289e80=new AGIReply();let _0x43c220=![],_0x1f1152={};EventEmitter['call'](_0x3a1091),_0x118046[_0x39f2f7('0x18')]('utf8'),_0x118046[_0x39f2f7('0x1')](0x8*0x3c*0x3c*0x3e8),_0x289e80[_0x39f2f7('0x18')]('utf8'),_0x289e80['on'](_0x39f2f7('0x1a'),function(_0x2a4d1c){const _0x1e596a=_0x39f2f7;for(const _0x19892e in _0x2a4d1c){_0x3a1091[_0x19892e]=_0x2a4d1c[_0x19892e];}_0x3a1091[_0x1e596a('0x43')]('ready');}),_0x289e80['on'](_0x39f2f7('0x2b'),function(_0x148733){const _0x1d97bd=_0x39f2f7;if(_0x148733[_0x1d97bd('0x8')]()==_0x1d97bd('0x2e')){_0x3a1091[_0x1d97bd('0x43')](_0x1d97bd('0x2e'));return;}_0x148733['substring'](0x0,0xb)==_0x1d97bd('0x3e')&&(_0x43c220=!![]);_0x43c220?(_0x1f1152['rx']+=_0x148733+'\x0a',_0x148733[_0x1d97bd('0x10')](_0x1d97bd('0x24'))!=-0x1&&(_0x43c220=![])):_0x1f1152['rx']=_0x148733;if(_0x43c220)return;if(typeof _0x1f1152['cb']=='function'){let _0x4b0265=_0x1f1152['rx'][_0x1d97bd('0x1c')](0x0,0x3),_0x1d1c3b=null,_0x379a6b=null;_0x4b0265=parseInt(_0x4b0265);if(isNaN(_0x4b0265)){_0x1f1152['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x1d97bd('0x7')});return;}if(_0x4b0265!=0xc8){_0x1f1152['cb'](null,{'code':_0x4b0265,'result':-0x1,'extra':'KO'});return;}_0x1d1c3b=_0x1f1152['rx']['substring'](0x4)[_0x1d97bd('0x25')]('result=','');_0x1d1c3b['indexOf']('\x20')!=-0x1&&(_0x1d1c3b=_0x1d1c3b[_0x1d97bd('0xf')](0x0,_0x1d1c3b[_0x1d97bd('0x4a')]('\x20')));_[_0x1d97bd('0x49')](_0x1d1c3b,'-1')&&(_0x1d1c3b=parseInt(_0x1d1c3b));_0x379a6b=_0x1f1152['rx'][_0x1d97bd('0x41')]('\x20');if(_0x379a6b[_0x1d97bd('0x1f')]==0x3)_0x379a6b=_0x379a6b[0x2][_0x1d97bd('0x1c')](0x1,_0x379a6b[0x2][_0x1d97bd('0x1f')]-0x1);else{if(_0x379a6b[_0x1d97bd('0x1f')]>0x3){const _0x634232=/\((.+)\)/,_0xbfc441=_0x1f1152['rx'][_0x1d97bd('0x1b')](_0x634232);_0xbfc441?_0x379a6b=_0xbfc441[0x1]:_0x379a6b=null;}else _0x379a6b=null;}_0x1f1152['cb'](null,{'code':_0x4b0265,'result':_0x1d1c3b,'extra':_0x379a6b});}}),_0x118046['on'](_0x39f2f7('0x45'),function(_0x3fedef){const _0x2698e2=_0x39f2f7;_0x3a1091['emit'](_0x2698e2('0x45'),new AGIError('E_AGI_SOCKET_ERROR',_0x3fedef[_0x2698e2('0x1d')]));}),_0x118046['on'](_0x39f2f7('0xc'),function(){const _0x10d338=_0x39f2f7;_0x3a1091[_0x10d338('0x43')](_0x10d338('0xc'),new AGIError(_0x10d338('0x29')));}),_0x118046['on'](_0x39f2f7('0x3a'),function(){const _0x158e8f=_0x39f2f7;_0x3a1091[_0x158e8f('0x43')](_0x158e8f('0x3a'),new AGIError(_0x158e8f('0x3'))),_0x118046[_0x158e8f('0x42')]();}),_0x118046['pipe'](_0x289e80),(this[_0x39f2f7('0x23')]=function(_0x4c39d4,_0x386942){const _0x175678=_0x39f2f7;_0x4c39d4=_0x4c39d4||'',_0x386942=typeof _0x386942==_0x175678('0xa')?_0x386942:new Function(),_0x1f1152={'tx':_0x4c39d4,'rx':'','cb':_0x386942},_0x118046[_0x175678('0xe')](_0x4c39d4+'\x0a');},this[_0x39f2f7('0xc')]=function(){const _0x3fea29=_0x39f2f7;_0x118046[_0x3fea29('0x42')]();});}util[_0x5daf65('0x12')](AGIChannel,EventEmitter),AGIChannel['prototype'][_0x5daf65('0x0')]=function(_0xe6eced){const _0x54863b=_0x5daf65;return this[_0x54863b('0x23')][_0x54863b('0x2d')](this,_0xe6eced);},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x36')]=function(){const _0x274e3a=_0x5daf65;return this[_0x274e3a('0x0')]('ANSWER');},AGIChannel[_0x5daf65('0x1e')]['getData']=function(_0x437471,_0x4905ef,_0x38e508){const _0x59d13d=_0x5daf65;return _0x437471=_0x437471===undefined?_0x59d13d('0x48'):_0x437471,_0x4905ef=_0x4905ef===undefined?'5':_0x4905ef,_0x38e508=_0x38e508===undefined?'1':_0x38e508,this['sendRequest'](util['format'](_0x59d13d('0x3f'),_0x437471,_0x4905ef*0x3e8,_0x38e508));},AGIChannel['prototype'][_0x5daf65('0x21')]=function(_0x1199e8){const _0x406664=_0x5daf65;return _0x1199e8=_0x1199e8||_0x406664('0x3b'),this[_0x406664('0x0')](util[_0x406664('0x39')](_0x406664('0x37'),_0x1199e8));},AGIChannel[_0x5daf65('0x1e')]['exec']=function(_0x2c0cc5,_0x203c5d){const _0x352154=_0x5daf65;if(_['isArray'](_0x203c5d))return this[_0x352154('0x0')](util[_0x352154('0x39')](_0x352154('0x2'),_0x2c0cc5,_0x203c5d[_0x352154('0x19')](',')));return this[_0x352154('0x0')](util[_0x352154('0x39')](_0x352154('0x2'),_0x2c0cc5,_0x203c5d));},AGIChannel['prototype'][_0x5daf65('0x46')]=function(_0x235c05){const _0x3ddc05=_0x5daf65;return this[_0x3ddc05('0x0')](util[_0x3ddc05('0x39')](_0x3ddc05('0x47'),_0x235c05));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x4')]=function(_0x41b6f3){const _0x8afd5b=_0x5daf65;return this[_0x8afd5b('0x0')](util['format']('SET\x20EXTENSION\x20%s',_0x41b6f3));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x35')]=function(_0x1036c8){const _0x456e46=_0x5daf65;return this[_0x456e46('0x0')](util[_0x456e46('0x39')](_0x456e46('0x2a'),_0x1036c8));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x2e')]=function(){const _0x779f5c=_0x5daf65;return this[_0x779f5c('0x0')](_0x779f5c('0x5'));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x32')]=function(_0x5ed8c1,_0x40652f){const _0x1855c6=_0x5daf65,_0x4752d0=_[_0x1855c6('0x3d')](_0x40652f)||_['isNumber'](_0x40652f)?_0x40652f['toString']():_0x40652f;return this[_0x1855c6('0x0')](util[_0x1855c6('0x39')](_0x1855c6('0x2f'),_0x5ed8c1,_0x4752d0?_0x4752d0[_0x1855c6('0x38')]()[_0x1855c6('0x25')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x5daf65('0x1e')]['sayNumber']=function(_0x389e5e,_0x5735de){const _0x358ab2=_0x5daf65;return this[_0x358ab2('0x0')](util[_0x358ab2('0x39')](_0x358ab2('0x22'),_0x389e5e,_0x5735de));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x15')]=function(_0x115c4e,_0x207650){const _0x9e57f3=_0x5daf65;return this['sendRequest'](util[_0x9e57f3('0x39')](_0x9e57f3('0x20'),_0x115c4e,_0x207650));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x16')]=function(_0x475382,_0x57590f){const _0x571f72=_0x5daf65;return this[_0x571f72('0x0')](util[_0x571f72('0x39')](_0x571f72('0x26'),_0x475382,_0x57590f));},AGIChannel['prototype'][_0x5daf65('0x34')]=function(_0x38a3b0,_0x4f11d3,_0x414cca){const _0x73d05b=_0x5daf65;return _0x4f11d3=_0x4f11d3||this['extension'],_0x414cca=_0x414cca||0x1,this[_0x73d05b('0x46')](_0x38a3b0),this[_0x73d05b('0x4')](_0x4f11d3),this[_0x73d05b('0x35')](_0x414cca),this['noop'](util[_0x73d05b('0x39')](_0x73d05b('0x13'),_0x38a3b0,_0x4f11d3,_0x414cca));},AGIChannel[_0x5daf65('0x1e')]['getVariable']=function(_0xe0ac76){const _0x492a33=_0x5daf65;return this['sendRequest'](util[_0x492a33('0x39')](_0x492a33('0x44'),_0xe0ac76));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0xd')]=function(_0x41960e,_0x1a2724,_0x3486f7,_0x395222,_0x7c889b,_0xb80b9a){const _0x5bd2fe=_0x5daf65;return _0x1a2724=_0x1a2724||_0x5bd2fe('0xb'),_0x3486f7=_0x3486f7||'',_0x395222=_0x395222===undefined?-0x1:_0x395222==='-1'?-0x1:_0x395222*0x3e8,_0x7c889b=_0x7c889b===undefined?'':'s='+_0x7c889b,_0xb80b9a=_0xb80b9a?_0x5bd2fe('0x28'):'',this['sendRequest'](util[_0x5bd2fe('0x39')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x41960e,_0x1a2724,_0x3486f7,_0x395222,_0xb80b9a,_0x7c889b));},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x3c')]=function(_0x45176a,_0x24e7a5){const _0x178499=_0x5daf65;return _0x24e7a5=_0x24e7a5||'',this[_0x178499('0x0')](util[_0x178499('0x39')]('STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22',_0x45176a,_0x24e7a5));},AGIChannel[_0x5daf65('0x1e')]['agi']=function(_0x289a63){const _0x2d6178=_0x5daf65;return this[_0x2d6178('0x9')](_0x2d6178('0x2c'),_0x289a63);},AGIChannel['prototype']['wait']=function(_0x33523c){const _0x15a420=_0x5daf65;return this[_0x15a420('0x9')](_0x15a420('0x31'),_0x33523c);},AGIChannel[_0x5daf65('0x1e')][_0x5daf65('0x45')]=function(_0x5e22a1,_0xa4bb40){const _0x5e28c0=_0x5daf65;return this['noop'](util[_0x5e28c0('0x39')](_0x5e28c0('0x17'),_0x5e22a1['id'],_0x5e22a1[_0x5e28c0('0x27')],_0xa4bb40)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x5daf65('0x30')]=AGIChannel;
\ No newline at end of file