import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { NotificationsController } from './notifications.controller';
import { NotificationsService } from './notifications.service';
import { EmailAdapter, SmsAdapter, PushAdapter } from './notification.adapters';

@Module({
  imports: [HttpModule.register({ timeout: 10_000 })],
  controllers: [NotificationsController],
  providers: [NotificationsService, EmailAdapter, SmsAdapter, PushAdapter],
  exports: [NotificationsService],
})
export class NotificationsModule {}
