import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LoggingModule } from 'src/database/logging/logging.module';
import { MailModule } from 'src/mail/mail.module';
import { Team } from 'src/teams/entities/team.entity';
import { TeamsModule } from 'src/teams/teams.module';
import { CashboxExportSubscription } from './entities/cashbox-export-subscription.entity';
import { CashboxExportController } from './cashbox-export.controller';
import { CashboxExportService } from './cashbox-export.service';
import { CashboxExportSubscriptionService } from './cashbox-export-subscription.service';
import { CashboxExportScheduler } from './cashbox-export.scheduler';

@Module({
  controllers: [CashboxExportController],
  providers: [CashboxExportService, CashboxExportSubscriptionService, CashboxExportScheduler],
  imports: [
    TypeOrmModule.forFeature([Team, CashboxExportSubscription]),
    TeamsModule,
    MailModule,
    LoggingModule,
  ],
})
export class CashboxExportModule {}
