mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			288 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			288 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* 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();
 | 
