feat(widget): Add captain handoff request

This commit is contained in:
aakashb95
2026-05-01 23:01:05 +05:30
parent 68cd725a62
commit e89d8567fd
7 changed files with 109 additions and 2 deletions
@@ -62,6 +62,12 @@ const toggleStatus = async () => {
);
};
const requestHandoff = async () => {
return API.post(
`/api/v1/widget/conversations/request_handoff${window.location.search}`
);
};
const setCustomAttributes = async customAttributes => {
return API.post(
`/api/v1/widget/conversations/set_custom_attributes${window.location.search}`,
@@ -90,6 +96,7 @@ export {
setUserLastSeenAt,
sendEmailTranscript,
toggleStatus,
requestHandoff,
setCustomAttributes,
deleteCustomAttribute,
};