'use strict';(function(_0x52fb6f,_0x43f90f){var _0x3ff1a9=_0x2741,_0x360334=_0x52fb6f();while(!![]){try{var _0x4e696b=-parseInt(_0x3ff1a9(0x115))/0x1+parseInt(_0x3ff1a9(0x116))/0x2*(parseInt(_0x3ff1a9(0xed))/0x3)+parseInt(_0x3ff1a9(0xd5))/0x4*(-parseInt(_0x3ff1a9(0xf8))/0x5)+parseInt(_0x3ff1a9(0xf6))/0x6+parseInt(_0x3ff1a9(0x113))/0x7+-parseInt(_0x3ff1a9(0x10f))/0x8*(parseInt(_0x3ff1a9(0xf2))/0x9)+parseInt(_0x3ff1a9(0xeb))/0xa;if(_0x4e696b===_0x43f90f)break;else _0x360334['push'](_0x360334['shift']());}catch(_0x1bb37a){_0x360334['push'](_0x360334['shift']());}}}(_0xf2e7,0x441e5));var currentSpeakSession='',listenStream,speakStream,duplex=![],duplexuid=0x0,duplexact=0x0,PttCallback={'onLogin':function(_0x5d8af0,_0x3d6798){},'onJoinGrp':function(_0x5c97c2,_0x55b6e5){},'onTempGrp':function(_0x43a9c9,_0x293801,_0x534554){},'onDuplexCall':function(_0x29af07,_0x36b93d){},'onSpeak':function(_0x1345cc,_0x1e772d){},'onAddStream':function(_0x118faa,_0x37e7ac){},'onMessage':function(_0xefca0b){},'onLogout':function(){},'onError':function(_0x570e80,_0x102211){}};function WebPttInit(_0x34d9d1,_0x5a036f){var _0x21af15=_0x2741;PttCallback=_0x5a036f[_0x21af15(0x119)],Msinit(_0x34d9d1,{'signalCb':function(_0x476087,_0x5d7df5){var _0x60ec3b=_0x21af15;console[_0x60ec3b(0x104)](_0x60ec3b(0xe6),_0x476087,_0x5d7df5),PttCallback[_0x60ec3b(0x10a)](_0x476087,_0x5d7df5);},'rtcCb':{'onPublish':function(_0xc4dedc,_0x3303d8,_0x57d6b4){var _0x19a7d=_0x21af15;console[_0x19a7d(0x104)](_0x19a7d(0x107),_0x3303d8,_0x19a7d(0xd7),_0x57d6b4);if(_0xc4dedc==0x0){var _0x151649=_0x3303d8[_0x19a7d(0xe4)](':'),_0x23240e=_0x3303d8[_0x19a7d(0xd8)](0x0,_0x151649),_0x49ee33;!duplex?_0x49ee33={'command':_0x19a7d(0x111),'account':_0x23240e,'source':_0x3303d8}:_0x49ee33={'command':_0x19a7d(0xd3),'uid':duplexuid,'account':_0x23240e,'action':duplexact,'source':_0x3303d8};var _0x1cac1f={'service':_0x19a7d(0xdd),'body':_0x49ee33},_0xcdc0ee=JSON[_0x19a7d(0xe0)](_0x1cac1f);websockets[_0x19a7d(0xfa)](_0xcdc0ee);}else PttCallback[_0x19a7d(0xee)](-0x1,0x0);},'onSubscribe':function(_0x49400b,_0x1fd0cb,_0x17c51c){var _0x93f11d=_0x21af15;console[_0x93f11d(0x104)](_0x93f11d(0xd2),_0x1fd0cb,_0x93f11d(0xd7),_0x17c51c),_0x49400b==-0x1&&console[_0x93f11d(0x104)]('ptt\x20subscribe\x20fail');},'onChange':function(_0x47517b,_0x55f7d6){var _0x2d0230=_0x21af15;console[_0x2d0230(0x104)](_0x2d0230(0xdb),_0x55f7d6);}},'pluginCb':function(_0x2b505e){handlePluginMsg(_0x2b505e);}});}function _0x2741(_0x4063df,_0x3bf834){var _0xf2e71f=_0xf2e7();return _0x2741=function(_0x274125,_0x5f1ff1){_0x274125=_0x274125-0xd2;var _0x4d9c22=_0xf2e71f[_0x274125];return _0x4d9c22;},_0x2741(_0x4063df,_0x3bf834);}function handlePluginMsg(_0x147284){var _0x42f5d4=_0x2741,_0x1f9500=JSON[_0x42f5d4(0xd4)](_0x147284);console[_0x42f5d4(0x104)](_0x42f5d4(0xf1),_0x1f9500[_0x42f5d4(0xe1)]);if(_0x1f9500[_0x42f5d4(0xe1)]==_0x42f5d4(0xdd)){console[_0x42f5d4(0x104)](_0x42f5d4(0x118),_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xdf)]),console[_0x42f5d4(0x104)](_0x42f5d4(0xe7),_0x1f9500[_0x42f5d4(0xd9)]['account']),console['log'](_0x42f5d4(0x110),_0x1f9500['body'][_0x42f5d4(0x101)]);var _0x4be050=_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xdf)],_0x30dbac=_0x1f9500['body'][_0x42f5d4(0x101)];if(_0x4be050==_0x42f5d4(0xf4))_0x30dbac<0x0?(console[_0x42f5d4(0x104)](_0x42f5d4(0x105)),PttCallback['onLogin'](-0x1,0x0)):(console['log']('login\x20success\x20uid=',_0x30dbac),PttCallback[_0x42f5d4(0x10d)](0x0,_0x30dbac),MsRtcSubscribe({'name':_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xfe)],'audio':!![],'video':![],'onStream':function(_0x11fcb3){var _0x59d68b=_0x42f5d4;PttCallback[_0x59d68b(0x112)](0x0,_0x11fcb3),listenStream=_0x11fcb3;},'session':_0x1f9500['body'][_0x42f5d4(0xfe)]}));else{if(_0x4be050==_0x42f5d4(0x114))_0x30dbac<0x0?(console[_0x42f5d4(0x104)](_0x42f5d4(0xdc)),PttCallback[_0x42f5d4(0xfd)](-0x1,0x0)):(console['log'](_0x42f5d4(0xe3),_0x30dbac),PttCallback[_0x42f5d4(0xfd)](0x0,_0x30dbac));else{if(_0x4be050=='tempcall'){if(_0x30dbac<0x0)console[_0x42f5d4(0x104)](_0x42f5d4(0x108)),PttCallback['onTempGrp'](-0x1,0x0,'');else{if(_0x30dbac==0x0){console[_0x42f5d4(0x104)](_0x42f5d4(0xf0));var _0x5968ce=_0x1f9500[_0x42f5d4(0xd9)]['data'];PttCallback[_0x42f5d4(0xfb)](0x0,_0x5968ce[0x0],'');}else{if(_0x30dbac==0x1)console[_0x42f5d4(0x104)](_0x42f5d4(0x100)),PttCallback[_0x42f5d4(0xfb)](0x1,0x0,'');else{if(_0x30dbac==0x2){console['log'](_0x42f5d4(0xe2));var _0x33c44b=_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xec)];PttCallback['onTempGrp'](0x2,0x0,_0x33c44b);}}}}}else{if(_0x4be050==_0x42f5d4(0xd3)){console[_0x42f5d4(0x104)](_0x42f5d4(0xef),_0x30dbac);if(_0x30dbac==0xa){var _0x51e8f0=0x0;_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xec)]!=null?_0x51e8f0=_0x1f9500['body']['data'][_0x42f5d4(0x106)]:_0x51e8f0=0x0,console[_0x42f5d4(0x104)](_0x42f5d4(0x103),_0x51e8f0),PttCallback['onDuplexCall'](_0x30dbac,_0x51e8f0);}else{if(_0x30dbac==0xb)console[_0x42f5d4(0x104)]('duplex\x20call\x20establish'),PttCallback[_0x42f5d4(0x10c)](_0x30dbac,0x0);else{if(_0x30dbac==0xf)console[_0x42f5d4(0x104)](_0x42f5d4(0x109)),duplex=![],currentSpeakSession!=''&&(MsRtcStop(currentSpeakSession,speakStream),currentSpeakSession=''),PttCallback[_0x42f5d4(0x10c)](_0x30dbac,0x0);else{if(_0x30dbac==0x10)console[_0x42f5d4(0x104)](_0x42f5d4(0xf3)),PttCallback[_0x42f5d4(0x10c)](_0x30dbac,0x0);else{if(_0x30dbac==0x11){var _0x51e8f0=_0x1f9500[_0x42f5d4(0xd9)]['data'][_0x42f5d4(0x106)];console['log'](_0x42f5d4(0xf5),_0x51e8f0),PttCallback[_0x42f5d4(0x10c)](_0x30dbac,_0x51e8f0);}else console[_0x42f5d4(0x104)](_0x42f5d4(0xf7)),PttCallback['onDuplexCall'](-0x1,-0x1);}}}}}else{if(_0x4be050==_0x42f5d4(0x111))_0x30dbac<0x0&&(console[_0x42f5d4(0x104)](_0x42f5d4(0xfc)),PttCallback[_0x42f5d4(0xee)](-0x1,0x0));else{if(_0x4be050=='speak')_0x30dbac==0x0?(console[_0x42f5d4(0x104)](_0x42f5d4(0x10e)),PttCallback[_0x42f5d4(0xee)](0x0,0x0)):(console[_0x42f5d4(0x104)](_0x42f5d4(0xe8),_0x30dbac),PttCallback[_0x42f5d4(0xee)](0x0,_0x30dbac));else{if(_0x4be050==_0x42f5d4(0xda))PttCallback[_0x42f5d4(0xd6)](_0x1f9500[_0x42f5d4(0xd9)]['account']);else{if(_0x4be050==_0x42f5d4(0xde))_0x30dbac==-0x5&&(console[_0x42f5d4(0x104)](_0x42f5d4(0x117)),currentSpeakSession!=''&&(MsRtcStop(currentSpeakSession,speakStream),currentSpeakSession=''),MsRtcStop(_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xfe)],listenStream),Msclose(),PttCallback[_0x42f5d4(0x10a)](-0x5,_0x42f5d4(0x117)));else{if(_0x4be050==_0x42f5d4(0xe9)){var _0x147284=_0x1f9500[_0x42f5d4(0xd9)][_0x42f5d4(0xec)];console[_0x42f5d4(0x104)](_0x42f5d4(0xea),_0x147284),PttCallback['onMessage'](_0x147284);}}}}}}}}}}}function PttLogin(_0x1ae860,_0x23fa69,_0x28f425){var _0x468b81=_0x2741,_0xcf92f={'command':_0x468b81(0xf4),'loginname':_0x1ae860,'account':_0x23fa69,'password':_0x28f425},_0x423d5d={'service':_0x468b81(0xdd),'body':_0xcf92f},_0x32374b=JSON[_0x468b81(0xe0)](_0x423d5d);console['log'](_0x32374b),websockets[_0x468b81(0xfa)](_0x32374b);}function PttInGroup(_0x3520f9,_0xd58069){var _0x8a11e4=_0x2741,_0x887ccb={'command':_0x8a11e4(0x114),'account':_0x3520f9,'gid':_0xd58069},_0x31ecf5={'service':_0x8a11e4(0xdd),'body':_0x887ccb},_0x3791f6=JSON['stringify'](_0x31ecf5);console['log'](_0x3791f6),websockets[_0x8a11e4(0xfa)](_0x3791f6);}function PttOutGroup(_0x10df37){var _0x1d7684=_0x2741,_0x21dd28={'command':'leavegroup','account':_0x10df37},_0x1ca288={'service':'PTT','body':_0x21dd28},_0x4fe5bb=JSON[_0x1d7684(0xe0)](_0x1ca288);console[_0x1d7684(0x104)](_0x4fe5bb),websockets[_0x1d7684(0xfa)](_0x4fe5bb);}function PttTempCall(_0xac1845,_0x5b38ac){var _0x299ee9=_0x2741,_0x4706b1={'command':_0x299ee9(0xe5),'uid':_0x5b38ac,'account':_0xac1845},_0x10f304={'service':_0x299ee9(0xdd),'body':_0x4706b1},_0x305264=JSON['stringify'](_0x10f304);console[_0x299ee9(0x104)](_0x305264),websockets[_0x299ee9(0xfa)](_0x305264);}function _0xf2e7(){var _0x13f6e5=['2gfLEZr','kick\x20out','process\x20ptt\x20response=','pttCb','subscribe\x20name=','duplexcall','parse','115964hZHyIo','onLogout','\x20session=','substring','body','logout','listen\x20name=','join\x20group\x20fail!!!','PTT','notify','response','stringify','service','invit\x20join\x20temp\x20group','join\x20group\x20success\x20gid=','indexOf','tempcall','signal\x20callback\x20','process\x20ptt\x20user=','remote\x20speak\x20start=','message','recv\x20msg','4269260cCNbIo','data','812163yaJihL','onSpeak','result=','create\x20temp\x20group\x20success','handle\x20plugin\x20msg\x20','1055367sHhscj','duplex\x20call\x20remote\x20busy','login','other\x20duplex\x20call\x20coming\x20','417132mAFqUU','error!!!','25qnobcI','releasespk','send','onTempGrp','request\x20speak\x20fail!!!','onJoinGrp','account','send\x20msg','exit\x20temp\x20group','result','valueOf','duplex\x20call\x20start\x20','log','login\x20fail!!!','remote','publish\x20name=','temp\x20group\x20fail!!!','duplex\x20call\x20end','onError','accept\x20a\x20call','onDuplexCall','onLogin','remote\x20speak\x20end','24PoxJFU','process\x20ptt\x20response\x20result=','requestspk','onAddStream','3593744Kzyrtt','joingroup','504804iRyanC'];_0xf2e7=function(){return _0x13f6e5;};return _0xf2e7();}function PttStartCall(_0x2dbf2b){var _0x8c85d9=_0x2741,_0x1fa053=new Date()[_0x8c85d9(0x102)](),_0x4daf4f=_0x2dbf2b+':'+_0x1fa053;return MsRtcPublish({'name':_0x4daf4f,'audio':!![],'video':![],'onStream':function(_0x42f058){var _0x4c62ab=_0x8c85d9;PttCallback[_0x4c62ab(0x112)](0x1,_0x42f058),speakStream=_0x42f058;}}),currentSpeakSession=_0x4daf4f,_0x4daf4f;}function PttStopCall(_0xcc689b,_0x5ce9ab){var _0x5b71d8=_0x2741;MsRtcStop(_0xcc689b,_0x5ce9ab);var _0x25ca12=_0xcc689b[_0x5b71d8(0xe4)](':'),_0xaacc4b=_0xcc689b[_0x5b71d8(0xd8)](0x0,_0x25ca12),_0x17f83a={'command':_0x5b71d8(0xf9),'account':_0xaacc4b},_0x52ee23={'service':_0x5b71d8(0xdd),'body':_0x17f83a},_0x9ad003=JSON[_0x5b71d8(0xe0)](_0x52ee23);websockets[_0x5b71d8(0xfa)](_0x9ad003),currentSpeakSession='';}function PttDuplexCall(_0x463839,_0x5c5e62){var _0x3b77ba=_0x2741;console[_0x3b77ba(0x104)]('start\x20a\x20call');var _0x52447f=new Date()[_0x3b77ba(0x102)](),_0xac13df=_0x463839+':'+_0x52447f;return MsRtcPublish({'name':_0xac13df,'audio':!![],'video':![],'onStream':function(_0xe0f68d){var _0x32475e=_0x3b77ba;PttCallback[_0x32475e(0x112)](0x1,_0xe0f68d),speakStream=_0xe0f68d;}}),duplex=!![],duplexuid=_0x5c5e62,duplexact=0x0,currentSpeakSession=_0xac13df,_0xac13df;}function PttDuplexAccept(_0x337843,_0x1d35cf){var _0x217465=_0x2741;console[_0x217465(0x104)](_0x217465(0x10b));var _0x17acc4=new Date()['valueOf'](),_0x5da34a=_0x337843+':'+_0x17acc4;return MsRtcPublish({'name':_0x5da34a,'audio':!![],'video':![],'onStream':function(_0x4f46aa){PttCallback['onAddStream'](0x1,_0x4f46aa),speakStream=_0x4f46aa;}}),duplex=!![],duplexuid=_0x1d35cf,duplexact=0x1,currentSpeakSession=_0x5da34a,_0x5da34a;}function PttDuplexHangup(_0x590a45,_0x54de06,_0x192636,_0x4099d2){var _0x3a2364=_0x2741;console[_0x3a2364(0x104)]('hangup\x20a\x20call');_0x54de06!=''&&MsRtcStop(_0x54de06,_0x4099d2);var _0x41af72={'command':_0x3a2364(0xd3),'uid':duplexuid,'account':_0x590a45,'action':0x2},_0x4a39dd={'service':_0x3a2364(0xdd),'body':_0x41af72},_0x3e006f=JSON[_0x3a2364(0xe0)](_0x4a39dd);websockets[_0x3a2364(0xfa)](_0x3e006f),duplex=![],currentSpeakSession='';}function PttSendMsg(_0xa6ec7e,_0x5ad96c,_0x2eeaf8,_0x13c7e3,_0xcca8f2){var _0x1342bc=_0x2741;console['log'](_0x1342bc(0xff));var _0x7816ba={'command':_0x1342bc(0xe9),'type':_0x5ad96c,'receiveId':_0x2eeaf8,'msgType':_0x13c7e3,'content':_0xcca8f2,'account':_0xa6ec7e},_0x5d28fe={'service':_0x1342bc(0xdd),'body':_0x7816ba},_0x1c97dc=JSON['stringify'](_0x5d28fe);websockets[_0x1342bc(0xfa)](_0x1c97dc);}function PttLogout(_0x32aa29,_0x3eb262){var _0x5d7456=_0x2741;MsRtcStop(_0x32aa29,_0x3eb262);var _0x4c74c9={'command':_0x5d7456(0xda),'account':_0x32aa29},_0x1ec5ac={'service':_0x5d7456(0xdd),'body':_0x4c74c9},_0x2a08ae=JSON[_0x5d7456(0xe0)](_0x1ec5ac);websockets['send'](_0x2a08ae);}