-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Expand file tree
/
Copy pathagents.module.ts
More file actions
39 lines (37 loc) · 1.41 KB
/
agents.module.ts
File metadata and controls
39 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Module } from '@nestjs/common';
import {
ChannelConnectionRepository,
ChannelEndpointRepository,
ConversationActivityRepository,
ConversationRepository,
} from '@novu/dal';
import { AuthModule } from '../auth/auth.module';
import { SharedModule } from '../shared/shared.module';
import { AgentsController } from './agents.controller';
import { AgentsWebhookController } from './agents-webhook.controller';
import { AgentConversationService } from './services/agent-conversation.service';
import { AgentCredentialService } from './services/agent-credential.service';
import { AgentInboundHandler } from './services/agent-inbound-handler.service';
import { AgentSubscriberResolver } from './services/agent-subscriber-resolver.service';
import { BridgeExecutorService } from './services/bridge-executor.service';
import { ChatSdkService } from './services/chat-sdk.service';
import { USE_CASES } from './usecases';
@Module({
imports: [SharedModule, AuthModule],
controllers: [AgentsController, AgentsWebhookController],
providers: [
...USE_CASES,
ChannelConnectionRepository,
ChannelEndpointRepository,
ConversationRepository,
ConversationActivityRepository,
AgentCredentialService,
AgentSubscriberResolver,
AgentConversationService,
AgentInboundHandler,
BridgeExecutorService,
ChatSdkService,
],
exports: [...USE_CASES, ChatSdkService],
})
export class AgentsModule {}