import { Module } from '@nestjs/common';
import { ScheduleModule } from '@nestjs/schedule';
import { PlantingApplicationService } from './services/planting-application.service';
import { PoolInjectionService } from './services/pool-injection.service';
import { ContractSigningService } from './services/contract-signing.service';
import { ContractSigningTimeoutJob } from './jobs/contract-signing-timeout.job';
import { ContractSigningRecoveryJob } from './jobs/contract-signing-recovery.job';
import { ContractSignedRecoveryJob } from './jobs/contract-signed-recovery.job';
import { DomainModule } from '../domain/domain.module';

@Module({
  imports: [DomainModule, ScheduleModule.forRoot()],
  providers: [
    PlantingApplicationService,
    PoolInjectionService,
    ContractSigningService,
    ContractSigningTimeoutJob,
    ContractSigningRecoveryJob,
    ContractSignedRecoveryJob,
  ],
  exports: [PlantingApplicationService, PoolInjectionService, ContractSigningService],
})
export class ApplicationModule {}
