import { Module } from '@nestjs/common';
import { PagerService } from './providers/pager.service';
import { PagerController } from './controllers/pager.controller';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Pager } from './entities/pager.entity';
import { JwtModule } from '@nestjs/jwt';
import { RolesModule } from '../roles/roles.module';
import { PagerListeners } from './listeners/notification.listeners';
import { AdminModule } from '../admin/admin.module';
import { NotificationsModule } from '../notifications/notifications.module';
import { PagerCrone } from './crone/pager.crone';

@Module({
  imports: [MikroOrmModule.forFeature([Pager]), JwtModule, RolesModule, AdminModule, NotificationsModule],
  controllers: [PagerController],
  providers: [PagerService, PagerListeners,PagerCrone],
})
export class PagerModule {}
