import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ScrapConfig } from './entities/scrap-config.entity';
import { ScrapItem } from './entities/scrap-item.entity';
import { ScrapConfigsService } from './services/scrap-config.service';
import { ScrapConfigsController } from './controllers/scrap-config.controller';
import { TasksService } from './services/tasks.service';
import { ScrapItemsService } from './services/scrap-item-config.service';
import { MailsModule } from '../mails/mails.module';
import { BidsModule } from '../bids/bids.module';
import { ClientScrapConfigsController } from './controllers/client/scrap-configs.controller';
import { ClientScrapItemsController } from './controllers/client/scrap-items.controller';

@Module({
  imports: [
    TypeOrmModule.forFeature([ScrapConfig, ScrapItem]),
    MailsModule,
    BidsModule,
  ],
  providers: [ScrapConfigsService, TasksService, ScrapItemsService],
  exports: [ScrapConfigsService, TasksService, ScrapItemsService],
  controllers: [
    ScrapConfigsController,
    ClientScrapConfigsController,
    ClientScrapItemsController,
  ],
})
export class ScrapsModule {}
