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"; import { ConfigModule, ConfigService } from "@nestjs/config"; import { createHttpModuleOptions } from "src/core/config/http-proxy.factory"; @Module({ imports: [ HttpModule.registerAsync({ imports: [ConfigModule], inject: [ConfigService], useFactory: createHttpModuleOptions, }), SmsGatewayModule, MongooseModule.forFeature([{ name: SmsText.name, schema: SmsTextSchema }]), ], providers: [SmsTextDbService, SmsOrchestrationService, OtpGeneratorService], exports: [SmsOrchestrationService, OtpGeneratorService], }) export class SmsOrchestrationModule {}