This commit is contained in:
Pranav
2024-02-13 17:32:31 -08:00
parent db30a05b19
commit 2a34ceb66b
6 changed files with 180 additions and 95 deletions
@@ -6,7 +6,7 @@ class SummaryReportsAPI extends ApiClient {
super('summary_reports', { accountScoped: true, apiVersion: 'v2' });
}
getTeamReports({ since, until, businessHours }) {
getTeamReports({ since, until, businessHours } = {}) {
return axios.get(`${this.url}/team`, {
params: {
since,
@@ -16,7 +16,7 @@ class SummaryReportsAPI extends ApiClient {
});
}
getAgentReports({ since, until, businessHours }) {
getAgentReports({ since, until, businessHours } = {}) {
return axios.get(`${this.url}/agents`, {
params: {
since,