import { Module } from "@nestjs/common";
import { ConfigModule } from "@nestjs/config";
import { AuthModule } from "../auth/auth.module";
import { ApiKeyGuard } from "../common/guards/api-key.guard";
import { GatekeeperModule } from "../gatekeeper/gatekeeper.module";
import { QueueNotificationsController } from "./queue-notifications.controller";
import { QueueNotificationsService } from "./queue-notifications.service";
import { WoodpeckerWebhookController } from "./woodpecker-webhook.controller";

@Module({
  imports: [ConfigModule, AuthModule, GatekeeperModule],
  controllers: [QueueNotificationsController, WoodpeckerWebhookController],
  providers: [QueueNotificationsService, ApiKeyGuard],
  exports: [QueueNotificationsService],
})
export class QueueNotificationsModule {}
