import { Global, Module } from '@nestjs/common';
import { NotificationsService } from './notifications.service';
import { NotificationsController } from './notifications.controller';
import { NotificationPreferencesService } from './notification-preferences.service';
import { NotificationPreferencesController } from './notification-preferences.controller';
import {
  InAppProvider,
  SmtpEmailProvider,
} from './providers/notification-provider.interface';

@Global()
@Module({
  controllers: [NotificationsController, NotificationPreferencesController],
  providers: [
    NotificationsService,
    NotificationPreferencesService,
    SmtpEmailProvider,
    InAppProvider,
  ],
  exports: [NotificationsService, NotificationPreferencesService],
})
export class NotificationsModule {}
