mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			370 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			370 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| 
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class AccountActions extends ApiClient {
 | |
|   constructor() {
 | |
|     super('actions', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   merge(parentId, childId) {
 | |
|     return axios.post(`${this.url}/contact_merge`, {
 | |
|       base_contact_id: parentId,
 | |
|       mergee_contact_id: childId,
 | |
|     });
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new AccountActions();
 | 
