25 lines
987 B
TypeScript
25 lines
987 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { TenantIntegrationCredential } from './entities/tenant-integration-credential.entity';
|
|
import { TenantWhatsAppNumber } from './entities/tenant-whatsapp-number.entity';
|
|
import { Tenant } from '../auth/entities/tenant.entity';
|
|
import { TenantIntegrationsService } from './services/tenant-integrations.service';
|
|
import { IntegrationsController } from './controllers/integrations.controller';
|
|
import { InternalIntegrationsController } from './controllers/internal-integrations.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
TenantIntegrationCredential,
|
|
TenantWhatsAppNumber,
|
|
Tenant,
|
|
]),
|
|
ConfigModule,
|
|
],
|
|
controllers: [IntegrationsController, InternalIntegrationsController],
|
|
providers: [TenantIntegrationsService],
|
|
exports: [TenantIntegrationsService],
|
|
})
|
|
export class IntegrationsModule {}
|