human handoffs
This commit is contained in:
parent
79188e0f59
commit
36a55930f9
35 changed files with 4039 additions and 139 deletions
|
|
@ -101,6 +101,10 @@ function emailQuery(parameters = {}) {
|
|||
|
||||
export const listEmails = (parameters, token) =>
|
||||
request(`/emails${emailQuery(parameters)}`, { token });
|
||||
export const listThreads = (parameters, token) =>
|
||||
request(`/threads${emailQuery(parameters)}`, { token });
|
||||
export const getThread = (threadId, token) =>
|
||||
request(`/threads/${encodeURIComponent(threadId)}`, { token });
|
||||
export const getEmail = (emailId, token) =>
|
||||
request(`/emails/${encodeURIComponent(emailId)}`, { token });
|
||||
export const setEmailRead = (emailId, isRead, token) =>
|
||||
|
|
@ -131,6 +135,21 @@ export const permanentlyDeleteEmail = (emailId, token) =>
|
|||
token,
|
||||
});
|
||||
|
||||
export const listHandoffRules = (token) =>
|
||||
request("/agent/handoff", { token });
|
||||
export const createHandoffRule = (payload, token) =>
|
||||
request("/agent/handoff", { method: "POST", payload, token });
|
||||
export const updateHandoffRule = (ruleId, payload, token) =>
|
||||
request(`/agent/handoff/${encodeURIComponent(ruleId)}`, { method: "PATCH", payload, token });
|
||||
export const deleteHandoffRule = (ruleId, token) =>
|
||||
request(`/agent/handoff/${encodeURIComponent(ruleId)}`, { method: "DELETE", token });
|
||||
export const testHandoffRule = (payload, token) =>
|
||||
request("/agent/handoff/test", { method: "POST", payload, token });
|
||||
export const listHandoffConversations = (token) =>
|
||||
request("/agent/handoff/conversations", { token });
|
||||
export const getHandoffConversation = (handoffId, token) =>
|
||||
request(`/agent/handoff/conversations/${encodeURIComponent(handoffId)}`, { token });
|
||||
|
||||
export const listStickyNotes = (token) =>
|
||||
request("/sticky-notes", { token });
|
||||
export const createStickyNote = (payload, token) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue