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