hgs-twilio-class-lib 1.1.70 → 1.1.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,9 @@ class CxConfigOtherController {
76
76
  if (query.getFilterContent) {
77
77
  result.filterContent = CxConfigOtherFilter_1.CXConfigOtherFilterService.getFilterData(result.filterOptions);
78
78
  }
79
+ if (query.getPromptForIVR) {
80
+ result.items = transformArrayToJson(result.items);
81
+ }
79
82
  if ("filterOptions" in result) {
80
83
  delete result.filterOptions;
81
84
  }
@@ -126,3 +129,10 @@ class CxConfigOtherController {
126
129
  }
127
130
  }
128
131
  exports.CxConfigOtherController = CxConfigOtherController;
132
+ function transformArrayToJson(inputArray) {
133
+ return inputArray.reduce((acc, item) => {
134
+ const { name, value } = item;
135
+ acc[name] = { value };
136
+ return acc;
137
+ }, {});
138
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hgs-twilio-class-lib",
3
- "version": "1.1.70",
3
+ "version": "1.1.71",
4
4
  "description": "Flex 2.0 backend to connect with any database ",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./types/index.d.ts",