mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 13:07:55 +00:00 
			
		
		
		
	* Cleanup agent store and actions * Move set/create/update/destroy to helpers * Update mutation specs * Add specs for API helper * Fix edit/delete action visibility * Add actions specs * Remove unused API helpers * Remove duplicates * Remove duplicates * Fix duplicate
		
			
				
	
	
		
			15 lines
		
	
	
		
			379 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			379 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* global axios */
 | 
						|
 | 
						|
import endPoints from './endPoints';
 | 
						|
 | 
						|
export default {
 | 
						|
  getAccountReports(metric, from, to) {
 | 
						|
    const { url } = endPoints('reports').account(metric, from, to);
 | 
						|
    return axios.get(url);
 | 
						|
  },
 | 
						|
  getAccountSummary(accountId, from, to) {
 | 
						|
    const urlData = endPoints('reports').accountSummary(accountId, from, to);
 | 
						|
    return axios.get(urlData.url);
 | 
						|
  },
 | 
						|
};
 |