1 line
36 KiB
JavaScript
1 line
36 KiB
JavaScript
|
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.websdk=r():e.websdk=r()}(self,(function(){return(self.webpackChunkwebsdk=self.webpackChunkwebsdk||[]).push([[758],{9667:function(e,r,t){"use strict";t.r(r),t.d(r,{addUsersToChatRoom:function(){return g},addUsersToChatRoomAllowlist:function(){return W},addUsersToChatRoomWhitelist:function(){return J},blockChatRoomMember:function(){return w},blockChatRoomMembers:function(){return x},chatRoomBlockMulti:function(){return Z},chatRoomBlockSingle:function(){return P},createChatRoom:function(){return h},deleteChatRoomSharedFile:function(){return ce},destroyChatRoom:function(){return p},disableSendChatRoomMsg:function(){return F},enableSendChatRoomMsg:function(){return G},fetchChatRoomAnnouncement:function(){return oe},fetchChatRoomSharedFileList:function(){return se},getChatRoomAdmin:function(){return v},getChatRoomAllowlist:function(){return $},getChatRoomAttributes:function(){return ue},getChatRoomBlacklist:function(){return X},getChatRoomBlacklistNew:function(){return L},getChatRoomBlocklist:function(){return K},getChatRoomDetails:function(){return l},getChatRoomMuteList:function(){return O},getChatRoomMuted:function(){return N},getChatRoomMutelist:function(){return U},getChatRoomSharedFilelist:function(){return ie},getChatRoomWhitelist:function(){return Q},getChatRooms:function(){return m},getJoinedChatRooms:function(){return de},isChatRoomWhiteUser:function(){return ee},isInChatRoomAllowlist:function(){return re},isInChatRoomMutelist:function(){return te},joinChatRoom:function(){return E},leaveChatRoom:function(){return A},listChatRoomMember:function(){return S},listChatRoomMembers:function(){return C},modifyChatRoom:function(){return d},muteChatRoomMember:function(){return j},quitChatRoom:function(){return I},removeChatRoomAdmin:function(){return _},removeChatRoomAllowlistMember:function(){return q},removeChatRoomAttribute:function(){return le},removeChatRoomAttributes:function(){return pe},removeChatRoomBlockMulti:function(){return z},removeChatRoomBlockSingle:function(){return B},removeChatRoomMember:function(){return R},removeChatRoomMembers:function(){return y},removeChatRoomWhitelistMember:function(){return Y},removeMultiChatRoomMember:function(){return T},removeMuteChatRoomMember:function(){return M},removeSingleChatRoomMember:function(){return f},rmUsersFromChatRoomWhitelist:function(){return V},setChatRoomAdmin:function(){return k},setChatRoomAttribute:function(){return he},setChatRoomAttributes:function(){return me},unblockChatRoomMember:function(){return D},unblockChatRoomMembers:function(){return H},unmuteChatRoomMember:function(){return b},updateChatRoomAnnouncement:function(){return ae},uploadChatRoomSharedFile:function(){return ne}}),t(1539),t(8674),t(8309),t(2526),t(1817),t(2222),t(9753),t(9600),t(1249),t(4916),t(3123),t(2165),t(6992),t(8783),t(3948);var o=t(5531),a=t(7252),n=t(4024),c=t(3246),s=t(7360),i=t(1595);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function m(e){var r=this;if("number"!=typeof e.pagenum||"number"!=typeof e.pagesize)throw Error("Invalid parameter");if(!c.XZ.call(this)){var t=a.Z.create({type:o.E.REST_PARAMS_STATUS,message:"appkey or token error"});return Promise.reject(t)}var u={pagenum:e.pagenum||1,pagesize:e.pagesize||20},m=this.context,h=m.orgName,p=m.appName,l=m.accessToken,d={url:this.apiUrl+"/"+h+"/"+p+"/chatrooms",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+l},data:u,success:function(r){"function"==typeof e.success&&e.success(r)},error:function(t){t.error&&t.error_description&&r.onError&&r.onError({type:o.E.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR,message:t.error_description,data:t}),"function"==typeof e.error&&e.error(t)}};return s.kg.debug("Call getChatRooms",e),n.hj.call(this,d,i.fI.GET_CHATROOM_LIST)}function h(e){i
|