import { Module } from '@nestjs/common';
import { BullModule } from '@nestjs/bullmq';
import { IntegrationController } from './integration.controller';
import { IntegrationService } from './integration.service';
import { IntegrationSyncProcessor } from './integration-sync.processor';

@Module({
  imports: [
    BullModule.registerQueue({ name: 'integration-sync' }),
  ],
  controllers: [IntegrationController],
  providers: [IntegrationService, IntegrationSyncProcessor],
  exports: [IntegrationService],
})
export class IntegrationModule {}
