refactor: chatbot integration

This commit is contained in:
Davidson Gomes
2024-08-21 13:37:22 -03:00
parent 8876797172
commit edeb1efd2a
13 changed files with 1957 additions and 2627 deletions

View File

@@ -108,12 +108,12 @@ export const webhookController = new WebhookController(prismaRepository, waMonit
// chatbots
const typebotService = new TypebotService(waMonitor, configService, prismaRepository);
export const typebotController = new TypebotController(typebotService);
export const typebotController = new TypebotController(typebotService, prismaRepository, waMonitor);
const openaiService = new OpenaiService(waMonitor, configService, prismaRepository);
export const openaiController = new OpenaiController(openaiService);
export const openaiController = new OpenaiController(openaiService, prismaRepository, waMonitor);
const difyService = new DifyService(waMonitor, configService, prismaRepository);
export const difyController = new DifyController(difyService);
export const difyController = new DifyController(difyService, prismaRepository, waMonitor);
logger.info('Module - ON');