import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { InfrastructureModule } from '../infrastructure/infrastructure.module';
import { StoreBackupShareHandler } from './commands/store-backup-share/store-backup-share.handler';
import { RevokeShareHandler } from './commands/revoke-share/revoke-share.handler';
import { GetBackupShareHandler } from './queries/get-backup-share/get-backup-share.handler';
import { BackupShareApplicationService } from './services/backup-share-application.service';

@Module({
  imports: [ConfigModule, InfrastructureModule],
  providers: [
    StoreBackupShareHandler,
    RevokeShareHandler,
    GetBackupShareHandler,
    BackupShareApplicationService,
  ],
  exports: [BackupShareApplicationService],
})
export class ApplicationModule {}
