Added webhook to send errors

This commit is contained in:
Davidson Gomes
2023-08-25 09:01:48 -03:00
parent c03919be2d
commit 9b72b3e332
7 changed files with 65 additions and 18 deletions

View File

@@ -95,6 +95,7 @@ export type EventsWebhook = {
TYPEBOT_START: boolean;
TYPEBOT_CHANGE_STATUS: boolean;
CHAMA_AI_ACTION: boolean;
ERRORS: boolean;
};
export type ApiKey = { KEY: string };
@@ -270,6 +271,7 @@ export class ConfigService {
TYPEBOT_START: process.env?.WEBHOOK_EVENTS_TYPEBOT_START === 'true',
TYPEBOT_CHANGE_STATUS: process.env?.WEBHOOK_EVENTS_TYPEBOT_CHANGE_STATUS === 'true',
CHAMA_AI_ACTION: process.env?.WEBHOOK_EVENTS_CHAMA_AI_ACTION === 'true',
ERRORS: process.env?.WEBHOOK_EVENTS_ERRORS === 'true',
},
},
CONFIG_SESSION_PHONE: {