From 9d67b9eec1d11b565792b7624e3e729812d5e734 Mon Sep 17 00:00:00 2001 From: Jean-Roch Maitre Date: Fri, 17 Jun 2016 09:26:24 -0700 Subject: [PATCH] UI-2256: adding *6883 to feature codes --- i18n/en-US.json | 5 ++++- submodules/featureCodes/featureCodes.js | 3 ++- submodules/strategy/strategy.js | 16 +++++++++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/i18n/en-US.json b/i18n/en-US.json index 9658dc5..a43b781 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -1059,7 +1059,10 @@ "call_recording": "Call Recording", "__comment": "UI-1395: Added voicemail[single_mailbox_login] feature code", "__version": "3.20", - "voicemail[single_mailbox_login]": "Check Voicemail (auto login)" + "voicemail[single_mailbox_login]": "Check Voicemail (auto login)", + "__comment": "UI-2256: adding move feature code", + "__version": "4.0", + "move": "Move" }, "__comment": "UI-1028, v3.20_s0: Added categories for the feature codes.", "categories": { diff --git a/submodules/featureCodes/featureCodes.js b/submodules/featureCodes/featureCodes.js index f199912..65b0a0c 100644 --- a/submodules/featureCodes/featureCodes.js +++ b/submodules/featureCodes/featureCodes.js @@ -48,7 +48,8 @@ define(function(require){ "call_waiting[action=enable]", "call_waiting[action=disable]", "sound_test_service", - "call_recording" + "call_recording", + "move" ] }, diff --git a/submodules/strategy/strategy.js b/submodules/strategy/strategy.js index c028449..8a09095 100644 --- a/submodules/strategy/strategy.js +++ b/submodules/strategy/strategy.js @@ -142,6 +142,12 @@ define(function(require){ pattern: '^\\*5([0-9]*)$', moduleName: 'park', actionName: 'retrieve' + }, + { + name: 'move', + number: '6683', + callflowNumber: '*6683', + moduleName: 'move' } ], @@ -2879,9 +2885,7 @@ define(function(require){ var callflow = { flow: { children: {}, - data: $.extend(true, (featureCode.extraData || {}), { - action: featureCode.actionName - }), + data: featureCode.extraData || {}, module: featureCode.moduleName }, featurecode: { @@ -2890,6 +2894,12 @@ define(function(require){ } }; + if(featureCode.hasOwnProperty('actionName')) { + callflow.flow.data = $.extend(callflow.flow.data, { + action: featureCode.actionName + }); + } + if('pattern' in featureCode) { callflow.patterns = [ featureCode.pattern ]; }