feat(chatwoot): read messages from whatsapp in chatwoot

It works only with messages read from whatsapp to chatwoot.
This commit is contained in:
jaison-x
2024-01-15 20:20:02 -03:00
parent 29a48f7914
commit c75dfcd499
3 changed files with 71 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ class ChatwootMessage {
messageId?: number;
inboxId?: number;
conversationId?: number;
contactInbox?: { sourceId: string };
}
export class MessageRaw {
@@ -51,6 +52,7 @@ const messageSchema = new Schema<MessageRaw>({
messageId: { type: Number },
inboxId: { type: Number },
conversationId: { type: Number },
contactInbox: { type: Object },
},
});