Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
14
research/chatwoot/app/javascript/dashboard/api/labels.js
Normal file
14
research/chatwoot/app/javascript/dashboard/api/labels.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import CacheEnabledApiClient from './CacheEnabledApiClient';
|
||||
|
||||
class LabelsAPI extends CacheEnabledApiClient {
|
||||
constructor() {
|
||||
super('labels', { accountScoped: true });
|
||||
}
|
||||
|
||||
// eslint-disable-next-line class-methods-use-this
|
||||
get cacheModelName() {
|
||||
return 'label';
|
||||
}
|
||||
}
|
||||
|
||||
export default new LabelsAPI();
|
||||
Reference in New Issue
Block a user