feat: Added Typebot integration

This commit is contained in:
Davidson Gomes
2023-08-07 18:54:12 -03:00
parent 7c5d94c19e
commit b502ebd23a
12 changed files with 98 additions and 26 deletions

View File

@@ -66,6 +66,10 @@ export type Rabbitmq = {
URI: string;
};
export type Websocket = {
ENABLED: boolean;
};
export type EventsWebhook = {
APPLICATION_STARTUP: boolean;
QRCODE_UPDATED: boolean;
@@ -122,6 +126,7 @@ export interface Env {
DATABASE: Database;
REDIS: Redis;
RABBITMQ: Rabbitmq;
WEBSOCKET: Websocket;
LOG: Log;
DEL_INSTANCE: DelInstance;
WEBHOOK: Webhook;
@@ -211,6 +216,9 @@ export class ConfigService {
ENABLED: process.env?.RABBITMQ_ENABLED === 'true',
URI: process.env.RABBITMQ_URI,
},
WEBSOCKET: {
ENABLED: process.env?.WEBSOCKET_ENABLED === 'true',
},
LOG: {
LEVEL: process.env?.LOG_LEVEL.split(',') as LogLevel[],
COLOR: process.env?.LOG_COLOR === 'true',