mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			355 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			355 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class MacrosAPI extends ApiClient {
 | |
|   constructor() {
 | |
|     super('macros', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   executeMacro({ macroId, conversationIds }) {
 | |
|     return axios.post(`${this.url}/${macroId}/execute`, {
 | |
|       conversation_ids: conversationIds,
 | |
|     });
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new MacrosAPI();
 | 
