mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 02:57:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			485 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			485 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| import ApiClient from '../ApiClient';
 | |
| 
 | |
| class CaptainResponses extends ApiClient {
 | |
|   constructor() {
 | |
|     super('captain/assistant_responses', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   get({ page = 1, search, assistantId, documentId, status } = {}) {
 | |
|     return axios.get(this.url, {
 | |
|       params: {
 | |
|         page,
 | |
|         search,
 | |
|         assistant_id: assistantId,
 | |
|         document_id: documentId,
 | |
|         status,
 | |
|       },
 | |
|     });
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new CaptainResponses();
 | 
