import { Module } from '@nestjs/common';
import { ScheduleModule } from '@nestjs/schedule';
import { InfrastructureModule } from '../infrastructure/infrastructure.module';
import { OrderService } from './services/order.service';
import { TransferService } from './services/transfer.service';
import { OutboxScheduler } from './schedulers/outbox.scheduler';

@Module({
  imports: [ScheduleModule.forRoot(), InfrastructureModule],
  providers: [OrderService, TransferService, OutboxScheduler],
  exports: [OrderService, TransferService],
})
export class ApplicationModule {}
