import { Module, forwardRef } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { WhatsappWebController } from './services/whatsapp-web.controller';
import { WhatsappWebService } from './services/whatsapp-web.service';
import { WhatsappWebWebhookService } from './services/whatsapp-web-webhook.service';
import { WhatsappWebMessagingService } from './whatsapp-web-messaging.service';
import { ChatHistoryModule } from '../chat-history/chat-history.module';

@Module({
  imports: [HttpModule, forwardRef(() => ChatHistoryModule)],
  controllers: [WhatsappWebController],
  providers: [
    WhatsappWebService,
    WhatsappWebWebhookService,
    WhatsappWebMessagingService,
  ],
  exports: [WhatsappWebService, WhatsappWebMessagingService],
})
export class WhatsappWebModule {}
