mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 9e2f991484
			
		
	
	9e2f991484
	
	
	
		
			
			* feat: init auditlogs ui * chore: add api * fix: action * chore: add action,username,time * feat: add pagination support * chore: format time * chore: refactor * chore: refactor auditlogs api response * chore: update icon * chore: rubocop fixes * Fixes the way meta is handled in store * Fixes meta not appearing issue --------- Co-authored-by: Sojan Jose <sojan@pepalo.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			313 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			313 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /* global axios */
 | |
| 
 | |
| import ApiClient from './ApiClient';
 | |
| 
 | |
| class AuditLogs extends ApiClient {
 | |
|   constructor() {
 | |
|     super('audit_logs', { accountScoped: true });
 | |
|   }
 | |
| 
 | |
|   get({ page }) {
 | |
|     const url = page ? `${this.url}?page=${page}` : this.url;
 | |
|     return axios.get(url);
 | |
|   }
 | |
| }
 | |
| 
 | |
| export default new AuditLogs();
 |