mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			296 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			296 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global axios */
 | 
						|
 | 
						|
import ApiClient from './ApiClient';
 | 
						|
 | 
						|
class Agents extends ApiClient {
 | 
						|
  constructor() {
 | 
						|
    super('agents', { accountScoped: true });
 | 
						|
  }
 | 
						|
 | 
						|
  bulkInvite({ emails }) {
 | 
						|
    return axios.post(`${this.url}/bulk_create`, {
 | 
						|
      emails,
 | 
						|
    });
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
export default new Agents();
 |