feat: chatwoot integration completed

This commit is contained in:
Davidson Gomes
2023-07-13 00:27:18 -03:00
parent 3eda2a1f2a
commit 0fc3b47c88
9 changed files with 126 additions and 22 deletions

View File

@@ -8,6 +8,7 @@ export class ChatwootRaw {
token?: string;
url?: string;
name_inbox?: string;
sign_msg?: boolean;
}
const chatwootSchema = new Schema<ChatwootRaw>({
@@ -17,6 +18,7 @@ const chatwootSchema = new Schema<ChatwootRaw>({
token: { type: String, required: true },
url: { type: String, required: true },
name_inbox: { type: String, required: true },
sign_msg: { type: Boolean, required: true },
});
export const ChatwootModel = dbserver?.model(