Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / services / agi / channel.js
index 92c8756..1d8f4f0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8dfe=['exec','isArray','join','EXEC\x20%s\x20%s','setExtension','SET\x20EXTENSION\x20%s','SET\x20PRIORITY\x20%s','HANGUP','setVariable','SET\x20VARIABLE\x20%s\x20\x22%s\x22','toString','replace','sayNumber','SAY\x20NUMBER\x20%s\x20%s','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','GOTO\x20%s\x20%s\x20%s','recordFile','wav','BEEP','streamFile','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','agi','wait','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','label','exports','util','lodash','EventEmitter','setEncoding','utf8','setTimeout','headers','emit','ready','toLowerCase','hangup','520-Invalid','520\x20End\x20of\x20proper','function','substring','no\x20code','result=','indexOf','startsWith','split','length','error','code','close','E_AGI_SOCKET_CLOSE','timeout','E_AGI_SOCKET_TIMEOUT','destroy','command','sendRequest','sync','prototype','answer','getData','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','NO\x20MESSAGE'];(function(_0x51e3d0,_0x41d63f){var _0x4a8447=function(_0x2dd92b){while(--_0x2dd92b){_0x51e3d0['push'](_0x51e3d0['shift']());}};_0x4a8447(++_0x41d63f);}(_0x8dfe,0x178));var _0xe8df=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x8dfe[_0x3bf83f];return _0x22c4a9;};'use strict';var util=require(_0xe8df('0x0'));var _=require(_0xe8df('0x1'));var EventEmitter=require('events')[_0xe8df('0x2')];var AGIReply=require('./reply');var AGIError=require('./error');function AGIChannel(_0xeb4983){var _0x47dcbd=this,_0x5accf6=new AGIReply(),_0x10c633=![],_0x1a487b={};EventEmitter['call'](_0x47dcbd);_0xeb4983[_0xe8df('0x3')](_0xe8df('0x4'));_0xeb4983[_0xe8df('0x5')](0x8*0x3c*0x3c*0x3e8);_0x5accf6['setEncoding'](_0xe8df('0x4'));_0x5accf6['on'](_0xe8df('0x6'),function(_0x337ed7){for(var _0x3fcaf3 in _0x337ed7){_0x47dcbd[_0x3fcaf3]=_0x337ed7[_0x3fcaf3];}_0x47dcbd[_0xe8df('0x7')](_0xe8df('0x8'));});_0x5accf6['on']('line',function(_0x440816){if(_0x440816[_0xe8df('0x9')]()==_0xe8df('0xa')){_0x47dcbd['emit'](_0xe8df('0xa'));return;}if(_0x440816['substring'](0x0,0xb)==_0xe8df('0xb')){_0x10c633=!![];}if(_0x10c633){_0x1a487b['rx']+=_0x440816+'\x0a';if(_0x440816['search'](_0xe8df('0xc'))!=-0x1){_0x10c633=![];}}else{_0x1a487b['rx']=_0x440816;}if(_0x10c633){return;}if(typeof _0x1a487b['cb']==_0xe8df('0xd')){var _0x17c2de=_0x1a487b['rx'][_0xe8df('0xe')](0x0,0x3),_0x448873=null,_0x5cc73a=null;_0x17c2de=parseInt(_0x17c2de);if(isNaN(_0x17c2de)){_0x1a487b['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0xe8df('0xf')});return;}if(_0x17c2de!=0xc8){_0x1a487b['cb'](null,{'code':_0x17c2de,'result':-0x1,'extra':'KO'});return;}_0x448873=_0x1a487b['rx'][_0xe8df('0xe')](0x4)['replace'](_0xe8df('0x10'),'');if(_0x448873[_0xe8df('0x11')]('\x20')!=-0x1){_0x448873=_0x448873['substr'](0x0,_0x448873[_0xe8df('0x11')]('\x20'));}if(_[_0xe8df('0x12')](_0x448873,'-1')){_0x448873=parseInt(_0x448873);}_0x5cc73a=_0x1a487b['rx'][_0xe8df('0x13')]('\x20');if(_0x5cc73a[_0xe8df('0x14')]==0x3){_0x5cc73a=_0x5cc73a[0x2][_0xe8df('0xe')](0x1,_0x5cc73a[0x2][_0xe8df('0x14')]-0x1);}else if(_0x5cc73a[_0xe8df('0x14')]>0x3){var _0x11aa41=/\((.+)\)/;var _0xe02f7=_0x1a487b['rx']['match'](_0x11aa41);if(_0xe02f7){_0x5cc73a=_0xe02f7[0x1];}else{_0x5cc73a=null;}}else{_0x5cc73a=null;}_0x1a487b['cb'](null,{'code':_0x17c2de,'result':_0x448873,'extra':_0x5cc73a});}});_0xeb4983['on'](_0xe8df('0x15'),function(_0x32955b){_0x47dcbd[_0xe8df('0x7')](_0xe8df('0x15'),new AGIError('E_AGI_SOCKET_ERROR',_0x32955b[_0xe8df('0x16')]));});_0xeb4983['on'](_0xe8df('0x17'),function(){_0x47dcbd[_0xe8df('0x7')](_0xe8df('0x17'),new AGIError(_0xe8df('0x18')));});_0xeb4983['on'](_0xe8df('0x19'),function(){_0x47dcbd['emit'](_0xe8df('0x19'),new AGIError(_0xe8df('0x1a')));_0xeb4983[_0xe8df('0x1b')]();});_0xeb4983['pipe'](_0x5accf6);this[_0xe8df('0x1c')]=function(_0x12e8d2,_0x5aeadd){var _0x12e8d2=_0x12e8d2||'',_0x5aeadd=typeof _0x5aeadd=='function'?_0x5aeadd:new Function();_0x1a487b={'tx':_0x12e8d2,'rx':'','cb':_0x5aeadd};_0xeb4983['write'](_0x12e8d2+'\x0a');},this[_0xe8df('0x17')]=function(){_0xeb4983['destroy']();};}util['inherits'](AGIChannel,EventEmitter);AGIChannel['prototype'][_0xe8df('0x1d')]=function(_0x2d6f80){return this[_0xe8df('0x1c')][_0xe8df('0x1e')](this,_0x2d6f80);};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x20')]=function(){return this[_0xe8df('0x1d')]('ANSWER');};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x21')]=function(_0x4c5ef2,_0x2b0d5c,_0x3f625c){_0x4c5ef2=_0x4c5ef2===undefined?'beep':_0x4c5ef2;_0x2b0d5c=_0x2b0d5c===undefined?'5':_0x2b0d5c;_0x3f625c=_0x3f625c===undefined?'1':_0x3f625c;return this['sendRequest'](util[_0xe8df('0x22')](_0xe8df('0x23'),_0x4c5ef2,_0x2b0d5c*0x3e8,_0x3f625c));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x24')]=function(_0x53cba6){_0x53cba6=_0x53cba6||_0xe8df('0x25');return this[_0xe8df('0x1d')](util[_0xe8df('0x22')]('VERBOSE\x20\x22%s\x22',_0x53cba6));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x26')]=function(_0xf92a32,_0x3f24e4){if(_[_0xe8df('0x27')](_0x3f24e4)){return this[_0xe8df('0x1d')](util[_0xe8df('0x22')]('EXEC\x20%s\x20%s',_0xf92a32,_0x3f24e4[_0xe8df('0x28')](',')));}return this[_0xe8df('0x1d')](util[_0xe8df('0x22')](_0xe8df('0x29'),_0xf92a32,_0x3f24e4));};AGIChannel['prototype']['setContext']=function(_0x317ea1){return this[_0xe8df('0x1d')](util[_0xe8df('0x22')]('SET\x20CONTEXT\x20%s',_0x317ea1));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x2a')]=function(_0x5cac7d){return this[_0xe8df('0x1d')](util[_0xe8df('0x22')](_0xe8df('0x2b'),_0x5cac7d));};AGIChannel['prototype']['setPriority']=function(_0x591a3d){return this[_0xe8df('0x1d')](util['format'](_0xe8df('0x2c'),_0x591a3d));};AGIChannel[_0xe8df('0x1f')]['hangup']=function(){return this['sendRequest'](_0xe8df('0x2d'));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x2e')]=function(_0x1118c3,_0x4383f6){return this[_0xe8df('0x1d')](util['format'](_0xe8df('0x2f'),_0x1118c3,_0x4383f6?_0x4383f6[_0xe8df('0x30')]()[_0xe8df('0x31')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x32')]=function(_0x2f8af1,_0x409b5e){return this[_0xe8df('0x1d')](util['format'](_0xe8df('0x33'),_0x2f8af1,_0x409b5e));};AGIChannel['prototype']['sayDigits']=function(_0x24789d,_0x245c26){return this[_0xe8df('0x1d')](util[_0xe8df('0x22')](_0xe8df('0x34'),_0x24789d,_0x245c26));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x35')]=function(_0x2254e2,_0x12d8d3){return this[_0xe8df('0x1d')](util['format'](_0xe8df('0x36'),_0x2254e2,_0x12d8d3));};AGIChannel['prototype'][_0xe8df('0x37')]=function(_0xe0e01b,_0xc905f7,_0x3b0429){_0xc905f7=_0xc905f7||this[_0xe8df('0x38')];_0x3b0429=_0x3b0429||0x1;this['setContext'](_0xe0e01b);this[_0xe8df('0x2a')](_0xc905f7);this['setPriority'](_0x3b0429);return this['noop'](util[_0xe8df('0x22')](_0xe8df('0x39'),_0xe0e01b,_0xc905f7,_0x3b0429));};AGIChannel[_0xe8df('0x1f')]['getVariable']=function(_0x43a2d0){return this[_0xe8df('0x1d')](util[_0xe8df('0x22')]('GET\x20VARIABLE\x20\x22%s\x22',_0x43a2d0));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x3a')]=function(_0xef63df,_0x5b547d,_0xec2d3e,_0x36cefa,_0x2b43fb,_0xe43cda){_0x5b547d=_0x5b547d||_0xe8df('0x3b');_0xec2d3e=_0xec2d3e||'';_0x36cefa=_0x36cefa===undefined?-0x1:_0x36cefa==='-1'?-0x1:_0x36cefa*0x3e8;_0x2b43fb=_0x2b43fb===undefined?'':'s='+_0x2b43fb;_0xe43cda=_0xe43cda?_0xe8df('0x3c'):'';return this['sendRequest'](util['format']('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0xef63df,_0x5b547d,_0xec2d3e,_0x36cefa,_0xe43cda,_0x2b43fb));};AGIChannel['prototype'][_0xe8df('0x3d')]=function(_0x5d5832,_0x4209a1){_0x4209a1=_0x4209a1||'';return this['sendRequest'](util[_0xe8df('0x22')](_0xe8df('0x3e'),_0x5d5832,_0x4209a1));};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x3f')]=function(_0x1b3546){return this['exec']('AGI',_0x1b3546);};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x40')]=function(_0xd4f317){return this[_0xe8df('0x26')](_0xe8df('0x41'),_0xd4f317);};AGIChannel[_0xe8df('0x1f')][_0xe8df('0x15')]=function(_0x1bdd88,_0x439b8e){this[_0xe8df('0x24')](util[_0xe8df('0x22')](_0xe8df('0x42'),_0x1bdd88['id'],_0x1bdd88[_0xe8df('0x43')],_0x439b8e));return{'code':0x1f4,'result':'-1','extra':''};};module[_0xe8df('0x44')]=AGIChannel;
\ No newline at end of file
+var _0x91d3=['indexOf','startsWith','split','length','error','E_AGI_SOCKET_ERROR','close','E_AGI_SOCKET_CLOSE','timeout','command','function','write','destroy','inherits','prototype','sendRequest','answer','ANSWER','getData','beep','format','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','noop','VERBOSE\x20\x22%s\x22','exec','EXEC\x20%s\x20%s','join','setContext','SET\x20CONTEXT\x20%s','setExtension','SET\x20EXTENSION\x20%s','setPriority','SET\x20PRIORITY\x20%s','HANGUP','SET\x20VARIABLE\x20%s\x20\x22%s\x22','toString','replace','sayNumber','SAY\x20NUMBER\x20%s\x20%s','sayDigits','SAY\x20DIGITS\x20%s\x20%s','sayPhonetic','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','continueAt','extension','GOTO\x20%s\x20%s\x20%s','getVariable','GET\x20VARIABLE\x20\x22%s\x22','wav','BEEP','agi','AGI','wait','WAIT','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','exports','lodash','events','./error','call','setEncoding','utf8','setTimeout','headers','emit','ready','line','toLowerCase','hangup','substring','no\x20code','result=','substr'];(function(_0x3b5ad9,_0x223867){var _0x611ae9=function(_0x1c5e28){while(--_0x1c5e28){_0x3b5ad9['push'](_0x3b5ad9['shift']());}};_0x611ae9(++_0x223867);}(_0x91d3,0x113));var _0x391d=function(_0x544187,_0x4052e7){_0x544187=_0x544187-0x0;var _0x1f8b9b=_0x91d3[_0x544187];return _0x1f8b9b;};'use strict';var util=require('util');var _=require(_0x391d('0x0'));var EventEmitter=require(_0x391d('0x1'))['EventEmitter'];var AGIReply=require('./reply');var AGIError=require(_0x391d('0x2'));function AGIChannel(_0x307c33){var _0x41d29f=this,_0x1f0fb5=new AGIReply(),_0x3631a2=![],_0x198eae={};EventEmitter[_0x391d('0x3')](_0x41d29f);_0x307c33[_0x391d('0x4')](_0x391d('0x5'));_0x307c33[_0x391d('0x6')](0x8*0x3c*0x3c*0x3e8);_0x1f0fb5[_0x391d('0x4')](_0x391d('0x5'));_0x1f0fb5['on'](_0x391d('0x7'),function(_0x120a78){for(var _0x4abbb8 in _0x120a78){_0x41d29f[_0x4abbb8]=_0x120a78[_0x4abbb8];}_0x41d29f[_0x391d('0x8')](_0x391d('0x9'));});_0x1f0fb5['on'](_0x391d('0xa'),function(_0x531a0b){if(_0x531a0b[_0x391d('0xb')]()==_0x391d('0xc')){_0x41d29f['emit'](_0x391d('0xc'));return;}if(_0x531a0b[_0x391d('0xd')](0x0,0xb)=='520-Invalid'){_0x3631a2=!![];}if(_0x3631a2){_0x198eae['rx']+=_0x531a0b+'\x0a';if(_0x531a0b['search']('520\x20End\x20of\x20proper')!=-0x1){_0x3631a2=![];}}else{_0x198eae['rx']=_0x531a0b;}if(_0x3631a2){return;}if(typeof _0x198eae['cb']=='function'){var _0x2f304b=_0x198eae['rx'][_0x391d('0xd')](0x0,0x3),_0x1e7156=null,_0x47b75a=null;_0x2f304b=parseInt(_0x2f304b);if(isNaN(_0x2f304b)){_0x198eae['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x391d('0xe')});return;}if(_0x2f304b!=0xc8){_0x198eae['cb'](null,{'code':_0x2f304b,'result':-0x1,'extra':'KO'});return;}_0x1e7156=_0x198eae['rx'][_0x391d('0xd')](0x4)['replace'](_0x391d('0xf'),'');if(_0x1e7156['indexOf']('\x20')!=-0x1){_0x1e7156=_0x1e7156[_0x391d('0x10')](0x0,_0x1e7156[_0x391d('0x11')]('\x20'));}if(_[_0x391d('0x12')](_0x1e7156,'-1')){_0x1e7156=parseInt(_0x1e7156);}_0x47b75a=_0x198eae['rx'][_0x391d('0x13')]('\x20');if(_0x47b75a[_0x391d('0x14')]==0x3){_0x47b75a=_0x47b75a[0x2][_0x391d('0xd')](0x1,_0x47b75a[0x2][_0x391d('0x14')]-0x1);}else if(_0x47b75a[_0x391d('0x14')]>0x3){var _0x30e631=/\((.+)\)/;var _0x24a98f=_0x198eae['rx']['match'](_0x30e631);if(_0x24a98f){_0x47b75a=_0x24a98f[0x1];}else{_0x47b75a=null;}}else{_0x47b75a=null;}_0x198eae['cb'](null,{'code':_0x2f304b,'result':_0x1e7156,'extra':_0x47b75a});}});_0x307c33['on'](_0x391d('0x15'),function(_0x38c06f){_0x41d29f[_0x391d('0x8')](_0x391d('0x15'),new AGIError(_0x391d('0x16'),_0x38c06f['code']));});_0x307c33['on']('close',function(){_0x41d29f[_0x391d('0x8')](_0x391d('0x17'),new AGIError(_0x391d('0x18')));});_0x307c33['on'](_0x391d('0x19'),function(){_0x41d29f[_0x391d('0x8')](_0x391d('0x19'),new AGIError('E_AGI_SOCKET_TIMEOUT'));_0x307c33['destroy']();});_0x307c33['pipe'](_0x1f0fb5);this[_0x391d('0x1a')]=function(_0x5468a4,_0x3382be){var _0x5468a4=_0x5468a4||'',_0x3382be=typeof _0x3382be==_0x391d('0x1b')?_0x3382be:new Function();_0x198eae={'tx':_0x5468a4,'rx':'','cb':_0x3382be};_0x307c33[_0x391d('0x1c')](_0x5468a4+'\x0a');},this[_0x391d('0x17')]=function(){_0x307c33[_0x391d('0x1d')]();};}util[_0x391d('0x1e')](AGIChannel,EventEmitter);AGIChannel[_0x391d('0x1f')][_0x391d('0x20')]=function(_0x498443){return this['command']['sync'](this,_0x498443);};AGIChannel[_0x391d('0x1f')][_0x391d('0x21')]=function(){return this[_0x391d('0x20')](_0x391d('0x22'));};AGIChannel['prototype'][_0x391d('0x23')]=function(_0x3facbd,_0x609f36,_0x493e70){_0x3facbd=_0x3facbd===undefined?_0x391d('0x24'):_0x3facbd;_0x609f36=_0x609f36===undefined?'5':_0x609f36;_0x493e70=_0x493e70===undefined?'1':_0x493e70;return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x26'),_0x3facbd,_0x609f36*0x3e8,_0x493e70));};AGIChannel['prototype'][_0x391d('0x27')]=function(_0x395f5c){_0x395f5c=_0x395f5c||'NO\x20MESSAGE';return this[_0x391d('0x20')](util['format'](_0x391d('0x28'),_0x395f5c));};AGIChannel[_0x391d('0x1f')][_0x391d('0x29')]=function(_0xca79c2,_0x4497e2){if(_['isArray'](_0x4497e2)){return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x2a'),_0xca79c2,_0x4497e2[_0x391d('0x2b')](',')));}return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x2a'),_0xca79c2,_0x4497e2));};AGIChannel['prototype'][_0x391d('0x2c')]=function(_0x553b92){return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x2d'),_0x553b92));};AGIChannel[_0x391d('0x1f')][_0x391d('0x2e')]=function(_0x5c8921){return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x2f'),_0x5c8921));};AGIChannel[_0x391d('0x1f')][_0x391d('0x30')]=function(_0x2744c6){return this[_0x391d('0x20')](util['format'](_0x391d('0x31'),_0x2744c6));};AGIChannel[_0x391d('0x1f')][_0x391d('0xc')]=function(){return this['sendRequest'](_0x391d('0x32'));};AGIChannel[_0x391d('0x1f')]['setVariable']=function(_0x358732,_0x399eca){return this['sendRequest'](util['format'](_0x391d('0x33'),_0x358732,_0x399eca?_0x399eca[_0x391d('0x34')]()[_0x391d('0x35')](/(\r\n|\n|\r)/gm,'\x20'):''));};AGIChannel['prototype'][_0x391d('0x36')]=function(_0x3475b7,_0x2795ff){return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x37'),_0x3475b7,_0x2795ff));};AGIChannel[_0x391d('0x1f')][_0x391d('0x38')]=function(_0x29fdfe,_0x54a004){return this[_0x391d('0x20')](util['format'](_0x391d('0x39'),_0x29fdfe,_0x54a004));};AGIChannel[_0x391d('0x1f')][_0x391d('0x3a')]=function(_0x6c088d,_0x15b8eb){return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x3b'),_0x6c088d,_0x15b8eb));};AGIChannel[_0x391d('0x1f')][_0x391d('0x3c')]=function(_0x3c98aa,_0x59917d,_0x3ba5cc){_0x59917d=_0x59917d||this[_0x391d('0x3d')];_0x3ba5cc=_0x3ba5cc||0x1;this[_0x391d('0x2c')](_0x3c98aa);this['setExtension'](_0x59917d);this[_0x391d('0x30')](_0x3ba5cc);return this['noop'](util[_0x391d('0x25')](_0x391d('0x3e'),_0x3c98aa,_0x59917d,_0x3ba5cc));};AGIChannel[_0x391d('0x1f')][_0x391d('0x3f')]=function(_0x2b311b){return this[_0x391d('0x20')](util[_0x391d('0x25')](_0x391d('0x40'),_0x2b311b));};AGIChannel[_0x391d('0x1f')]['recordFile']=function(_0x50b752,_0x5762ce,_0x1a7d56,_0xdd8913,_0x472ac8,_0x25c0b5){_0x5762ce=_0x5762ce||_0x391d('0x41');_0x1a7d56=_0x1a7d56||'';_0xdd8913=_0xdd8913===undefined?-0x1:_0xdd8913==='-1'?-0x1:_0xdd8913*0x3e8;_0x472ac8=_0x472ac8===undefined?'':'s='+_0x472ac8;_0x25c0b5=_0x25c0b5?_0x391d('0x42'):'';return this[_0x391d('0x20')](util[_0x391d('0x25')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x50b752,_0x5762ce,_0x1a7d56,_0xdd8913,_0x25c0b5,_0x472ac8));};AGIChannel[_0x391d('0x1f')]['streamFile']=function(_0x11a647,_0x3009d2){_0x3009d2=_0x3009d2||'';return this[_0x391d('0x20')](util[_0x391d('0x25')]('STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22',_0x11a647,_0x3009d2));};AGIChannel[_0x391d('0x1f')][_0x391d('0x43')]=function(_0x132d25){return this['exec'](_0x391d('0x44'),_0x132d25);};AGIChannel[_0x391d('0x1f')][_0x391d('0x45')]=function(_0x30c8a8){return this['exec'](_0x391d('0x46'),_0x30c8a8);};AGIChannel['prototype']['error']=function(_0x2d1dea,_0x54e89c){this['noop'](util['format'](_0x391d('0x47'),_0x2d1dea['id'],_0x2d1dea['label'],_0x54e89c));return{'code':0x1f4,'result':'-1','extra':''};};module[_0x391d('0x48')]=AGIChannel;
\ No newline at end of file