Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DSL/DMapper/analytics/hbs/merge-arrays.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{{#each (mergeChatCountArrays arr1 arr2 arr3)}}
{{#each (mergeChatCountArrays arr1 arr2)}}
{
"time": "{{this.time}}",
"chatCount": {{this.chatCount}}
Expand Down
40 changes: 0 additions & 40 deletions DSL/Resql/analytics/POST/chat-cif-long-waiting-time.sql

This file was deleted.

43 changes: 3 additions & 40 deletions DSL/Ruuter/analytics/POST/chats/contact-information-fulfilled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ check_outside_working_hours:
empty_outside_working_hours:
assign:
outside_working_hours_result: ${[]}
next: check_long_waiting_time
next: check_all_csas_away

outside_working_hours:
call: http.post
Expand All @@ -68,31 +68,6 @@ assign_outside_working_hours:
assign:
outside_working_hours_result: ${results.response.body}

check_long_waiting_time:
switch:
- condition: ${options.includes('long-waiting-time')}
next: long_waiting_time

empty_long_waiting_time:
assign:
long_waiting_time_result: ${[]}
next: check_all_csas_away

long_waiting_time:
call: http.post
args:
url: "[#ANALYTICS_RESQL]/chat-cif-long-waiting-time"
body:
period: ${period}
start: ${start}
end: ${end}
threshold_seconds: ${5 * 60}
result: results

assign_long_waiting_time:
assign:
long_waiting_time_result: ${results.response.body}

check_all_csas_away:
switch:
- condition: ${options.includes('all-csas-away')}
Expand Down Expand Up @@ -137,17 +112,6 @@ outside_working_hours_for_total:
end: ${end}
result: outside_working_hours_for_total_results

long_waiting_time_for_total:
call: http.post
args:
url: "[#ANALYTICS_RESQL]/chat-cif-long-waiting-time"
body:
period: ${period}
start: ${start}
end: ${end}
threshold_seconds: ${5 * 60}
result: long_waiting_time_for_total_results

all_csas_away_for_total:
call: http.post
args:
Expand All @@ -166,13 +130,12 @@ get_total:
type: 'json'
body:
arr1: ${outside_working_hours_for_total_results.response.body}
arr2: ${long_waiting_time_for_total_results.response.body}
arr3: ${all_csas_away_for_total_results.response.body}
arr2: ${all_csas_away_for_total_results.response.body}
result: merged_total_result

assign_total:
assign:
total_result: ${merged_total_result.response.body}

respond:
return: ${[outside_working_hours_result, long_waiting_time_result, all_csas_away_result, total_result]}
return: ${[outside_working_hours_result, all_csas_away_result, total_result]}
1 change: 0 additions & 1 deletion GUI/src/i18n/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
"onlyBYK": "Only Bürokratt involved",
"csaInvolved": "CSA involved",
"outsideWorkingHours": "Outside working hours",
"longWaitingTime": "Long waiting time",
"allCsvAway": "All CSAs away with red status",
"medianWaitingTime": "Median (min)",
"averageWaitingTime": "Arithmetic (min)"
Expand Down
1 change: 0 additions & 1 deletion GUI/src/i18n/et/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
"onlyBYK": "Bürokrati vastatud",
"csaInvolved": "Nõustaja kaasatud",
"outsideWorkingHours": "Tööpäeva väline aeg",
"longWaitingTime": "Pikk ooteaeg",
"allCsvAway": "Kõik nõustajad ära / hõivatud",
"medianWaitingTime": "Mediaan (min)",
"averageWaitingTime": "Aritmeetiline keskmine (min)"
Expand Down
1 change: 0 additions & 1 deletion GUI/src/pages/ChatsPage/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const chatOptions: Option[] = [
labelKey: 'chats.cip',
subOptions: [
{ id: 'outside-working-hours', labelKey: 'chats.outsideWorkingHours', color: '#fdbf47' },
{ id: 'long-waiting-time', labelKey: 'chats.longWaitingTime', color: '#ed7d32' },
{ id: 'all-csas-away', labelKey: 'chats.allCsvAway', color: '#8ab4d5' },
{ id: 'total', labelKey: 'chats.totalCount', color: '#008000' },
],
Expand Down