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