Chatwoot/app/javascript/dashboard/api/csatReports.js
2021-07-14 10:20:06 +05:30

18 lines
370 B
JavaScript

/* 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();