mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +00:00
feat: Add CSAT reports (#2608)
This commit is contained in:
18
app/javascript/dashboard/api/csatReports.js
Normal file
18
app/javascript/dashboard/api/csatReports.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/* global axios */
|
||||
import ApiClient from './ApiClient';
|
||||
|
||||
class CSATReportsAPI extends ApiClient {
|
||||
constructor() {
|
||||
super('csat_survey_responses', { accountScoped: true });
|
||||
}
|
||||
|
||||
get({ page } = {}) {
|
||||
return axios.get(this.url, { params: { page } });
|
||||
}
|
||||
|
||||
getMetrics() {
|
||||
return axios.get(`${this.url}/metrics`);
|
||||
}
|
||||
}
|
||||
|
||||
export default new CSATReportsAPI();
|
||||
Reference in New Issue
Block a user