mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	* Delete inbox avatar 1) New API endpoint added for deleting inbox avatar. 2) Delete avatar button in the inbox settings page. Co-authored-by: Sojan Jose <sojan@pepalo.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			480 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			480 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`);
 | 
						|
  }
 | 
						|
 | 
						|
  deleteInboxAvatar(inboxId) {
 | 
						|
    return axios.delete(`${this.url}/${inboxId}/avatar`);
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default new Inboxes();
 |