Files
chatwoot/app/javascript/dashboard/api/attributes.js
T

17 lines
361 B
JavaScript

import CacheEnabledApiClient from './CacheEnabledApiClient';
class AttributeAPI extends CacheEnabledApiClient {
constructor() {
super('custom_attribute_definitions', {
accountScoped: true,
cacheModel: 'custom_attribute_definition',
});
}
getAttributesByModel() {
return super.get(true);
}
}
export default new AttributeAPI();