mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 07:15:45 +00:00
feat: setup attachment to the freight chat
This commit is contained in:
@@ -3,9 +3,11 @@ import { TypeOrmModule } from "@nestjs/typeorm";
|
||||
|
||||
import { BackofficeModule } from "../backoffice/backoffice.module";
|
||||
import { CompaniesModule } from "../companies/companies.module";
|
||||
import { FilesModule } from "../files/files.module";
|
||||
import { NotificationInboxModule } from "../notification-inbox/notification-inbox.module";
|
||||
import { SupportConversation } from "./entities/support-conversation.entity";
|
||||
import { SupportMessage } from "./entities/support-message.entity";
|
||||
import { SupportAttachmentController } from "./support-attachment.controller";
|
||||
import { SupportChatAgentController } from "./support-chat-agent.controller";
|
||||
import { SupportChatController } from "./support-chat.controller";
|
||||
import { SupportChatGateway } from "./support-chat.gateway";
|
||||
@@ -23,13 +25,22 @@ import { SupportMessageRepository } from "./support-message.repository";
|
||||
BackofficeModule,
|
||||
// WsAuthService — reused handshake authentication for the gateway.
|
||||
NotificationInboxModule,
|
||||
// FilesService — chat attachments are stored as polymorphic file records.
|
||||
FilesModule,
|
||||
],
|
||||
controllers: [
|
||||
SupportChatController,
|
||||
SupportChatAgentController,
|
||||
SupportAttachmentController,
|
||||
],
|
||||
controllers: [SupportChatController, SupportChatAgentController],
|
||||
providers: [
|
||||
SupportConversationRepository,
|
||||
SupportMessageRepository,
|
||||
SupportChatGateway,
|
||||
SupportChatService,
|
||||
],
|
||||
// FilesController's ownership check for `support_message` files defers to this
|
||||
// service — see SupportAttachmentAccess.
|
||||
exports: [SupportChatService],
|
||||
})
|
||||
export class SupportChatModule {}
|
||||
|
||||
Reference in New Issue
Block a user