Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/im/v2/provider/pull/src/base/ |
Upload File : |
import { BotPullHandler } from './handlers/bot'; import { MessagePullHandler } from './handlers/message'; import { ChatPullHandler } from './handlers/chat'; import { TariffPullHandler } from './handlers/tariff'; import { UserPullHandler } from './handlers/user'; import { DesktopPullHandler } from './handlers/desktop'; import { SettingsPullHandler } from './handlers/settings'; import { CommentsPullHandler } from './handlers/comments'; import { ApplicationPullHandler } from './handlers/application'; import { CollabPullHandler } from './handlers/collab'; export class BasePullHandler { #messageHandler: MessagePullHandler; #chatHandler: ChatPullHandler; #userHandler: UserPullHandler; #desktopHandler: DesktopPullHandler; #settingsHandler: SettingsPullHandler; #commentsHandler: CommentsPullHandler; #tariffPullHandler: TariffPullHandler; #applicationPullHandler: ApplicationPullHandler; #collabPullHandler: CollabPullHandler; #botPullHandler: BotPullHandler; constructor() { this.#messageHandler = new MessagePullHandler(); this.#chatHandler = new ChatPullHandler(); this.#userHandler = new UserPullHandler(); this.#desktopHandler = new DesktopPullHandler(); this.#settingsHandler = new SettingsPullHandler(); this.#commentsHandler = new CommentsPullHandler(); this.#tariffPullHandler = new TariffPullHandler(); this.#applicationPullHandler = new ApplicationPullHandler(); this.#collabPullHandler = new CollabPullHandler(); this.#botPullHandler = new BotPullHandler(); } getModuleId(): string { return 'im'; } // region 'message' handleMessage(params) { this.#messageHandler.handleMessageAdd(params); } handleMessageChat(params) { this.#messageHandler.handleMessageAdd(params); } handleMessageUpdate(params) { this.#messageHandler.handleMessageUpdate(params); } handleMessageDeleteV2(params) { this.#messageHandler.handleMessageDeleteV2(params); } handleMessageDelete(params) { this.#messageHandler.handleMessageDelete(params); } handleMessageDeleteComplete(params) { this.#messageHandler.handleMessageDeleteComplete(params); } handleAddReaction(params) { this.#messageHandler.handleAddReaction(params); } handleDeleteReaction(params) { this.#messageHandler.handleDeleteReaction(params); } handleMessageParamsUpdate(params) { this.#messageHandler.handleMessageParamsUpdate(params); } handleReadMessage(params, extra) { this.#messageHandler.handleReadMessage(params, extra); } handleReadMessageChat(params, extra) { this.#messageHandler.handleReadMessage(params, extra); } handleReadMessageOpponent(params) { this.#messageHandler.handleReadMessageOpponent(params); } handleReadMessageChatOpponent(params) { this.#messageHandler.handleReadMessageOpponent(params); } handlePinAdd(params) { this.#messageHandler.handlePinAdd(params); } handlePinDelete(params) { this.#messageHandler.handlePinDelete(params); } // endregion 'message' // region 'chat' handleChatOwner(params) { this.#chatHandler.handleChatOwner(params); } handleChatManagers(params) { this.#chatHandler.handleChatManagers(params); } handleChatUserAdd(params) { this.#chatHandler.handleChatUserAdd(params); } handleChatUserLeave(params) { this.#chatHandler.handleChatUserLeave(params); } handleInputActionNotify(params) { this.#chatHandler.handleInputActionNotify(params); } handleChatUnread(params) { this.#chatHandler.handleChatUnread(params); } handleReadAllChats() { this.#chatHandler.handleReadAllChats(); } handleChatMuteNotify(params) { this.#chatHandler.handleChatMuteNotify(params); } handleChatRename(params) { this.#chatHandler.handleChatRename(params); } handleChatAvatar(params) { this.#chatHandler.handleChatAvatar(params); } handleChatUpdate(params) { this.#chatHandler.handleChatUpdate(params); } handleChatFieldsUpdate(params) { this.#chatHandler.handleChatFieldsUpdate(params); } handleChatDelete(params) { this.#chatHandler.handleChatDelete(params); } handleChatConvert(params) { this.#chatHandler.handleChatConvert(params); } handleChatCopilotRoleUpdate(params) { this.#chatHandler.handleChatCopilotRoleUpdate(params); } handleMessagesAutoDeleteDelayChanged(params) { this.#chatHandler.handleMessagesAutoDeleteDelayChanged(params); } // endregion 'chat' // region 'user' handleUserInvite(params) { this.#userHandler.handleUserInvite(params); } handleUserShowInRecent(params) { this.#userHandler.handleUserShowInRecent(params); } // endregion 'user' // region 'desktop' handleDesktopOnline(params) { this.#desktopHandler.handleDesktopOnline(params); } handleDesktopOffline() { this.#desktopHandler.handleDesktopOffline(); } // endregion 'desktop' // region 'settings' handleSettingsUpdate(params) { this.#settingsHandler.handleSettingsUpdate(params); } // endregion 'settings' // region 'comments' handleCommentSubscribe(params) { this.#commentsHandler.handleCommentSubscribe(params); } handleReadAllChannelComments(params) { this.#commentsHandler.handleReadAllChannelComments(params); } // endregion 'comments' // region 'tariff' handleChangeTariff(params) { this.#tariffPullHandler.handleChangeTariff(params); } // endregion 'tariff' // region 'collab' handleUpdateCollabEntityCounter(params) { this.#collabPullHandler.handleUpdateCollabEntityCounter(params); } handleUpdateCollabGuestCount(params) { this.#collabPullHandler.handleUpdateCollabGuestCount(params); } // endregion 'collab' // region 'application' handleApplicationOpenChat(params) { this.#applicationPullHandler.handleApplicationOpenChat(params); } // endregion 'application' // region 'bot' handleBotAdd(params) { this.#botPullHandler.handleBotAdd(params); } handleBotUpdate(params) { this.#botPullHandler.handleBotUpdate(params); } // endregion 'application' }