mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-13 21:01:16 +08:00
Co-authored-by: Nithin David Thomas <[email protected]> Co-authored-by: Sojan Jose <[email protected]>
13 lines
334 B
JavaScript
Executable File
13 lines
334 B
JavaScript
Executable File
import authEndPoint from 'widget/api/endPoints';
|
|
import { API } from 'widget/helpers/axios';
|
|
|
|
const createContact = async (inboxId, accountId) => {
|
|
const urlData = authEndPoint.createContact(inboxId, accountId);
|
|
const result = await API.post(urlData.url, urlData.params);
|
|
return result;
|
|
};
|
|
|
|
export default {
|
|
createContact,
|
|
};
|