mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			445 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			445 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| 
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class IntegrationsAPI extends ApiClient {
 | |
|   constructor() {
 | |
|     super('integrations/apps', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   connectSlack(code) {
 | |
|     return axios.post(`${this.baseUrl()}/integrations/slack`, {
 | |
|       code: code,
 | |
|     });
 | |
|   }
 | |
| 
 | |
|   delete(integrationId) {
 | |
|     return axios.delete(`${this.baseUrl()}/integrations/${integrationId}`);
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new IntegrationsAPI();
 | 
