mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com> Co-authored-by: Sojan Jose <sojan@pepalo.com>
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,
|
|
};
|