Browse Source

Added wait time and position announcements enable/disable.

master
Ruel Tmeizeh - RuhNet 4 months ago
parent
commit
e288a09b25
14 changed files with 79 additions and 5 deletions
  1. +26
    -2
      src/apps/callcenter/app.js
  2. +2
    -0
      src/apps/callcenter/i18n/de-DE.json
  3. +2
    -0
      src/apps/callcenter/i18n/dk-DK.json
  4. +2
    -0
      src/apps/callcenter/i18n/en-NZ.json
  5. +2
    -0
      src/apps/callcenter/i18n/en-US.json
  6. +2
    -0
      src/apps/callcenter/i18n/es-ES.json
  7. +2
    -0
      src/apps/callcenter/i18n/fr-FR.json
  8. +2
    -0
      src/apps/callcenter/i18n/it-IT.json
  9. +3
    -1
      src/apps/callcenter/i18n/nl-NL.json
  10. +2
    -0
      src/apps/callcenter/i18n/pt-PT.json
  11. +2
    -0
      src/apps/callcenter/i18n/ro-RO.json
  12. +2
    -0
      src/apps/callcenter/i18n/ru-RU.json
  13. +3
    -1
      src/apps/callcenter/i18n/zh-CN.json
  14. +27
    -1
      src/apps/callcenter/views/settings_queue_form.html

+ 26
- 2
src/apps/callcenter/app.js View File

@ -1214,15 +1214,39 @@ var app = {
$parent.find(selector).each(function(i, el){
var $el = $(el);
var name = $el.attr('name');
var nameArr = name.split("."); //for subobjects, like 'announcements'
var subObject = {};
if (nameArr.length > 1) {
subKey = nameArr[0];
name = nameArr[1];
}
if(el.tagName === 'INPUT') {
if($el.attr('type') === 'checkbox') {
result[name] = !!$el.is(':checked');
checkboxValue = !!$el.is(':checked');
if (nameArr.length > 1) {
if (result[subKey]) {
subObject = result[subKey];
}
subObject[name] = checkboxValue;
result[subKey] = subObject;
} else {
result[name] = checkboxValue;
}
return;
}
if(!!$el.val()) {
result[name] = $el.val();
var itemValue = $el.val();
if (nameArr.length > 1) {
if (result[subKey]) {
subObject = result[subKey];
}
subObject[name] = itemValue;
result[subKey] = subObject;
} else {
result[name] = itemValue;
}
return;
}
}


+ 2
- 0
src/apps/callcenter/i18n/de-DE.json View File

@ -58,6 +58,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/dk-DK.json View File

@ -59,6 +59,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/en-NZ.json View File

@ -59,6 +59,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/en-US.json View File

@ -59,6 +59,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/es-ES.json View File

@ -58,6 +58,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/fr-FR.json View File

@ -57,6 +57,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/it-IT.json View File

@ -57,6 +57,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 3
- 1
src/apps/callcenter/i18n/nl-NL.json View File

@ -57,6 +57,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {
@ -87,4 +89,4 @@
"manageQueues": "Manage Queues"
}
}
}
}

+ 2
- 0
src/apps/callcenter/i18n/pt-PT.json View File

@ -59,6 +59,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/ro-RO.json View File

@ -60,6 +60,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {


+ 2
- 0
src/apps/callcenter/i18n/ru-RU.json View File

@ -57,6 +57,8 @@
"maxNumberCallsHelpText": "Сколько абонентов могут ждать в очереди в очереди (0 - без ограничений)",
"maxHoldTimeLabel": "Максимальное время удержания (в секундах)",
"maxHoldTimeHelpText": "В секундах, как долго пытаться подключить вызывающего абонента до того, как он перейдёт к следующим действиям очереди (0 - без ограничений).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Позволить вызывающему абоненту войти в эту очередь, когда агенты недоступны."
},


+ 3
- 1
src/apps/callcenter/i18n/zh-CN.json View File

@ -57,6 +57,8 @@
"maxNumberCallsHelpText": "How many callers are allowed to wait on hold in the queue (0 for no limit).",
"maxHoldTimeLabel": "Max Hold Time (s)",
"maxHoldTimeHelpText": "In seconds, how long to try to connect the caller before progressing past the queue callflow action (0 for no limit).",
"positionAnnouncementsLabel": "Position Announcements",
"waitTimeAnnouncementsLabel": "Wait Time Announcements",
"enterWhenEmptyLabel": "Allows a caller to enter this queue when no agents are available."
},
"notificationsPanel": {
@ -87,4 +89,4 @@
"manageQueues": "Manage Queues"
}
}
}
}

+ 27
- 1
src/apps/callcenter/views/settings_queue_form.html View File

@ -122,6 +122,32 @@
</div>
</div>
<div class="control-group">
<span class="control-label"></span>
<div class="controls">
<div class="checkbox">
<label>
<input class="js-to-serialize" type="checkbox" name="announcements.position_announcements_enabled"
{{#if data.announcements.position_announcements_enabled }}checked="checked"{{/if}}>
{{ i18n.callcenter.settings.queuePanel.positionAnnouncementsLabel }}
</label>
</div>
</div>
</div>
<div class="control-group">
<span class="control-label"></span>
<div class="controls">
<div class="checkbox">
<label>
<input class="js-to-serialize" type="checkbox" name="announcements.wait_time_announcements_enabled"
{{#if data.announcements.wait_time_announcements_enabled }}checked="checked"{{/if}}>
{{ i18n.callcenter.settings.queuePanel.waitTimeAnnouncementsLabel }}
</label>
</div>
</div>
</div>
<div class="control-group">
<span class="control-label"></span>
<div class="controls">
@ -197,4 +223,4 @@
<button class="btn btn-primary js-save-queue">{{ i18n.callcenter.settings.createQueueButtonText }}</button>
{{/if}}
</div>
</form>
</form>

Loading…
Cancel
Save