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