Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
17
research/chatwoot/app/javascript/dashboard/api/agents.js
Normal file
17
research/chatwoot/app/javascript/dashboard/api/agents.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/* global axios */
|
||||
|
||||
import ApiClient from './ApiClient';
|
||||
|
||||
class Agents extends ApiClient {
|
||||
constructor() {
|
||||
super('agents', { accountScoped: true });
|
||||
}
|
||||
|
||||
bulkInvite({ emails }) {
|
||||
return axios.post(`${this.url}/bulk_create`, {
|
||||
emails,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default new Agents();
|
||||
Reference in New Issue
Block a user