feat: chatwoot integration completed

This commit is contained in:
Davidson Gomes
2023-07-12 20:28:51 -03:00
parent 514fb56209
commit 052303cc93
5 changed files with 507 additions and 25 deletions

View File

@@ -3,6 +3,7 @@ import { dbserver } from '../../db/db.connect';
export class ChatwootRaw {
_id?: string;
enabled?: boolean;
account_id?: string;
token?: string;
url?: string;
@@ -11,6 +12,7 @@ export class ChatwootRaw {
const chatwootSchema = new Schema<ChatwootRaw>({
_id: { type: String, _id: true },
enabled: { type: Boolean, required: true },
account_id: { type: String, required: true },
token: { type: String, required: true },
url: { type: String, required: true },