mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
81 KiB
JSON
1 line
81 KiB
JSON
|
|
{"ast":null,"code":"import _asyncToGenerator from \"C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { __decorate } from \"tslib\";\nimport { Injectable } from '@angular/core';\nimport { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';\nimport { MessageService } from 'src/app/services/chat/message.service';\nimport { showDateDuration } from 'src/plugin/showDateDuration';\nimport { Storage } from '@ionic/storage';\nimport { Platform } from '@ionic/angular';\nimport { SqliteService } from 'src/app/services/sqlite.service';\nimport { NativeNotificationService } from 'src/app/services/native-notification.service';\nimport { SessionStore } from 'src/app/store/session.service';\nimport { capitalizeTxt } from 'src/plugin/text';\nimport { SortService } from '../functions/sort.service';\nimport { environment } from 'src/environments/environment';\nimport { ChatService } from 'src/app/services/chat.service';\nimport { NfService } from 'src/app/services/chat/nf.service';\nimport { v4 as uuidv4 } from 'uuid';\nimport { ChatMethodsService } from './chat-methods.service';\nimport { DeleteMessageModel, MessageModel } from '../../models/beast-orm';\nimport { AESEncrypt } from '../aesencrypt.service';\nimport { AttachmentsService } from 'src/app/services/attachments.service';\nimport { ConnectionStatus, NetworkServiceService } from 'src/app/services/network-service.service';\nimport { ChatSystemService } from './chat-system.service';\nimport { ViewedMessageService } from './viewed-message.service';\nimport * as FIFOProcessQueue from 'fifo-process-queue';\nimport { NotificationsService } from '../notifications.service';\nlet RoomService = class RoomService {\n constructor(RochetChatConnectorService, MessageService, storage, platform, sqlservice, NativeNotificationService, sortService, chatService, NfService, ChatMethodsService, AESEncrypt, AttachmentsService, NetworkServiceService, ChatSystemService, ViewedMessageService, notificationService) {\n var _this = this;\n this.RochetChatConnectorService = RochetChatConnectorService;\n this.MessageService = MessageService;\n this.storage = storage;\n this.platform = platform;\n this.sqlservice = sqlservice;\n this.NativeNotificationService = NativeNotificationService;\n this.sortService = sortService;\n this.chatService = chatService;\n this.NfService = NfService;\n this.ChatMethodsService = ChatMethodsService;\n this.AESEncrypt = AESEncrypt;\n this.AttachmentsService = AttachmentsService;\n this.NetworkServiceService = NetworkServiceService;\n this.ChatSystemService = ChatSystemService;\n this.ViewedMessageService = ViewedMessageService;\n this.notificationService = notificationService;\n this.messages = [];\n this.storageMessage = [];\n this.messagesBeforeOfflineAPI = [];\n this.id = '';\n this.t = '';\n this.name = '';\n this._updatedAt = {};\n this.hasLoadHistory = false;\n this.restoreFromOffline = false;\n this.duration = '';\n this.isTyping = false;\n this.otherUserType = false;\n this.lastTimeType = null;\n this.message = '';\n this.lastMessageTxt = '';\n this.userThatIsTyping = '';\n this.messagesLocalReference = [];\n this.members = [];\n this.membersExcludeMe = [];\n this.sessionStore = SessionStore;\n this.countDownTime = '';\n this.chatOpen = false;\n this.messageUnread = false;\n this.status = {\n receive: {\n message: false,\n typing: false,\n readMessage: false,\n deleteMessage: false\n }\n };\n this.subscribeAttempt = false;\n this.scrollDown = () => {};\n /**\r\n * @description get user list from ws-chat-methods.service\r\n * @returns chatUser[]\r\n */\n this.getAllUsers = () => {\n return [];\n };\n this.sortRoomList = () => {};\n this.chatServiceDeleteRoom = roomId => {};\n this.appendReceiveMessage = FIFOProcessQueue( /*#__PURE__*/function () {\n va
|