import { Module } from '@nestjs/common';
import { IntegrationSyncProcessor } from './integration-sync.processor';
import { IntegrationSyncQueue } from './integration-sync.queue';
import { CredentialsModule } from '../credentials/credentials.module';

/**
 * Jobs Module for background sync processing
 *
 * Note: SyncService is injected via forwardRef in the processor
 * to avoid circular dependency issues.
 */
@Module({
  imports: [CredentialsModule],
  providers: [IntegrationSyncProcessor, IntegrationSyncQueue],
  exports: [IntegrationSyncProcessor, IntegrationSyncQueue],
})
export class JobsModule {}
