mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			386 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			386 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class Inboxes extends ApiClient {
 | |
|   constructor() {
 | |
|     super('inboxes', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   getAssignableAgents(inboxId) {
 | |
|     return axios.get(`${this.url}/${inboxId}/assignable_agents`);
 | |
|   }
 | |
| 
 | |
|   getCampaigns(inboxId) {
 | |
|     return axios.get(`${this.url}/${inboxId}/campaigns`);
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new Inboxes();
 | 
