forked from Yara724/api
20 lines
817 B
TypeScript
20 lines
817 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { MongooseModule } from "@nestjs/mongoose";
|
|
import { SmsTextDbService } from "./entities/db-service/sms-text.db.service";
|
|
import { SmsText, SmsTextSchema } from "./entities/schema/sms-text.schema";
|
|
import { SmsGatewayModule } from "./provider/sms-gateway.module";
|
|
import { OtpGeneratorService } from "./otp-generator.service";
|
|
import { SmsOrchestrationService } from "./sms-orchestration.service";
|
|
import { HttpModule } from "@nestjs/axios";
|
|
|
|
@Module({
|
|
imports: [
|
|
HttpModule,
|
|
SmsGatewayModule,
|
|
MongooseModule.forFeature([{ name: SmsText.name, schema: SmsTextSchema }]),
|
|
],
|
|
providers: [SmsTextDbService, SmsOrchestrationService, OtpGeneratorService],
|
|
exports: [SmsOrchestrationService, OtpGeneratorService],
|
|
})
|
|
export class SmsOrchestrationModule {}
|