Chatwoot/app/javascript/widget/api/agent.js

8 lines
273 B
JavaScript
Raw Permalink Normal View History

import endPoints from 'widget/api/endPoints';
import { API } from 'widget/helpers/axios';
export const getAvailableAgents = async websiteToken => {
const urlData = endPoints.getAvailableAgents(websiteToken);
2022-10-14 03:43:11 +00:00
return API.get(urlData.url, { params: urlData.params });
};