import { Module } from '@nestjs/common';
import { AlertService } from './alert.service';
import { AlertGathererService } from './services/alert-gatherer.service';
import { AlertReviewerService } from './services/alert-reviewer.service';
import { AlertPublisherService } from './services/alert-publisher.service';
import { ScheduleModule } from '@nestjs/schedule';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Alert } from './entity/alert.entity';
import { HttpModule } from '@nestjs/axios';
import { AlertController } from './alert.controller';
import { NewsletterModule } from 'modules/newsletter/news-letter.module';
import { FileUploadModule } from 'modules/file-upload/file-upload.module';

@Module({
  imports: [TypeOrmModule.forFeature([Alert]), ScheduleModule.forRoot(), HttpModule, NewsletterModule, FileUploadModule],
  controllers: [AlertController],
  providers: [AlertService, AlertGathererService, AlertReviewerService, AlertPublisherService],
  exports: [AlertService],
})
export class AlertModule {}
