feat: Conversation transcript in widget (#2549)

This commit is contained in:
Muhsin Keloth
2021-07-13 11:31:21 +05:30
committed by GitHub
parent fc4ef1595b
commit 15085cfb98
13 changed files with 200 additions and 46 deletions

View File

@@ -42,6 +42,12 @@ const setUserLastSeenAt = async ({ lastSeen }) => {
{ contact_last_seen_at: lastSeen }
);
};
const sendEmailTranscript = async ({ email }) => {
return API.post(
`/api/v1/widget/conversations/transcript${window.location.search}`,
{ email }
);
};
export {
createConversationAPI,
@@ -51,4 +57,5 @@ export {
sendAttachmentAPI,
toggleTyping,
setUserLastSeenAt,
sendEmailTranscript,
};