import { Module } from "@nestjs/common";
import { ConfigModule } from "@nestjs/config";
import { EmailService } from "./email.service";
import { SendGridEmailProvider } from "./providers/sendgrid.provider";
import { LoggingModule } from "@bff/core/logging/logging.module";
import { EmailQueueService } from "./queue/email.queue";
import { EmailProcessor } from "./queue/email.processor";

@Module({
  imports: [ConfigModule, LoggingModule],
  providers: [EmailService, SendGridEmailProvider, EmailQueueService, EmailProcessor],
  exports: [EmailService, EmailQueueService],
})
export class EmailModule {}
