feat(evoai): add EvoAI integration with models, services, and routes

- Introduced Evoai and EvoaiSetting models in both MySQL and PostgreSQL schemas.
- Implemented EvoaiController and EvoaiService for managing EvoAI bots.
- Created EvoaiRouter for handling API requests related to EvoAI.
- Added DTOs and validation schemas for EvoAI integration.
- Updated server module and chatbot controller to include EvoAI functionality.
- Configured environment settings for EvoAI integration.
This commit is contained in:
Guilherme Gomes
2025-05-15 11:54:11 -03:00
parent a1cc504777
commit 71124755b0
13 changed files with 1742 additions and 0 deletions

View File

@@ -254,6 +254,7 @@ export type Chatwoot = {
export type Openai = { ENABLED: boolean; API_KEY_GLOBAL?: string };
export type Dify = { ENABLED: boolean };
export type N8n = { ENABLED: boolean };
export type Evoai = { ENABLED: boolean };
export type S3 = {
ACCESS_KEY: string;
@@ -294,6 +295,7 @@ export interface Env {
OPENAI: Openai;
DIFY: Dify;
N8N: N8n;
EVOAI: Evoai;
CACHE: CacheConf;
S3?: S3;
AUTHENTICATION: Auth;
@@ -592,6 +594,9 @@ export class ConfigService {
N8N: {
ENABLED: process.env?.N8N_ENABLED === 'true',
},
EVOAI: {
ENABLED: process.env?.EVOAI_ENABLED === 'true',
},
CACHE: {
REDIS: {
ENABLED: process.env?.CACHE_REDIS_ENABLED === 'true',