Chatwoot/app/javascript/dashboard/api/automation.js

15 lines
305 B
JavaScript
Raw Normal View History

/* 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();