mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			376 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			376 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global axios */
 | 
						|
import ApiClient from './ApiClient';
 | 
						|
 | 
						|
class Inboxes extends ApiClient {
 | 
						|
  constructor() {
 | 
						|
    super('inboxes', { accountScoped: true });
 | 
						|
  }
 | 
						|
 | 
						|
  getCampaigns(inboxId) {
 | 
						|
    return axios.get(`${this.url}/${inboxId}/campaigns`);
 | 
						|
  }
 | 
						|
 | 
						|
  deleteInboxAvatar(inboxId) {
 | 
						|
    return axios.delete(`${this.url}/${inboxId}/avatar`);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default new Inboxes();
 |