16fe912fbd
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com> Co-authored-by: Sojan Jose <sojan@pepalo.com>
12 lines
334 B
JavaScript
Executable file
12 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,
|
|
};
|