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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,
};