feat: automation chatwoot

This commit is contained in:
Davidson Gomes 2023-07-13 15:45:14 -03:00
parent 8622e1e4ff
commit fa60b68425

View File

@ -1544,6 +1544,14 @@ export class WAStartupService {
this.logger.verbose('Sending data to webhook in event SEND_MESSAGE');
await this.sendDataWebhook(Events.SEND_MESSAGE, messageRaw);
// if (this.localChatwoot.enabled) {
// this.chatwootService.eventWhatsapp(
// Events.SEND_MESSAGE,
// { instanceName: this.instance.name },
// messageRaw,
// );
// }
this.logger.verbose('Inserting message in database');
await this.repository.message.insert(
[messageRaw],