-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Expand file tree
/
Copy pathintegrations.module.ts
More file actions
48 lines (46 loc) · 1.72 KB
/
Copy pathintegrations.module.ts
File metadata and controls
48 lines (46 loc) · 1.72 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
40
41
42
43
44
45
46
47
48
import { forwardRef, Module } from '@nestjs/common';
import {
analyticsService,
CalculateLimitNovuIntegration,
ChannelFactory,
CompileTemplate,
CreateOrUpdateSubscriberUseCase,
GetNovuProviderCredentials,
MsTeamsTokenService,
UpdateSubscriber,
UpdateSubscriberChannel,
} from '@novu/application-generic';
import { CommunityOrganizationRepository, CommunityUserRepository } from '@novu/dal';
import { TelegramMobileLinkTokenService } from '../agents/channels/telegram-linking/telegram-mobile-link-token.service';
import { AgentsModule } from '../agents/agents.module';
import { AuthModule } from '../auth/auth.module';
import { ChannelConnectionsModule } from '../channel-connections/channel-connections.module';
import { ChannelEndpointsModule } from '../channel-endpoints/channel-endpoints.module';
import { SharedModule } from '../shared/shared.module';
import { IntegrationsController } from './integrations.controller';
import { IntegrationsPublicController } from './integrations-public.controller';
import { USE_CASES } from './usecases';
const PROVIDERS = [
ChannelFactory,
CompileTemplate,
GetNovuProviderCredentials,
CalculateLimitNovuIntegration,
MsTeamsTokenService,
];
@Module({
imports: [SharedModule, forwardRef(() => AuthModule), ChannelConnectionsModule, ChannelEndpointsModule, forwardRef(() => AgentsModule)],
controllers: [IntegrationsController, IntegrationsPublicController],
providers: [
...USE_CASES,
CommunityOrganizationRepository,
CommunityUserRepository,
TelegramMobileLinkTokenService,
...PROVIDERS,
analyticsService,
CreateOrUpdateSubscriberUseCase,
UpdateSubscriber,
UpdateSubscriberChannel,
],
exports: [...USE_CASES],
})
export class IntegrationModule {}