mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	 5ddc46c474
			
		
	
	5ddc46c474
	
	
	
		
			
			* Refactor: Inbox store, remove inboxes from sidebar * Add a new page for inbox settings * Show inboxes on sidebar * Add inbox_members API * Disable similar-code check * Fix codeclimate scss issues * Add widget_color update API and actions * Add specs for inbox store * Fix Facebook auth flow * Fix agent loading, inbox name
		
			
				
	
	
		
			18 lines
		
	
	
		
			318 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			318 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class InboxMembers extends ApiClient {
 | |
|   constructor() {
 | |
|     super('inbox_members');
 | |
|   }
 | |
| 
 | |
|   create({ inboxId, agentList }) {
 | |
|     return axios.post(this.url, {
 | |
|       inbox_id: inboxId,
 | |
|       user_ids: agentList,
 | |
|     });
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new InboxMembers();
 |