mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			344 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			344 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class InboxMembers extends ApiClient {
 | |
|   constructor() {
 | |
|     super('inbox_members', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   update({ inboxId, agentList }) {
 | |
|     return axios.patch(this.url, {
 | |
|       inbox_id: inboxId,
 | |
|       user_ids: agentList,
 | |
|     });
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new InboxMembers();
 | 
