const ReadyResource=require('ready-resource'),safetyCatch=require('safety-catch');
const b4a=require('b4a'),KeetView=require('./view'),{
ConfigKey}
=require('./constants'),{
api:{
hrpc:RPC}
}
=require('../../spec/client.js');
module.exports=class KeetClient extends ReadyResource{
static .View=KeetView;
static .ConfigKey=ConfigKey;
constructor(_0x2fc3c2,_0x4789aa){
_0x4c9863={
_0x22f4c0:0x119,_0x239f60:0x2d8,_0x580ebd:0x186},_0x3bfd35={
_0x2ef412:0x1c4,_0x5e294d:0x39,_0x43c66b:0x1d5}
;
super(),this.rpc=new RPC(_0x2fc3c2),this.view=new KeetView(),this.opts=_0x4789aa,this._wantClock=0x0,this._haveClock=0x0,this._unwants=new Map(),this._gcInterval=setInterval(()=>this._gc(),-0x23aa),this.rpc.onCoreHaveIdentity(this._handleHaveIdentity.bind(this)),this.rpc.onCoreHavePairing(this._handleHavePairing.bind(this)),this.rpc.onCoreHaveLobby(this._handleHaveLobby.bind(this)),this.rpc.onCoreHaveChat(this._handleHaveChat.bind(this)),this.rpc.onCoreHaveMembers(this._handleHaveMembers.bind(this)),this.rpc.onCoreHaveRoomInfo(this._handleHaveRoomInfo.bind(this)),this.rpc.onCoreIdentityReset(this._handleIdentityReset.bind(this)),this.rpc.onCoreIdentityMember(this._handleIdentityMember.bind(this)),this.rpc.onCoreIdentityDevice(this._handleIdentityDevice.bind(this)),this.rpc.onCorePairingReset(this._handlePairingReset.bind(this)),this.rpc.onCoreLobbyReset(this._handleLobbyReset.bind(this)),this.rpc.onCoreLobbyRoom(this._handleLobbyRoom.bind(this)),this.rpc.onCoreChatReset(this._handleChatReset.bind(this)),this.rpc.onCoreRoomInfo(this._handleRoomInfo.bind(this)),this.rpc.onCoreRoomInfoRole(this._handleRoomInfoRole.bind(this)),this.rpc.onCoreRoomInfoDigest(this._handleRoomInfoDigest.bind(this)),this.rpc.onCoreRoomInfoConfig(this._handleRoomInfoConfig.bind(this)),this.rpc.onCoreRoomInfoLastMessage(this._handleRoomInfoLastMessage.bind(this)),this.rpc.onCoreMessageInfo(this._handleMessageInfo.bind(this)),this.rpc.onCoreMessageInfoChat(this._handleMessageInfoChat.bind(this)),this.rpc.onCoreMessageInfoRole(this._handleMessageInfoRole.bind(this)),this.rpc.onCoreMessageInfoMember(this._handleMessageInfoMember.bind(this)),this.rpc.onCoreMessageInfoReactions(this._handleMessageInfoReactions.bind(this)),this.rpc.onCoreMemberListAdd(this._handleMemberListAdd.bind(this)),this.rpc.onCoreMemberListRemove(this._handleMemberListRemove.bind(this));
this.rpc.onCoreMember(this._handleMember.bind(this)),this.rpc.onCoreDevice(this._handleDevice.bind(this)),this.ready().catch(safetyCatch);
}
._makeRequest(_0x4c0eff){
_0x314dee={
_0x3bf24b:0xce}
;
return{
'header':{
'timestamp':Date.now()},..._0x4c0eff}
;
}
._makeWant(_0x96d8f3){
_0x58a6b9={
_0x23485c:0x1d,_0x4cfdcb:0x307,_0x5107d5:0x125},_0x1cade8={
_0x103403:0x198,_0x4e35ba:0x256},_0x82c4b3={
'clock':++this._wantClock,..._0x96d8f3}
;
const _0x3d4091={
'clock':_0x82c4b3.clock}
;
return{
'want':_0x82c4b3,'unwant':_0x3d4091}
;
}
._awaitHave(_0x4e7f36,_0x186352){
return new Promise(_0x2049ac=>{_0x540c40={_0x322a95:0x2f1};const _0x5dbd13=_0x39d7bd=>{if(_0x39d7bd!==_0x186352)return;_0x4e7f36.off("have",_0x5dbd13),_0x2049ac(_0x186352);};_0x4e7f36.on("have",_0x5dbd13);});
}
._open(){
}
._close(){
_0x21bdf6={
_0x1dfe4c:0x5d,_0x53c18f:0x2b6,_0x3449ab:0xde}
;
clearInterval(this._gcInterval);
}
._gc(){
_0x4962d1={
_0x94a621:0x48a,_0x1a51be:0x1f3},_0x22fff4={
_0x384ab:0x134}
;
if(this._haveClock<this._wantClock)return;
this.view.members.maybeGC(),this.view.devices.maybeGC(),this.view.reactions.maybeGC(),this.view.messages.maybeGC();
this.view.rooms.maybeGC();
}
._handleIdentityReset(_0x55f860){
_0x5037d4={
_0x20d1cd:0xab,_0x1cc9b7:0x17b,_0x4f9e7f:0x54},_0xd28688={
_0x39fde3:0x22,_0x276648:0xb0}
;
this.view.identity.onReset(_0x55f860);
}
._handleIdentityMember(_0x575f2c){
_0x880877={
_0x1a581a:0x33,_0x4e3843:0xa3},_0x4c1ef4={
_0x39b28f:0x42,_0x13270b:0x29,_0x53e6bd:0x8c}
;
this.view.identity.onMemberChanged(_0x575f2c);
}
._handleIdentityDevice(_0x155ccd){
_0xe2ecb={
_0x2bd495:0x142,_0x551957:0x150,_0x11c267:0x127},_0x4830ba={
_0x59b17e:0x14b,_0x11c1ce:0x4af,_0x3b123b:0x11a}
;
this.view.identity.onDeviceChanged(_0x155ccd);
}
._handlePairingReset(_0x545464){
_0xa4f020={
_0x5dd32d:0x1c,_0x420396:0x198}
;
this.view.pairing.onReset(_0x545464);
}
._handleLobbyReset(_0x4a4fd6){
_0x3938ca={
_0x584e0d:0xab,_0x592efa:0x8f},_0x59d4fe={
_0x32cbbd:0x91,_0x14cab2:0x37}
;
this.view.lobby.onReset(_0x4a4fd6);
}
._handleLobbyRoom(_0x2745b7){
_0x2bedd8={
_0xd7e8bd:0xe8,_0x5ab8f3:0x1cb},_0x59b055={
_0x179e0f:0x1af,_0x4ae7c6:0x6f}
;
this.view.lobby.onRoom(_0x2745b7);
}
._handleRoomInfo(_0x129715){
_0x2156d8={
_0x246d94:0x1e9,_0x314be5:0x14},_0x585f0d={
_0x9b2481:0x1b3,_0x832ab9:0x121,_0x479915:0x16b}
;
this.view.roomInfo.onAdd(_0x129715);
}
._handleRoomInfoRole(_0x487bca){
_0x6dfd74={
_0x5d4c03:0x102,_0x19555f:0x6c1,_0x20665a:0x1dc},_0x4de359={
_0x427d39:0xa6,_0x2f3c69:0x531,_0x2e2fd9:0x135},_0x182919=b4a.toString(_0x487bca.id,"hex");
this.view.roomInfo.onRoleChanged({'id':_0x182919,'role':_0x487bca.role});
}
._handleRoomInfoDigest(_0xedd634){
_0x1fd66c={
_0x4e0d2a:0x1a6},_0x4638c8={
_0x3c42c5:0x1c3,_0x50b198:0x383}
;
const _0x534e4d=b4a.toString(_0xedd634.id,"hex");
this.view.roomInfo.onDigestChanged({'id':_0x534e4d,'digest':_0xedd634.digest});
}
._handleRoomInfoConfig(_0x14e5a){
_0x569cba={
_0x30d0e0:0x147,_0x2623dd:0x2e3},_0x5747ad={
_0x5cf579:0x6f3,_0x24df7d:0x65}
;
const _0x5b221f=b4a.toString(_0x14e5a.id,"hex");
this.view.roomInfo.onConfigChanged({'id':_0x5b221f,'config':_0x14e5a.config});
}
._handleRoomInfoLastMessage(_0x2f395c){
_0x220192={
_0x150e0d:0x16d,_0xa84ed9:0x475,_0x41ec8d:0x1d8},_0x11ce90={
_0x69f8db:0x5a2},_0xaf8276=b4a.toString(_0x2f395c.id,"hex");
this.view.roomInfo.onLastMessageChanged({'id':_0xaf8276,'messageId':_0x2f395c.lastMessage});
}
._handleMessageInfo(_0x28e63e){
_0x5c375f={
_0x908848:0x40,_0x1c0ceb:0x47,_0xa56bf5:0x110},_0x28e6c0={
_0x5b83ad:0x1e9,_0x24475c:0xd9,_0x329d1b:0x146}
;
this.view.messageInfo.onAdd(_0x28e63e);
}
._handleMessageInfoChat(_0x3a86c4){
_0x10f7df={
_0x24aaab:0x12e,_0x41b893:0x102},_0x217549={
_0x288972:0x89,_0x27c553:0x2a,_0x86db88:0x1a0}
;
this.view.messageInfo.onChatChanged(_0x3a86c4);
}
._handleMessageInfoRole(_0x41e2bd){
_0x449c6c={
_0xc8c213:0xd6,_0x3d7f37:0x135},_0x27d633={
_0x307d34:0x8,_0x1c6825:0x16e,_0x13e76d:0xd4}
;
this.view.messageInfo.onRoleChanged(_0x41e2bd);
}
._handleMessageInfoMember(_0x941406){
_0x491192={
_0x103933:0x34,_0x174d51:0x3b0,_0x58d67d:0x187},_0x19b818={
_0x53eb0d:0x2e5,_0x4e41cc:0x158}
;
this.view.messageInfo.onMemberChanged(_0x941406);
}
._handleMessageInfoReactions(_0x4cd81e){
_0x10a6ec={
_0x1ad662:0x76,_0x4024cf:0x1e6},_0x31482f={
_0x275c04:0x6e}
;
this.view.messageInfo.onReactionsChanged(_0x4cd81e);
}
._handleChatReset(_0x6deef6){
_0x4a643f={
_0x55dd55:0x170,_0x34d30c:0x2e7},_0x118315={
_0x40ea23:0x19a,_0x3ce7ef:0xa1,_0x78f151:0x42}
;
this.view.chat.onReset(_0x6deef6);
}
._handleMemberListAdd(){
}
._handleMemberListRemove(){
}
._handlePairingChanged(){
}
._handleMessage(_0x268532){
_0x4275f1={
_0x48f799:0xc9,_0x59d3a9:0x50d,_0x2e5e89:0xdf},_0x228fc9={
_0x531fc4:0x1f3,_0x4304a2:0x110}
;
this.view.messages.add(_0x268532);
}
._handleReactions(_0x253fc2){
_0x264587={
_0x43a4f0:0x517},_0x204936={
_0x45630e:0x135,_0x1f3be8:0xac}
;
this.view.reactions.add(_0x253fc2);
}
._handleMember(_0x1c153b){
_0x1174d7={
_0xed1295:0x171,_0x4b3752:0x3f3,_0x3508d4:0x160},_0x486bdd={
_0x21fa5a:0x58,_0x5315e4:0x4c5}
;
this.view.members.add(_0x1c153b);
}
._handleDevice(_0x36a2bb){
_0x2f3003={
_0x4fb9fa:0x8d,_0x442ce0:0x4b,_0x48a5d2:0x198}
;
this.view.devices.add(_0x36a2bb);
}
._handleHaveIdentity({clock:_0x3dfdd9}){
_0x6a5a35={
_0x293784:0x144},_0x5bf679={
_0x454ab3:0x71,_0x4622da:0x6c,_0x419eb5:0xa}
;
this._haveClock=Math.max(this._haveClock,_0x3dfdd9);
this.view.identity.onHave(_0x3dfdd9);
}
._handleHavePairing({clock:_0x4f461b}){
_0x1bedf8={
_0x4814a9:0x3d,_0x4a22cc:0x5c}
;
this._haveClock=Math.max(this._haveClock,_0x4f461b),this.view.pairing.onHave(_0x4f461b);
}
._handleHaveLobby({clock:_0x1f2489}){
_0x3bc02c={
_0x2aae7f:0x1f0,_0x268ff3:0xbe,_0x5136f5:0x60},_0x435488={
_0x5f1476:0x1e3,_0x24137e:0x5d7}
;
this._haveClock=Math.max(this._haveClock,_0x1f2489),this.view.lobby.onHave(_0x1f2489);
}
._handleHaveRoomInfo({clock:_0x288392}){
_0x5d4ab0={
_0x4ae022:0x28e,_0x496f34:0xa3},_0x495f92={
_0x4ef823:0x118,_0x3ff02b:0x69,_0x2cd775:0x13b}
;
this._haveClock=Math.max(this._haveClock,_0x288392);
this.view.rooms.onHave(_0x288392);
}
._handleHaveChat({clock:_0x1d5e68}){
_0x53042a={
_0x2a8677:0xdd,_0x3f9351:0xa8},_0xadbfd9={
_0x29f26f:0x93,_0x52b003:0x0,_0xae7bfd:0x1c2}
;
this._haveClock=Math.max(this._haveClock,_0x1d5e68);
this.view.chat.onHave(_0x1d5e68);
}
._handleHaveMembers({clock:_0x494716}){
_0x42f4d2={
_0x1db7b8:0x1ca,_0x5740d4:0x29f,_0x3b85e0:0x175},_0x1d9f8a={
_0x516896:0xb6,_0x5c353e:0x5c7}
;
this._haveClock=Math.max(this._haveClock,_0x494716);
this.view.members.onHave(_0x494716);
}
.viewIdentity(){
_0x18bddf={
_0x337e30:0x1b6,_0x3603d4:0x193,_0x54ac07:0x1b2,_0x5ef07f:0x1a6,_0x462367:0x1a5,_0x37aabb:0x182,_0x33ba4f:0x165,_0x50e158:0x11f,_0x330f33:0x15d,_0x4ff3f9:0x1a7,_0x35a663:0x1bc,_0x14aa89:0x18b,_0x42e087:0x1ae},_0x1d9547={
_0x4c9bd4:0x334,_0x35d9d7:0x0},_0x2583a4={
_0x46448f:0xbc,_0x11e858:0x211},_0x51873f={
_0x230691:0x1c6,_0x5517fd:0x1d5},{
want:_0x4c7eb5,unwant:_0x4bb296}
=this._makeWant();
this.view.identity.onWant(_0x4c7eb5.clock),this.rpc.coreWantIdentity(_0x4c7eb5);
return this._unwants.set(_0x4c7eb5.clock,()=>{this.view.identity.onCancel(_0x4c7eb5.clock),this.rpc.coreUnwantIdentity(_0x4bb296);}),this._awaitHave(this.view.identity,_0x4c7eb5.clock);
}
.viewPairing(){
_0x1755c6={
_0x98e413:0x1b2,_0x1e7dce:0x19e,_0x4af429:0x1a2,_0x28aedc:0x1b0,_0x4ea19f:0x1da,_0x25e21b:0x1f3,_0x453a50:0x209,_0x5b3ad3:0x1b7,_0xa5c9c4:0x161,_0x55ac80:0x11a,_0x1c688a:0x195,_0x2ecffa:0x388,_0x23d1e6:0x329,_0x1dde18:0x344,_0x2301b3:0x1a3},_0x32e983={
_0x3b2d42:0x8f,_0x1f615d:0x19c},_0x29303d={
_0x3584c3:0x2f,_0x24342f:0x52},_0x4ab6c4={
_0x2f9d8e:0x1d,_0x1b3031:0xa3},_0x61cc77={
_0x413d3e:0x1db,_0xfc6eae:0x62d,_0xdf2eea:0x4}
;
const {
want:_0xe8a173,unwant:_0xf408f2}
=this._makeWant();
return this.view.pairing.onWant(_0xe8a173.clock),this.rpc.coreWantPairing(_0xe8a173),this._unwants.set(_0xe8a173.clock,()=>{this.view.pairing.onCancel(_0xe8a173.clock),this.rpc.coreUnwantPairing(_0xf408f2);}),this._awaitHave(this.view.pairing,_0xe8a173.clock);
}
.viewLobby({start:start=0x0,end:end=0x0}={}){
_0x2eb0b6={
_0x1f3d10:0x419,_0x46927f:0x381,_0x5a882a:0x3f1,_0xf2924f:0x3d5,_0xa9d994:0x3ad,_0x16dc2f:0x3fc,_0x357395:0x3fa,_0x328ae6:0x44e,_0x39149b:0x386,_0x41fd27:0x362,_0x411baf:0x351,_0x12c3c2:0x423,_0x5c6ec9:0x3f3,_0xebd96e:0x34c,_0x55595c:0x35f,_0x54e90a:0x392},_0xdc3f8c={
_0x32bb11:0xfd,_0x53e78e:0x105,_0x5ef078:0xb7},_0x8236d={
_0x26e7ec:0x1eb,_0x18d90a:0x532,_0x156b8a:0x18d}
;
const {
want:_0x1f2514,unwant:_0x5bf761}
=this._makeWant({'start':start,'end':end});
return this.view.lobby.onWant(_0x1f2514.clock,start,end),this.rpc.coreWantLobby(_0x1f2514),this._unwants.set(_0x1f2514.clock,()=>{_0x5687dc={_0x10a792:0x4ce};this.view.lobby.onCancel(_0x1f2514.clock);this.rpc.coreUnwantLobby(_0x5bf761);}),this._awaitHave(this.view.lobby,_0x1f2514.clock);
}
.viewChat({roomKey:_0x174af5,start:start=-0x4c6e,size:size=0x0,isBottom:isBottom=![]}={}){
_0x2461b4={
_0x156273:0xab,_0x3d6a4d:0x557,_0x399aa4:0x187},_0x231cce={
_0x33b0f9:0xad,_0x41a5b4:0x25f,_0x11690f:0x12},_0x224c0d={
_0x442fee:0x1d4,_0x28c7ce:0x1e2,_0x5bed40:0x218,_0x22f297:0x18b,_0x4dd970:0x200,_0x31b656:0x231,_0x205d0d:0x1d9,_0x1b5752:0xa4,_0x1fc8f2:0x82,_0xec4471:0x93,_0x1ee495:0xcc,_0x3cbb43:0x9e},_0xe1c155={
_0x5c5341:0xc6,_0x24f3da:0xcb,_0x219b59:0x165},_0x55d793={
_0x35291b:0x1e8,_0x3dd73f:0x1be},{
want:_0x57fbc5,unwant:_0x1972df}
=this._makeWant({'roomKey':_0x174af5,'start':start,'size':size,'isBottom':isBottom});
this.view.chat.onWant(_0x57fbc5.clock,_0x174af5,start,size,isBottom),this.rpc.coreWantChat(_0x57fbc5),this._unwants.set(_0x57fbc5.clock,()=>{this.view.chat.onCancel(_0x57fbc5.clock);this.rpc.coreUnwantChat(_0x1972df);});
return this._awaitHave(this.view.chat,_0x57fbc5.clock);
}
.viewMembers(_0x10ea71,_0x93f3e7,_0x6b6dc8){
_0x166d36={
_0x44972a:0x12d,_0x31648d:0x640,_0xca53f4:0x5}
;
this.rpc.coreWantMembers(this._makeWant({'roomKey':_0x10ea71,'offset':_0x93f3e7,'count':_0x6b6dc8}));
}
.viewReactions(_0x4531bb,_0x363e81,_0x466f45,_0x4e4aaa){
_0x1ebd69={
_0x15d42e:0xbb,_0x45d8:0x9,_0x23cc60:0x1d6}
;
this.rpc.coreWantReactions(this._makeWant({'roomKey':_0x4531bb,'messageId':_0x363e81,'offset':_0x466f45,'count':_0x4e4aaa}));
}
.cancel(_0x56f43e){
}
async.boot(){
const _0x17b01e=await this.rpc.boot(this._makeRequest(this.opts));
}
async.createRoom(_0x89b4ad={}){
_0x4d903f={
_0x1facac:0x15c,_0x1185fa:0xe2},_0x13f6f5={
_0x304b1c:0x46,_0x4266b7:0x6bb,_0x21e121:0x1b8}
;
const _0x4e5286=await this.rpc.coreCreateRoom(this._makeRequest(_0x89b4ad));
return{
'roomKey':_0x4e5286.roomKey,'roomId':b4a.toString(_0x4e5286.roomKey,'hex')}
;
}
.leaveRoom(_0x36225a){
_0x28e9ca={
_0xd12050:0x1bb},_0x53c646={
_0x42d216:0xbc,_0x567edc:0x146,_0xb836a9:0x1d}
;
return this.rpc.coreLeaveRoom(this._makeRequest({'roomKey':_0x36225a}));
}
.activateRoom(_0x117f3d){
_0x33760c={
_0x54c30e:0x1eb,_0x4a0ddf:0x1c0},_0x4ea071={
_0xaa205b:0xe3,_0x3bb8ad:0x471,_0x1a0516:0x196}
;
return this.rpc.coreActivateRoom(this._makeRequest({'roomKey':_0x117f3d}));
}
.deactivateRoom(_0xc7799){
_0x1c8d22={
_0x54c4bb:0x1af,_0x5628ad:0x135,_0x57f824:0x148},_0x5020ee={
_0xb73243:0x258,_0x1d1c26:0x0}
;
return this.rpc.coreDeactivateRoom(this._makeRequest({'roomKey':_0xc7799}));
}
.updateRoomConfig(_0x515b3a,_0x5d0d7d,_0x77cb33){
_0x4035d5={
_0xd00ec2:0x8,_0x170de2:0x12d},_0x3cfcff={
_0x2fdcb6:0x9,_0x165f3e:0x97}
;
return this.rpc.coreUpdateRoomConfig(this._makeRequest({'roomKey':_0x515b3a,'key':_0x5d0d7d,'config':_0x77cb33}));
}
async.startPairingRoom(_0x248bc6){
_0x178c38={
_0x2f2223:0x4b,_0x61c5e7:0xbf}
;
return this.rpc.coreStartPairing(this._makeRequest({'invitation':_0x248bc6,'isIdentity':![]}));
}
async.startPairingIdentity(_0x57d793){
_0x3bf7a8={
_0x3e593d:0xc9,_0x3097b5:0x673,_0x2eaca0:0x133},_0x125e1c={
_0xf9ce5:0x111}
;
return this.rpc.coreStartPairing(this._makeRequest({'invitation':_0x57d793,'isIdentity':!![]}));
}
.createRoomInvitation(_0x1f2923,_0x1422ee={}){
_0x3df9ac={
_0x1f6559:0xde,_0x58f3de:0x4e3,_0x38af06:0x15},_0xb90f17={
_0x6465c5:0x144,_0x239226:0x543,_0x87830c:0x31}
;
return this.rpc.coreCreateRoomInvitation(this._makeRequest({'roomKey':_0x1f2923,'permissions':_0x1422ee,'expiration':_0x1422ee.expiration}));
}
.createIdentityInvitation(){
_0x3a4f10={
_0x579cc0:0x1d9,_0x112796:0x2ed},_0x100250={
_0xe2a4b0:0x14b,_0x1760e3:0xb5}
;
return this.rpc.coreCreateIdentityInvitation(this._makeRequest());
}
.acceptJoinRequest(_0x160705,_0x105cfd){
_0x5e3f47={
_0x253c47:0x139,_0x7c30bd:0x380,_0x6f6b7:0xf7},_0x81bc82={
_0x2fb244:0x17e,_0x22f9e5:0x7a}
;
return this.rpc.coreAcceptJoinRequest(this._makeRequest({'roomKey':_0x160705,'request':_0x105cfd}));
}
.rejectJoinRequest(_0x54f259,_0x154669){
_0x2113e7={
_0x467eb:0xf8,_0x5308cd:0x5e8,_0x14853c:0xa3},_0x263921={
_0x2a9447:0x43,_0x4f88b9:0x13,_0x376ef5:0xff}
;
return this.rpc.coreRejectJoinRequest(this._makeRequest({'roomKey':_0x54f259,'request':_0x154669}));
}
.stopPairing(_0x434f7f){
_0x2520d7={
_0x5d0f26:0x97,_0x246fcc:0xd5},_0x5a067c={
_0x40435c:0xba,_0x5926a0:0x27,_0x58db8b:0x66}
;
return this.rpc.coreStopPairing(this._makeRequest({'id':_0x434f7f}));
}
.addChatMessage(_0x24b818,_0x12a25c){
_0x4ad875={
_0x301e86:0x1e5,_0x555adc:0x3e7},_0x2a39c={
_0x2edbbf:0x5e,_0x42c287:0x57e}
;
return this.rpc.coreAddChatMessage(this._makeRequest({'roomKey':_0x24b818,'message':_0x12a25c}));
}
.editChatMessage(_0xad0008,_0x2256b8,_0x2ce08a){
_0x190df4={
_0x44e1d:0x70,_0x26ae5c:0x89},_0x118ab1={
_0x11abb9:0x1e6,_0x55d1b8:0x5b,_0x3c0e8f:0x141}
;
return this.rpc.coreEditChatMessage(this._makeRequest({'roomKey':_0xad0008,'id':_0x2256b8,'message':_0x2ce08a}));
}
.removeChatMessage(_0x80057f,_0x804215){
_0x40aa54={
_0xc9f54c:0x160,_0x5ab1ef:0x3b8,_0x334956:0x158},_0x1d542a={
_0x5636b0:0xa9,_0x1a9652:0x44,_0x464b50:0x17f}
;
return this.rpc.coreRemoveChatMessage(this._makeRequest({'roomKey':_0x80057f,'id':_0x804215}));
}
.addChatReaction(_0x23d41e,_0x18cd59,_0x4118cb){
_0x1a506e={
_0x34e8d3:0x19b,_0x497f29:0x2ac},_0x894ffc={
_0x1e28ce:0x50,_0x351af3:0x196}
;
return this.rpc.coreAddChatReaction(this._makeRequest({'roomKey':_0x23d41e,'id':_0x18cd59,'reaction':_0x4118cb}));
}
.removeChatReaction(_0x455d47,_0x4eda60,_0x3abc60){
_0x18e5ae={
_0x2e40a6:0x147,_0x9f67f7:0x19},_0xb11a2f={
_0x293315:0x146,_0x38bc96:0x179}
;
return this.rpc.coreRemoveChatReaction(this._makeRequest({'roomKey':_0x455d47,'id':_0x4eda60,'reaction':_0x3abc60}));
}
.updateProfile(_0x2a292f){
_0x48a6f3={
_0x1b2868:0x52,_0x476b13:0x108},_0x18ffff={
_0x2e26e9:0x6e,_0x4c1abc:0x47}
;
return this.rpc.coreUpdateProfile(this._makeRequest(_0x2a292f));
}
}
;