@webex/calling 3.9.0 → 3.10.0

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.
Files changed (184) hide show
  1. package/dist/CallHistory/CallHistory.js +51 -46
  2. package/dist/CallHistory/CallHistory.js.map +1 -1
  3. package/dist/CallHistory/CallHistory.test.js +146 -147
  4. package/dist/CallHistory/CallHistory.test.js.map +1 -1
  5. package/dist/CallHistory/callHistoryFixtures.js.map +1 -1
  6. package/dist/CallHistory/constants.js.map +1 -1
  7. package/dist/CallHistory/types.js.map +1 -1
  8. package/dist/CallSettings/CallSettings.js +8 -8
  9. package/dist/CallSettings/CallSettings.js.map +1 -1
  10. package/dist/CallSettings/CallSettings.test.js +1 -1
  11. package/dist/CallSettings/CallSettings.test.js.map +1 -1
  12. package/dist/CallSettings/UcmBackendConnector.js +12 -11
  13. package/dist/CallSettings/UcmBackendConnector.js.map +1 -1
  14. package/dist/CallSettings/UcmBackendConnector.test.js +9 -10
  15. package/dist/CallSettings/UcmBackendConnector.test.js.map +1 -1
  16. package/dist/CallSettings/WxCallBackendConnector.js +66 -59
  17. package/dist/CallSettings/WxCallBackendConnector.js.map +1 -1
  18. package/dist/CallSettings/WxCallBackendConnector.test.js +108 -109
  19. package/dist/CallSettings/WxCallBackendConnector.test.js.map +1 -1
  20. package/dist/CallSettings/constants.js.map +1 -1
  21. package/dist/CallSettings/testFixtures.js.map +1 -1
  22. package/dist/CallSettings/types.js.map +1 -1
  23. package/dist/CallingClient/CallingClient.js +457 -201
  24. package/dist/CallingClient/CallingClient.js.map +1 -1
  25. package/dist/CallingClient/CallingClient.test.js +458 -315
  26. package/dist/CallingClient/CallingClient.test.js.map +1 -1
  27. package/dist/CallingClient/callRecordFixtures.js.map +1 -1
  28. package/dist/CallingClient/calling/CallerId/index.js +2 -2
  29. package/dist/CallingClient/calling/CallerId/index.js.map +1 -1
  30. package/dist/CallingClient/calling/CallerId/index.test.js +8 -7
  31. package/dist/CallingClient/calling/CallerId/index.test.js.map +1 -1
  32. package/dist/CallingClient/calling/CallerId/types.js.map +1 -1
  33. package/dist/CallingClient/calling/call.js +369 -333
  34. package/dist/CallingClient/calling/call.js.map +1 -1
  35. package/dist/CallingClient/calling/call.test.js +411 -410
  36. package/dist/CallingClient/calling/call.test.js.map +1 -1
  37. package/dist/CallingClient/calling/callManager.js +3 -4
  38. package/dist/CallingClient/calling/callManager.js.map +1 -1
  39. package/dist/CallingClient/calling/callManager.test.js +67 -68
  40. package/dist/CallingClient/calling/callManager.test.js.map +1 -1
  41. package/dist/CallingClient/calling/index.js.map +1 -1
  42. package/dist/CallingClient/calling/types.js.map +1 -1
  43. package/dist/CallingClient/callingClientFixtures.js.map +1 -1
  44. package/dist/CallingClient/constants.js +9 -6
  45. package/dist/CallingClient/constants.js.map +1 -1
  46. package/dist/CallingClient/line/index.js +10 -11
  47. package/dist/CallingClient/line/index.js.map +1 -1
  48. package/dist/CallingClient/line/line.test.js +10 -9
  49. package/dist/CallingClient/line/line.test.js.map +1 -1
  50. package/dist/CallingClient/line/types.js.map +1 -1
  51. package/dist/CallingClient/registration/index.js.map +1 -1
  52. package/dist/CallingClient/registration/register.js +280 -201
  53. package/dist/CallingClient/registration/register.js.map +1 -1
  54. package/dist/CallingClient/registration/register.test.js +251 -180
  55. package/dist/CallingClient/registration/register.test.js.map +1 -1
  56. package/dist/CallingClient/registration/registerFixtures.js.map +1 -1
  57. package/dist/CallingClient/registration/types.js.map +1 -1
  58. package/dist/CallingClient/registration/webWorker.js +25 -10
  59. package/dist/CallingClient/registration/webWorker.js.map +1 -1
  60. package/dist/CallingClient/registration/webWorker.test.js +85 -38
  61. package/dist/CallingClient/registration/webWorker.test.js.map +1 -1
  62. package/dist/CallingClient/registration/webWorkerStr.js +1 -1
  63. package/dist/CallingClient/registration/webWorkerStr.js.map +1 -1
  64. package/dist/CallingClient/types.js.map +1 -1
  65. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js +142 -0
  66. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js.map +1 -0
  67. package/dist/Contacts/ContactsClient.js +244 -238
  68. package/dist/Contacts/ContactsClient.js.map +1 -1
  69. package/dist/Contacts/ContactsClient.test.js +89 -90
  70. package/dist/Contacts/ContactsClient.test.js.map +1 -1
  71. package/dist/Contacts/constants.js +2 -2
  72. package/dist/Contacts/constants.js.map +1 -1
  73. package/dist/Contacts/contactFixtures.js.map +1 -1
  74. package/dist/Contacts/types.js.map +1 -1
  75. package/dist/Errors/catalog/CallError.js +2 -2
  76. package/dist/Errors/catalog/CallError.js.map +1 -1
  77. package/dist/Errors/catalog/CallingDeviceError.js +2 -2
  78. package/dist/Errors/catalog/CallingDeviceError.js.map +1 -1
  79. package/dist/Errors/catalog/ExtendedError.js +3 -3
  80. package/dist/Errors/catalog/ExtendedError.js.map +1 -1
  81. package/dist/Errors/catalog/LineError.js +2 -2
  82. package/dist/Errors/catalog/LineError.js.map +1 -1
  83. package/dist/Errors/index.js.map +1 -1
  84. package/dist/Errors/types.js.map +1 -1
  85. package/dist/Events/impl/index.js +2 -2
  86. package/dist/Events/impl/index.js.map +1 -1
  87. package/dist/Events/types.js.map +1 -1
  88. package/dist/Logger/index.js.map +1 -1
  89. package/dist/Logger/index.test.js.map +1 -1
  90. package/dist/Logger/types.js.map +1 -1
  91. package/dist/Metrics/index.js +221 -104
  92. package/dist/Metrics/index.js.map +1 -1
  93. package/dist/Metrics/index.test.js +112 -23
  94. package/dist/Metrics/index.test.js.map +1 -1
  95. package/dist/Metrics/types.js +15 -1
  96. package/dist/Metrics/types.js.map +1 -1
  97. package/dist/SDKConnector/index.js +0 -1
  98. package/dist/SDKConnector/index.js.map +1 -1
  99. package/dist/SDKConnector/index.test.js.map +1 -1
  100. package/dist/SDKConnector/types.js.map +1 -1
  101. package/dist/SDKConnector/utils.js.map +1 -1
  102. package/dist/SDKConnector/utils.test.js.map +1 -1
  103. package/dist/Voicemail/BroadworksBackendConnector.js +42 -39
  104. package/dist/Voicemail/BroadworksBackendConnector.js.map +1 -1
  105. package/dist/Voicemail/BroadworksBackendConnector.test.js +119 -120
  106. package/dist/Voicemail/BroadworksBackendConnector.test.js.map +1 -1
  107. package/dist/Voicemail/UcmBackendConnector.js +54 -47
  108. package/dist/Voicemail/UcmBackendConnector.js.map +1 -1
  109. package/dist/Voicemail/UcmBackendConnector.test.js +73 -74
  110. package/dist/Voicemail/UcmBackendConnector.test.js.map +1 -1
  111. package/dist/Voicemail/Voicemail.js +12 -11
  112. package/dist/Voicemail/Voicemail.js.map +1 -1
  113. package/dist/Voicemail/Voicemail.test.js +2 -2
  114. package/dist/Voicemail/Voicemail.test.js.map +1 -1
  115. package/dist/Voicemail/WxCallBackendConnector.js +78 -70
  116. package/dist/Voicemail/WxCallBackendConnector.js.map +1 -1
  117. package/dist/Voicemail/WxCallBackendConnector.test.js +184 -185
  118. package/dist/Voicemail/WxCallBackendConnector.test.js.map +1 -1
  119. package/dist/Voicemail/constants.js.map +1 -1
  120. package/dist/Voicemail/types.js.map +1 -1
  121. package/dist/Voicemail/voicemailFixture.js.map +1 -1
  122. package/dist/api.js.map +1 -1
  123. package/dist/common/Utils.js +84 -65
  124. package/dist/common/Utils.js.map +1 -1
  125. package/dist/common/Utils.test.js +111 -117
  126. package/dist/common/Utils.test.js.map +1 -1
  127. package/dist/common/constants.js.map +1 -1
  128. package/dist/common/index.js.map +1 -1
  129. package/dist/common/testUtil.js +1 -1
  130. package/dist/common/testUtil.js.map +1 -1
  131. package/dist/common/types.js.map +1 -1
  132. package/dist/index.js +5 -5
  133. package/dist/index.js.map +1 -1
  134. package/dist/module/CallHistory/CallHistory.js +4 -0
  135. package/dist/module/CallSettings/UcmBackendConnector.js +1 -0
  136. package/dist/module/CallSettings/WxCallBackendConnector.js +7 -0
  137. package/dist/module/CallingClient/CallingClient.js +174 -32
  138. package/dist/module/CallingClient/calling/call.js +79 -43
  139. package/dist/module/CallingClient/constants.js +8 -4
  140. package/dist/module/CallingClient/line/index.js +3 -3
  141. package/dist/module/CallingClient/registration/register.js +34 -10
  142. package/dist/module/CallingClient/registration/webWorker.js +17 -3
  143. package/dist/module/CallingClient/registration/webWorkerStr.js +19 -3
  144. package/dist/module/CallingClient/windowsChromiumIceWarmupUtils.js +59 -0
  145. package/dist/module/Contacts/ContactsClient.js +23 -17
  146. package/dist/module/Contacts/constants.js +1 -1
  147. package/dist/module/Metrics/index.js +142 -55
  148. package/dist/module/Metrics/types.js +14 -0
  149. package/dist/module/Voicemail/BroadworksBackendConnector.js +3 -0
  150. package/dist/module/Voicemail/UcmBackendConnector.js +6 -0
  151. package/dist/module/Voicemail/WxCallBackendConnector.js +8 -0
  152. package/dist/module/common/Utils.js +27 -10
  153. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
  154. package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -1
  155. package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -1
  156. package/dist/types/CallingClient/CallingClient.d.ts +12 -1
  157. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
  158. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  159. package/dist/types/CallingClient/calling/types.d.ts +2 -1
  160. package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
  161. package/dist/types/CallingClient/constants.d.ts +8 -4
  162. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  163. package/dist/types/CallingClient/line/index.d.ts.map +1 -1
  164. package/dist/types/CallingClient/registration/register.d.ts +1 -0
  165. package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
  166. package/dist/types/CallingClient/registration/webWorker.d.ts +2 -1
  167. package/dist/types/CallingClient/registration/webWorker.d.ts.map +1 -1
  168. package/dist/types/CallingClient/registration/webWorkerStr.d.ts +1 -1
  169. package/dist/types/CallingClient/registration/webWorkerStr.d.ts.map +1 -1
  170. package/dist/types/CallingClient/windowsChromiumIceWarmupUtils.d.ts +5 -0
  171. package/dist/types/CallingClient/windowsChromiumIceWarmupUtils.d.ts.map +1 -0
  172. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
  173. package/dist/types/Contacts/constants.d.ts +1 -1
  174. package/dist/types/Contacts/constants.d.ts.map +1 -1
  175. package/dist/types/Metrics/index.d.ts.map +1 -1
  176. package/dist/types/Metrics/types.d.ts +18 -3
  177. package/dist/types/Metrics/types.d.ts.map +1 -1
  178. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -1
  179. package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -1
  180. package/dist/types/Voicemail/WxCallBackendConnector.d.ts.map +1 -1
  181. package/dist/types/common/Utils.d.ts.map +1 -1
  182. package/dist/types/common/types.d.ts +1 -0
  183. package/dist/types/common/types.d.ts.map +1 -1
  184. package/package.json +10 -8
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
 
3
+ var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys");
4
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
5
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
6
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
7
+ var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
3
8
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
9
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
5
10
  _Object$defineProperty(exports, "__esModule", {
@@ -10,8 +15,11 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
10
15
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
11
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
12
17
  var _constants = require("../CallingClient/constants");
13
- var _types = require("./types");
18
+ var _types = require("../common/types");
19
+ var _types2 = require("./types");
14
20
  var _Logger = _interopRequireDefault(require("../Logger"));
21
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
15
23
  var metricManager;
16
24
 
17
25
  /**
@@ -34,53 +42,65 @@ var MetricManager = /*#__PURE__*/function () {
34
42
  this.serviceIndicator = indicator;
35
43
  }
36
44
  (0, _createClass2.default)(MetricManager, [{
45
+ key: "submitConnectionMetrics",
46
+ value: function submitConnectionMetrics(name, metricAction, type, downTimestamp, upTimestamp) {
47
+ var _this$deviceInfo, _this$deviceInfo$devi, _this$deviceInfo2, _this$deviceInfo2$dev, _this$deviceInfo3, _this$deviceInfo3$dev;
48
+ var metricData = {
49
+ tags: {
50
+ metricAction: metricAction,
51
+ device_id: (_this$deviceInfo = this.deviceInfo) === null || _this$deviceInfo === void 0 ? void 0 : (_this$deviceInfo$devi = _this$deviceInfo.device) === null || _this$deviceInfo$devi === void 0 ? void 0 : _this$deviceInfo$devi.deviceId,
52
+ service_indicator: this.serviceIndicator
53
+ },
54
+ fields: {
55
+ device_url: (_this$deviceInfo2 = this.deviceInfo) === null || _this$deviceInfo2 === void 0 ? void 0 : (_this$deviceInfo2$dev = _this$deviceInfo2.device) === null || _this$deviceInfo2$dev === void 0 ? void 0 : _this$deviceInfo2$dev.clientDeviceUri,
56
+ mobius_url: (_this$deviceInfo3 = this.deviceInfo) === null || _this$deviceInfo3 === void 0 ? void 0 : (_this$deviceInfo3$dev = _this$deviceInfo3.device) === null || _this$deviceInfo3$dev === void 0 ? void 0 : _this$deviceInfo3$dev.uri,
57
+ calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
58
+ downTimestamp: downTimestamp,
59
+ upTimestamp: upTimestamp
60
+ },
61
+ type: type
62
+ };
63
+ if (metricData) {
64
+ this.webex.internal.metrics.submitClientMetrics(name, metricData);
65
+ }
66
+ }
67
+ }, {
37
68
  key: "submitUploadLogsMetric",
38
- value: function submitUploadLogsMetric(name, action, type, trackingId, feedbackId, correlationId, stack, callId) {
69
+ value: function submitUploadLogsMetric(name, action, type, trackingId, feedbackId, correlationId, stack, callId, broadworksCorrelationInfo) {
70
+ var _this$deviceInfo4, _this$deviceInfo4$dev, _this$deviceInfo5, _this$deviceInfo5$dev, _this$deviceInfo6, _this$deviceInfo6$dev;
39
71
  var data;
72
+ var commonData = {
73
+ tags: {
74
+ action: action,
75
+ device_id: (_this$deviceInfo4 = this.deviceInfo) === null || _this$deviceInfo4 === void 0 ? void 0 : (_this$deviceInfo4$dev = _this$deviceInfo4.device) === null || _this$deviceInfo4$dev === void 0 ? void 0 : _this$deviceInfo4$dev.deviceId,
76
+ service_indicator: this.serviceIndicator
77
+ },
78
+ fields: {
79
+ device_url: (_this$deviceInfo5 = this.deviceInfo) === null || _this$deviceInfo5 === void 0 ? void 0 : (_this$deviceInfo5$dev = _this$deviceInfo5.device) === null || _this$deviceInfo5$dev === void 0 ? void 0 : _this$deviceInfo5$dev.clientDeviceUri,
80
+ mobius_url: (_this$deviceInfo6 = this.deviceInfo) === null || _this$deviceInfo6 === void 0 ? void 0 : (_this$deviceInfo6$dev = _this$deviceInfo6.device) === null || _this$deviceInfo6$dev === void 0 ? void 0 : _this$deviceInfo6$dev.uri,
81
+ calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
82
+ correlation_id: correlationId,
83
+ broadworksCorrelationInfo: broadworksCorrelationInfo,
84
+ tracking_id: trackingId,
85
+ feedback_id: feedbackId,
86
+ call_id: callId
87
+ },
88
+ type: type
89
+ };
40
90
  switch (name) {
41
- case _types.METRIC_EVENT.UPLOAD_LOGS_SUCCESS:
91
+ case _types2.METRIC_EVENT.UPLOAD_LOGS_SUCCESS:
42
92
  {
43
- var _this$deviceInfo, _this$deviceInfo$devi, _this$deviceInfo2, _this$deviceInfo2$dev, _this$deviceInfo3, _this$deviceInfo3$dev;
44
- data = {
45
- tags: {
46
- action: action,
47
- device_id: (_this$deviceInfo = this.deviceInfo) === null || _this$deviceInfo === void 0 ? void 0 : (_this$deviceInfo$devi = _this$deviceInfo.device) === null || _this$deviceInfo$devi === void 0 ? void 0 : _this$deviceInfo$devi.deviceId,
48
- service_indicator: this.serviceIndicator
49
- },
50
- fields: {
51
- device_url: (_this$deviceInfo2 = this.deviceInfo) === null || _this$deviceInfo2 === void 0 ? void 0 : (_this$deviceInfo2$dev = _this$deviceInfo2.device) === null || _this$deviceInfo2$dev === void 0 ? void 0 : _this$deviceInfo2$dev.clientDeviceUri,
52
- mobius_url: (_this$deviceInfo3 = this.deviceInfo) === null || _this$deviceInfo3 === void 0 ? void 0 : (_this$deviceInfo3$dev = _this$deviceInfo3.device) === null || _this$deviceInfo3$dev === void 0 ? void 0 : _this$deviceInfo3$dev.uri,
53
- calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
54
- correlation_id: correlationId,
55
- tracking_id: trackingId,
56
- feedback_id: feedbackId,
57
- call_id: callId
58
- },
59
- type: type
60
- };
93
+ data = commonData;
61
94
  break;
62
95
  }
63
- case _types.METRIC_EVENT.UPLOAD_LOGS_FAILED:
96
+ case _types2.METRIC_EVENT.UPLOAD_LOGS_FAILED:
64
97
  {
65
- var _this$deviceInfo4, _this$deviceInfo4$dev, _this$deviceInfo5, _this$deviceInfo5$dev, _this$deviceInfo6, _this$deviceInfo6$dev;
66
- data = {
67
- tags: {
68
- action: action,
69
- device_id: (_this$deviceInfo4 = this.deviceInfo) === null || _this$deviceInfo4 === void 0 ? void 0 : (_this$deviceInfo4$dev = _this$deviceInfo4.device) === null || _this$deviceInfo4$dev === void 0 ? void 0 : _this$deviceInfo4$dev.deviceId,
70
- service_indicator: this.serviceIndicator
71
- },
72
- fields: {
73
- device_url: (_this$deviceInfo5 = this.deviceInfo) === null || _this$deviceInfo5 === void 0 ? void 0 : (_this$deviceInfo5$dev = _this$deviceInfo5.device) === null || _this$deviceInfo5$dev === void 0 ? void 0 : _this$deviceInfo5$dev.clientDeviceUri,
74
- mobius_url: (_this$deviceInfo6 = this.deviceInfo) === null || _this$deviceInfo6 === void 0 ? void 0 : (_this$deviceInfo6$dev = _this$deviceInfo6.device) === null || _this$deviceInfo6$dev === void 0 ? void 0 : _this$deviceInfo6$dev.uri,
75
- calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
76
- correlation_id: correlationId,
77
- tracking_id: trackingId,
78
- feedback_id: feedbackId,
79
- error: stack,
80
- call_id: callId
81
- },
82
- type: type
83
- };
98
+ data = _objectSpread(_objectSpread({}, commonData), {}, {
99
+ fields: _objectSpread(_objectSpread({}, commonData.fields), {}, {
100
+ error: stack
101
+ })
102
+ });
103
+ break;
84
104
  }
85
105
  }
86
106
  if (data) {
@@ -97,6 +117,68 @@ var MetricManager = /*#__PURE__*/function () {
97
117
  this.deviceInfo = deviceInfo;
98
118
  }
99
119
 
120
+ /**
121
+ * @param name - Name of the metric being submitted.
122
+ * @param metricAction - Type of action sent in the metric.
123
+ * @param type - Type of metric.
124
+ * @param region - Region string.
125
+ * @param trackingId - Tracking ID string.
126
+ */
127
+ }, {
128
+ key: "submitRegionInfoMetric",
129
+ value: function submitRegionInfoMetric(name, metricAction, type, mobiusHost, clientRegion, countryCode, trackingId) {
130
+ var _this$deviceInfo7, _this$deviceInfo7$dev, _this$deviceInfo8, _this$deviceInfo8$dev, _this$deviceInfo9, _this$deviceInfo9$dev;
131
+ var data = {
132
+ tags: {
133
+ action: metricAction,
134
+ device_id: (_this$deviceInfo7 = this.deviceInfo) === null || _this$deviceInfo7 === void 0 ? void 0 : (_this$deviceInfo7$dev = _this$deviceInfo7.device) === null || _this$deviceInfo7$dev === void 0 ? void 0 : _this$deviceInfo7$dev.deviceId,
135
+ service_indicator: _types.ServiceIndicator.CALLING
136
+ },
137
+ fields: {
138
+ device_url: (_this$deviceInfo8 = this.deviceInfo) === null || _this$deviceInfo8 === void 0 ? void 0 : (_this$deviceInfo8$dev = _this$deviceInfo8.device) === null || _this$deviceInfo8$dev === void 0 ? void 0 : _this$deviceInfo8$dev.clientDeviceUri,
139
+ mobius_url: (_this$deviceInfo9 = this.deviceInfo) === null || _this$deviceInfo9 === void 0 ? void 0 : (_this$deviceInfo9$dev = _this$deviceInfo9.device) === null || _this$deviceInfo9$dev === void 0 ? void 0 : _this$deviceInfo9$dev.uri,
140
+ calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
141
+ mobius_host: mobiusHost,
142
+ client_region: clientRegion,
143
+ country_code: countryCode,
144
+ tracking_id: trackingId
145
+ },
146
+ type: type
147
+ };
148
+ this.webex.internal.metrics.submitClientMetrics(name, data);
149
+ }
150
+
151
+ /**
152
+ * @param name - Name of the metric being submitted.
153
+ * @param metricAction - Type of action sent in the metric.
154
+ * @param type - Type of metric.
155
+ * @param mobiusServers - Array of Mobius server objects.
156
+ */
157
+ }, {
158
+ key: "submitMobiusServersMetric",
159
+ value: function submitMobiusServersMetric(name, metricAction, type, mobiusServers, trackingId) {
160
+ var _this$deviceInfo0, _this$deviceInfo0$dev, _this$deviceInfo1, _this$deviceInfo1$dev, _this$deviceInfo10, _this$deviceInfo10$de;
161
+ var data = {
162
+ tags: {
163
+ action: metricAction,
164
+ device_id: (_this$deviceInfo0 = this.deviceInfo) === null || _this$deviceInfo0 === void 0 ? void 0 : (_this$deviceInfo0$dev = _this$deviceInfo0.device) === null || _this$deviceInfo0$dev === void 0 ? void 0 : _this$deviceInfo0$dev.deviceId,
165
+ service_indicator: _types.ServiceIndicator.CALLING
166
+ },
167
+ fields: {
168
+ device_url: (_this$deviceInfo1 = this.deviceInfo) === null || _this$deviceInfo1 === void 0 ? void 0 : (_this$deviceInfo1$dev = _this$deviceInfo1.device) === null || _this$deviceInfo1$dev === void 0 ? void 0 : _this$deviceInfo1$dev.clientDeviceUri,
169
+ mobius_url: (_this$deviceInfo10 = this.deviceInfo) === null || _this$deviceInfo10 === void 0 ? void 0 : (_this$deviceInfo10$de = _this$deviceInfo10.device) === null || _this$deviceInfo10$de === void 0 ? void 0 : _this$deviceInfo10$de.uri,
170
+ calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
171
+ primary_mobius_servers_region: mobiusServers.primary.region,
172
+ primary_mobius_servers_uris: mobiusServers.primary.uris.join(','),
173
+ backup_mobius_servers_region: mobiusServers.backup.region,
174
+ backup_mobius_servers_uris: mobiusServers.backup.uris.join(','),
175
+ tracking_id: trackingId
176
+ },
177
+ type: type
178
+ };
179
+ this.webex.internal.metrics.submitClientMetrics(name, data);
180
+ }
181
+
100
182
  /**
101
183
  * @param name - Name of the metric being submitted.
102
184
  * @param metricAction - Type of action sent in the metric.
@@ -108,18 +190,18 @@ var MetricManager = /*#__PURE__*/function () {
108
190
  value: function submitRegistrationMetric(name, metricAction, type, caller, serverType, trackingId, keepaliveCount, clientError) {
109
191
  var data;
110
192
  switch (name) {
111
- case _types.METRIC_EVENT.REGISTRATION:
193
+ case _types2.METRIC_EVENT.REGISTRATION:
112
194
  {
113
- var _this$deviceInfo7, _this$deviceInfo7$dev, _this$deviceInfo8, _this$deviceInfo8$dev, _this$deviceInfo9, _this$deviceInfo9$dev;
195
+ var _this$deviceInfo11, _this$deviceInfo11$de, _this$deviceInfo12, _this$deviceInfo12$de, _this$deviceInfo13, _this$deviceInfo13$de;
114
196
  data = {
115
197
  tags: {
116
198
  action: metricAction,
117
- device_id: (_this$deviceInfo7 = this.deviceInfo) === null || _this$deviceInfo7 === void 0 ? void 0 : (_this$deviceInfo7$dev = _this$deviceInfo7.device) === null || _this$deviceInfo7$dev === void 0 ? void 0 : _this$deviceInfo7$dev.deviceId,
199
+ device_id: (_this$deviceInfo11 = this.deviceInfo) === null || _this$deviceInfo11 === void 0 ? void 0 : (_this$deviceInfo11$de = _this$deviceInfo11.device) === null || _this$deviceInfo11$de === void 0 ? void 0 : _this$deviceInfo11$de.deviceId,
118
200
  service_indicator: this.serviceIndicator
119
201
  },
120
202
  fields: {
121
- device_url: (_this$deviceInfo8 = this.deviceInfo) === null || _this$deviceInfo8 === void 0 ? void 0 : (_this$deviceInfo8$dev = _this$deviceInfo8.device) === null || _this$deviceInfo8$dev === void 0 ? void 0 : _this$deviceInfo8$dev.clientDeviceUri,
122
- mobius_url: (_this$deviceInfo9 = this.deviceInfo) === null || _this$deviceInfo9 === void 0 ? void 0 : (_this$deviceInfo9$dev = _this$deviceInfo9.device) === null || _this$deviceInfo9$dev === void 0 ? void 0 : _this$deviceInfo9$dev.uri,
203
+ device_url: (_this$deviceInfo12 = this.deviceInfo) === null || _this$deviceInfo12 === void 0 ? void 0 : (_this$deviceInfo12$de = _this$deviceInfo12.device) === null || _this$deviceInfo12$de === void 0 ? void 0 : _this$deviceInfo12$de.clientDeviceUri,
204
+ mobius_url: (_this$deviceInfo13 = this.deviceInfo) === null || _this$deviceInfo13 === void 0 ? void 0 : (_this$deviceInfo13$de = _this$deviceInfo13.device) === null || _this$deviceInfo13$de === void 0 ? void 0 : _this$deviceInfo13$de.uri,
123
205
  calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
124
206
  reg_source: caller,
125
207
  server_type: serverType,
@@ -129,36 +211,71 @@ var MetricManager = /*#__PURE__*/function () {
129
211
  };
130
212
  break;
131
213
  }
132
- case _types.METRIC_EVENT.REGISTRATION_ERROR:
214
+ case _types2.METRIC_EVENT.REGISTRATION_ERROR:
133
215
  {
216
+ var _this$deviceInfo14, _this$deviceInfo14$de, _this$deviceInfo15, _this$deviceInfo15$de, _this$deviceInfo16, _this$deviceInfo16$de, _errorData, _errorData2;
217
+ var errorData;
134
218
  if (clientError) {
135
- var _this$deviceInfo10, _this$deviceInfo10$de, _this$deviceInfo11, _this$deviceInfo11$de, _this$deviceInfo12, _this$deviceInfo12$de;
136
- data = {
137
- tags: {
138
- action: metricAction,
139
- device_id: (_this$deviceInfo10 = this.deviceInfo) === null || _this$deviceInfo10 === void 0 ? void 0 : (_this$deviceInfo10$de = _this$deviceInfo10.device) === null || _this$deviceInfo10$de === void 0 ? void 0 : _this$deviceInfo10$de.deviceId,
140
- service_indicator: this.serviceIndicator
141
- },
142
- fields: {
143
- device_url: (_this$deviceInfo11 = this.deviceInfo) === null || _this$deviceInfo11 === void 0 ? void 0 : (_this$deviceInfo11$de = _this$deviceInfo11.device) === null || _this$deviceInfo11$de === void 0 ? void 0 : _this$deviceInfo11$de.clientDeviceUri,
144
- mobius_url: (_this$deviceInfo12 = this.deviceInfo) === null || _this$deviceInfo12 === void 0 ? void 0 : (_this$deviceInfo12$de = _this$deviceInfo12.device) === null || _this$deviceInfo12$de === void 0 ? void 0 : _this$deviceInfo12$de.uri,
145
- calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
146
- reg_source: caller,
147
- server_type: serverType,
148
- trackingId: trackingId,
149
- keepalive_count: keepaliveCount,
150
- error: clientError.getError().message,
151
- error_type: clientError.getError().type
152
- },
153
- type: type
219
+ errorData = {
220
+ msg: clientError.getError().message,
221
+ type: clientError.getError().type
154
222
  };
155
223
  }
224
+ data = {
225
+ tags: {
226
+ action: metricAction,
227
+ device_id: (_this$deviceInfo14 = this.deviceInfo) === null || _this$deviceInfo14 === void 0 ? void 0 : (_this$deviceInfo14$de = _this$deviceInfo14.device) === null || _this$deviceInfo14$de === void 0 ? void 0 : _this$deviceInfo14$de.deviceId,
228
+ service_indicator: this.serviceIndicator
229
+ },
230
+ fields: {
231
+ device_url: (_this$deviceInfo15 = this.deviceInfo) === null || _this$deviceInfo15 === void 0 ? void 0 : (_this$deviceInfo15$de = _this$deviceInfo15.device) === null || _this$deviceInfo15$de === void 0 ? void 0 : _this$deviceInfo15$de.clientDeviceUri,
232
+ mobius_url: (_this$deviceInfo16 = this.deviceInfo) === null || _this$deviceInfo16 === void 0 ? void 0 : (_this$deviceInfo16$de = _this$deviceInfo16.device) === null || _this$deviceInfo16$de === void 0 ? void 0 : _this$deviceInfo16$de.uri,
233
+ calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
234
+ reg_source: caller,
235
+ server_type: serverType,
236
+ trackingId: trackingId,
237
+ error: (_errorData = errorData) === null || _errorData === void 0 ? void 0 : _errorData.msg,
238
+ error_type: (_errorData2 = errorData) === null || _errorData2 === void 0 ? void 0 : _errorData2.type
239
+ },
240
+ type: type
241
+ };
242
+ break;
243
+ }
244
+ case _types2.METRIC_EVENT.KEEPALIVE_ERROR:
245
+ {
246
+ var _this$deviceInfo17, _this$deviceInfo17$de, _this$deviceInfo18, _this$deviceInfo18$de, _this$deviceInfo19, _this$deviceInfo19$de, _errorData4, _errorData5;
247
+ var _errorData3;
248
+ if (clientError) {
249
+ _errorData3 = {
250
+ msg: clientError.getError().message,
251
+ type: clientError.getError().type
252
+ };
253
+ }
254
+ data = {
255
+ tags: {
256
+ action: metricAction,
257
+ device_id: (_this$deviceInfo17 = this.deviceInfo) === null || _this$deviceInfo17 === void 0 ? void 0 : (_this$deviceInfo17$de = _this$deviceInfo17.device) === null || _this$deviceInfo17$de === void 0 ? void 0 : _this$deviceInfo17$de.deviceId,
258
+ service_indicator: this.serviceIndicator
259
+ },
260
+ fields: {
261
+ device_url: (_this$deviceInfo18 = this.deviceInfo) === null || _this$deviceInfo18 === void 0 ? void 0 : (_this$deviceInfo18$de = _this$deviceInfo18.device) === null || _this$deviceInfo18$de === void 0 ? void 0 : _this$deviceInfo18$de.clientDeviceUri,
262
+ mobius_url: (_this$deviceInfo19 = this.deviceInfo) === null || _this$deviceInfo19 === void 0 ? void 0 : (_this$deviceInfo19$de = _this$deviceInfo19.device) === null || _this$deviceInfo19$de === void 0 ? void 0 : _this$deviceInfo19$de.uri,
263
+ calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
264
+ reg_source: caller,
265
+ server_type: serverType,
266
+ trackingId: trackingId,
267
+ keepalive_count: keepaliveCount,
268
+ error: (_errorData4 = _errorData3) === null || _errorData4 === void 0 ? void 0 : _errorData4.msg,
269
+ error_type: (_errorData5 = _errorData3) === null || _errorData5 === void 0 ? void 0 : _errorData5.type
270
+ },
271
+ type: type
272
+ };
156
273
  break;
157
274
  }
158
275
  default:
159
276
  _Logger.default.warn('Invalid metric name received. Rejecting request to submit metric.', {
160
277
  file: _constants.METRIC_FILE,
161
- method: this.submitRegistrationMetric.name
278
+ method: 'submitRegistrationMetric'
162
279
  });
163
280
  break;
164
281
  }
@@ -180,18 +297,18 @@ var MetricManager = /*#__PURE__*/function () {
180
297
  value: function submitCallMetric(name, metricAction, type, callId, correlationId, callError) {
181
298
  var data;
182
299
  switch (name) {
183
- case _types.METRIC_EVENT.CALL:
300
+ case _types2.METRIC_EVENT.CALL:
184
301
  {
185
- var _this$deviceInfo13, _this$deviceInfo13$de, _this$deviceInfo14, _this$deviceInfo14$de, _this$deviceInfo15, _this$deviceInfo15$de;
302
+ var _this$deviceInfo20, _this$deviceInfo20$de, _this$deviceInfo21, _this$deviceInfo21$de, _this$deviceInfo22, _this$deviceInfo22$de;
186
303
  data = {
187
304
  tags: {
188
305
  action: metricAction,
189
- device_id: (_this$deviceInfo13 = this.deviceInfo) === null || _this$deviceInfo13 === void 0 ? void 0 : (_this$deviceInfo13$de = _this$deviceInfo13.device) === null || _this$deviceInfo13$de === void 0 ? void 0 : _this$deviceInfo13$de.deviceId,
306
+ device_id: (_this$deviceInfo20 = this.deviceInfo) === null || _this$deviceInfo20 === void 0 ? void 0 : (_this$deviceInfo20$de = _this$deviceInfo20.device) === null || _this$deviceInfo20$de === void 0 ? void 0 : _this$deviceInfo20$de.deviceId,
190
307
  service_indicator: this.serviceIndicator
191
308
  },
192
309
  fields: {
193
- device_url: (_this$deviceInfo14 = this.deviceInfo) === null || _this$deviceInfo14 === void 0 ? void 0 : (_this$deviceInfo14$de = _this$deviceInfo14.device) === null || _this$deviceInfo14$de === void 0 ? void 0 : _this$deviceInfo14$de.clientDeviceUri,
194
- mobius_url: (_this$deviceInfo15 = this.deviceInfo) === null || _this$deviceInfo15 === void 0 ? void 0 : (_this$deviceInfo15$de = _this$deviceInfo15.device) === null || _this$deviceInfo15$de === void 0 ? void 0 : _this$deviceInfo15$de.uri,
310
+ device_url: (_this$deviceInfo21 = this.deviceInfo) === null || _this$deviceInfo21 === void 0 ? void 0 : (_this$deviceInfo21$de = _this$deviceInfo21.device) === null || _this$deviceInfo21$de === void 0 ? void 0 : _this$deviceInfo21$de.clientDeviceUri,
311
+ mobius_url: (_this$deviceInfo22 = this.deviceInfo) === null || _this$deviceInfo22 === void 0 ? void 0 : (_this$deviceInfo22$de = _this$deviceInfo22.device) === null || _this$deviceInfo22$de === void 0 ? void 0 : _this$deviceInfo22$de.uri,
195
312
  calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
196
313
  call_id: callId,
197
314
  correlation_id: correlationId
@@ -200,19 +317,19 @@ var MetricManager = /*#__PURE__*/function () {
200
317
  };
201
318
  break;
202
319
  }
203
- case _types.METRIC_EVENT.CALL_ERROR:
320
+ case _types2.METRIC_EVENT.CALL_ERROR:
204
321
  {
205
322
  if (callError) {
206
- var _this$deviceInfo16, _this$deviceInfo16$de, _this$deviceInfo17, _this$deviceInfo17$de, _this$deviceInfo18, _this$deviceInfo18$de;
323
+ var _this$deviceInfo23, _this$deviceInfo23$de, _this$deviceInfo24, _this$deviceInfo24$de, _this$deviceInfo25, _this$deviceInfo25$de;
207
324
  data = {
208
325
  tags: {
209
326
  action: metricAction,
210
- device_id: (_this$deviceInfo16 = this.deviceInfo) === null || _this$deviceInfo16 === void 0 ? void 0 : (_this$deviceInfo16$de = _this$deviceInfo16.device) === null || _this$deviceInfo16$de === void 0 ? void 0 : _this$deviceInfo16$de.deviceId,
327
+ device_id: (_this$deviceInfo23 = this.deviceInfo) === null || _this$deviceInfo23 === void 0 ? void 0 : (_this$deviceInfo23$de = _this$deviceInfo23.device) === null || _this$deviceInfo23$de === void 0 ? void 0 : _this$deviceInfo23$de.deviceId,
211
328
  service_indicator: this.serviceIndicator
212
329
  },
213
330
  fields: {
214
- device_url: (_this$deviceInfo17 = this.deviceInfo) === null || _this$deviceInfo17 === void 0 ? void 0 : (_this$deviceInfo17$de = _this$deviceInfo17.device) === null || _this$deviceInfo17$de === void 0 ? void 0 : _this$deviceInfo17$de.clientDeviceUri,
215
- mobius_url: (_this$deviceInfo18 = this.deviceInfo) === null || _this$deviceInfo18 === void 0 ? void 0 : (_this$deviceInfo18$de = _this$deviceInfo18.device) === null || _this$deviceInfo18$de === void 0 ? void 0 : _this$deviceInfo18$de.uri,
331
+ device_url: (_this$deviceInfo24 = this.deviceInfo) === null || _this$deviceInfo24 === void 0 ? void 0 : (_this$deviceInfo24$de = _this$deviceInfo24.device) === null || _this$deviceInfo24$de === void 0 ? void 0 : _this$deviceInfo24$de.clientDeviceUri,
332
+ mobius_url: (_this$deviceInfo25 = this.deviceInfo) === null || _this$deviceInfo25 === void 0 ? void 0 : (_this$deviceInfo25$de = _this$deviceInfo25.device) === null || _this$deviceInfo25$de === void 0 ? void 0 : _this$deviceInfo25$de.uri,
216
333
  calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
217
334
  call_id: callId,
218
335
  correlation_id: correlationId,
@@ -227,7 +344,7 @@ var MetricManager = /*#__PURE__*/function () {
227
344
  default:
228
345
  _Logger.default.warn('Invalid metric name received. Rejecting request to submit metric.', {
229
346
  file: _constants.METRIC_FILE,
230
- method: this.submitCallMetric.name
347
+ method: 'submitCallMetric'
231
348
  });
232
349
  break;
233
350
  }
@@ -251,18 +368,18 @@ var MetricManager = /*#__PURE__*/function () {
251
368
  value: function submitMediaMetric(name, metricAction, type, callId, correlationId, localSdp, remoteSdp, callError) {
252
369
  var data;
253
370
  switch (name) {
254
- case _types.METRIC_EVENT.MEDIA:
371
+ case _types2.METRIC_EVENT.MEDIA:
255
372
  {
256
- var _this$deviceInfo19, _this$deviceInfo19$de, _this$deviceInfo20, _this$deviceInfo20$de, _this$deviceInfo21, _this$deviceInfo21$de;
373
+ var _this$deviceInfo26, _this$deviceInfo26$de, _this$deviceInfo27, _this$deviceInfo27$de, _this$deviceInfo28, _this$deviceInfo28$de;
257
374
  data = {
258
375
  tags: {
259
376
  action: metricAction,
260
- device_id: (_this$deviceInfo19 = this.deviceInfo) === null || _this$deviceInfo19 === void 0 ? void 0 : (_this$deviceInfo19$de = _this$deviceInfo19.device) === null || _this$deviceInfo19$de === void 0 ? void 0 : _this$deviceInfo19$de.deviceId,
377
+ device_id: (_this$deviceInfo26 = this.deviceInfo) === null || _this$deviceInfo26 === void 0 ? void 0 : (_this$deviceInfo26$de = _this$deviceInfo26.device) === null || _this$deviceInfo26$de === void 0 ? void 0 : _this$deviceInfo26$de.deviceId,
261
378
  service_indicator: this.serviceIndicator
262
379
  },
263
380
  fields: {
264
- device_url: (_this$deviceInfo20 = this.deviceInfo) === null || _this$deviceInfo20 === void 0 ? void 0 : (_this$deviceInfo20$de = _this$deviceInfo20.device) === null || _this$deviceInfo20$de === void 0 ? void 0 : _this$deviceInfo20$de.clientDeviceUri,
265
- mobius_url: (_this$deviceInfo21 = this.deviceInfo) === null || _this$deviceInfo21 === void 0 ? void 0 : (_this$deviceInfo21$de = _this$deviceInfo21.device) === null || _this$deviceInfo21$de === void 0 ? void 0 : _this$deviceInfo21$de.uri,
381
+ device_url: (_this$deviceInfo27 = this.deviceInfo) === null || _this$deviceInfo27 === void 0 ? void 0 : (_this$deviceInfo27$de = _this$deviceInfo27.device) === null || _this$deviceInfo27$de === void 0 ? void 0 : _this$deviceInfo27$de.clientDeviceUri,
382
+ mobius_url: (_this$deviceInfo28 = this.deviceInfo) === null || _this$deviceInfo28 === void 0 ? void 0 : (_this$deviceInfo28$de = _this$deviceInfo28.device) === null || _this$deviceInfo28$de === void 0 ? void 0 : _this$deviceInfo28$de.uri,
266
383
  calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
267
384
  call_id: callId,
268
385
  correlation_id: correlationId,
@@ -273,19 +390,19 @@ var MetricManager = /*#__PURE__*/function () {
273
390
  };
274
391
  break;
275
392
  }
276
- case _types.METRIC_EVENT.MEDIA_ERROR:
393
+ case _types2.METRIC_EVENT.MEDIA_ERROR:
277
394
  {
278
395
  if (callError) {
279
- var _this$deviceInfo22, _this$deviceInfo22$de, _this$deviceInfo23, _this$deviceInfo23$de, _this$deviceInfo24, _this$deviceInfo24$de;
396
+ var _this$deviceInfo29, _this$deviceInfo29$de, _this$deviceInfo30, _this$deviceInfo30$de, _this$deviceInfo31, _this$deviceInfo31$de;
280
397
  data = {
281
398
  tags: {
282
399
  action: metricAction,
283
- device_id: (_this$deviceInfo22 = this.deviceInfo) === null || _this$deviceInfo22 === void 0 ? void 0 : (_this$deviceInfo22$de = _this$deviceInfo22.device) === null || _this$deviceInfo22$de === void 0 ? void 0 : _this$deviceInfo22$de.deviceId,
400
+ device_id: (_this$deviceInfo29 = this.deviceInfo) === null || _this$deviceInfo29 === void 0 ? void 0 : (_this$deviceInfo29$de = _this$deviceInfo29.device) === null || _this$deviceInfo29$de === void 0 ? void 0 : _this$deviceInfo29$de.deviceId,
284
401
  service_indicator: this.serviceIndicator
285
402
  },
286
403
  fields: {
287
- device_url: (_this$deviceInfo23 = this.deviceInfo) === null || _this$deviceInfo23 === void 0 ? void 0 : (_this$deviceInfo23$de = _this$deviceInfo23.device) === null || _this$deviceInfo23$de === void 0 ? void 0 : _this$deviceInfo23$de.clientDeviceUri,
288
- mobius_url: (_this$deviceInfo24 = this.deviceInfo) === null || _this$deviceInfo24 === void 0 ? void 0 : (_this$deviceInfo24$de = _this$deviceInfo24.device) === null || _this$deviceInfo24$de === void 0 ? void 0 : _this$deviceInfo24$de.uri,
404
+ device_url: (_this$deviceInfo30 = this.deviceInfo) === null || _this$deviceInfo30 === void 0 ? void 0 : (_this$deviceInfo30$de = _this$deviceInfo30.device) === null || _this$deviceInfo30$de === void 0 ? void 0 : _this$deviceInfo30$de.clientDeviceUri,
405
+ mobius_url: (_this$deviceInfo31 = this.deviceInfo) === null || _this$deviceInfo31 === void 0 ? void 0 : (_this$deviceInfo31$de = _this$deviceInfo31.device) === null || _this$deviceInfo31$de === void 0 ? void 0 : _this$deviceInfo31$de.uri,
289
406
  calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
290
407
  call_id: callId,
291
408
  correlation_id: correlationId,
@@ -302,7 +419,7 @@ var MetricManager = /*#__PURE__*/function () {
302
419
  default:
303
420
  _Logger.default.warn('Invalid metric name received. Rejecting request to submit metric.', {
304
421
  file: _constants.METRIC_FILE,
305
- method: this.submitMediaMetric.name
422
+ method: 'submitMediaMetric'
306
423
  });
307
424
  break;
308
425
  }
@@ -324,36 +441,36 @@ var MetricManager = /*#__PURE__*/function () {
324
441
  value: function submitVoicemailMetric(name, metricAction, type, messageId, voicemailError, statusCode) {
325
442
  var data;
326
443
  switch (name) {
327
- case _types.METRIC_EVENT.VOICEMAIL:
444
+ case _types2.METRIC_EVENT.VOICEMAIL:
328
445
  {
329
- var _this$deviceInfo25, _this$deviceInfo25$de, _this$deviceInfo26, _this$deviceInfo26$de;
446
+ var _this$deviceInfo32, _this$deviceInfo32$de, _this$deviceInfo33, _this$deviceInfo33$de;
330
447
  data = {
331
448
  tags: {
332
449
  action: metricAction,
333
- device_id: (_this$deviceInfo25 = this.deviceInfo) === null || _this$deviceInfo25 === void 0 ? void 0 : (_this$deviceInfo25$de = _this$deviceInfo25.device) === null || _this$deviceInfo25$de === void 0 ? void 0 : _this$deviceInfo25$de.deviceId,
450
+ device_id: (_this$deviceInfo32 = this.deviceInfo) === null || _this$deviceInfo32 === void 0 ? void 0 : (_this$deviceInfo32$de = _this$deviceInfo32.device) === null || _this$deviceInfo32$de === void 0 ? void 0 : _this$deviceInfo32$de.deviceId,
334
451
  message_id: messageId
335
452
  },
336
453
  fields: {
337
- device_url: (_this$deviceInfo26 = this.deviceInfo) === null || _this$deviceInfo26 === void 0 ? void 0 : (_this$deviceInfo26$de = _this$deviceInfo26.device) === null || _this$deviceInfo26$de === void 0 ? void 0 : _this$deviceInfo26$de.clientDeviceUri,
454
+ device_url: (_this$deviceInfo33 = this.deviceInfo) === null || _this$deviceInfo33 === void 0 ? void 0 : (_this$deviceInfo33$de = _this$deviceInfo33.device) === null || _this$deviceInfo33$de === void 0 ? void 0 : _this$deviceInfo33$de.clientDeviceUri,
338
455
  calling_sdk_version: typeof process !== 'undefined' && process.env.CALLING_SDK_VERSION ? process.env.CALLING_SDK_VERSION : _constants.VERSION
339
456
  },
340
457
  type: type
341
458
  };
342
459
  break;
343
460
  }
344
- case _types.METRIC_EVENT.VOICEMAIL_ERROR:
461
+ case _types2.METRIC_EVENT.VOICEMAIL_ERROR:
345
462
  {
346
- var _this$deviceInfo27, _this$deviceInfo27$de, _this$deviceInfo28, _this$deviceInfo28$de;
463
+ var _this$deviceInfo34, _this$deviceInfo34$de, _this$deviceInfo35, _this$deviceInfo35$de;
347
464
  data = {
348
465
  tags: {
349
466
  action: metricAction,
350
- device_id: (_this$deviceInfo27 = this.deviceInfo) === null || _this$deviceInfo27 === void 0 ? void 0 : (_this$deviceInfo27$de = _this$deviceInfo27.device) === null || _this$deviceInfo27$de === void 0 ? void 0 : _this$deviceInfo27$de.deviceId,
467
+ device_id: (_this$deviceInfo34 = this.deviceInfo) === null || _this$deviceInfo34 === void 0 ? void 0 : (_this$deviceInfo34$de = _this$deviceInfo34.device) === null || _this$deviceInfo34$de === void 0 ? void 0 : _this$deviceInfo34$de.deviceId,
351
468
  message_id: messageId,
352
469
  error: voicemailError,
353
470
  status_code: statusCode
354
471
  },
355
472
  fields: {
356
- device_url: (_this$deviceInfo28 = this.deviceInfo) === null || _this$deviceInfo28 === void 0 ? void 0 : (_this$deviceInfo28$de = _this$deviceInfo28.device) === null || _this$deviceInfo28$de === void 0 ? void 0 : _this$deviceInfo28$de.clientDeviceUri,
473
+ device_url: (_this$deviceInfo35 = this.deviceInfo) === null || _this$deviceInfo35 === void 0 ? void 0 : (_this$deviceInfo35$de = _this$deviceInfo35.device) === null || _this$deviceInfo35$de === void 0 ? void 0 : _this$deviceInfo35$de.clientDeviceUri,
357
474
  calling_sdk_version: typeof process !== 'undefined' && process.env.CALLING_SDK_VERSION ? process.env.CALLING_SDK_VERSION : _constants.VERSION
358
475
  },
359
476
  type: type
@@ -363,7 +480,7 @@ var MetricManager = /*#__PURE__*/function () {
363
480
  default:
364
481
  _Logger.default.warn('Invalid metric name received. Rejecting request to submit metric.', {
365
482
  file: _constants.METRIC_FILE,
366
- method: this.submitVoicemailMetric.name
483
+ method: 'submitVoicemailMetric'
367
484
  });
368
485
  break;
369
486
  }
@@ -375,16 +492,16 @@ var MetricManager = /*#__PURE__*/function () {
375
492
  key: "submitBNRMetric",
376
493
  value: function submitBNRMetric(name, type, callId, correlationId) {
377
494
  var data;
378
- if (name === _types.METRIC_EVENT.BNR_ENABLED || name === _types.METRIC_EVENT.BNR_DISABLED) {
379
- var _this$deviceInfo29, _this$deviceInfo29$de, _this$deviceInfo30, _this$deviceInfo30$de, _this$deviceInfo31, _this$deviceInfo31$de;
495
+ if (name === _types2.METRIC_EVENT.BNR_ENABLED || name === _types2.METRIC_EVENT.BNR_DISABLED) {
496
+ var _this$deviceInfo36, _this$deviceInfo36$de, _this$deviceInfo37, _this$deviceInfo37$de, _this$deviceInfo38, _this$deviceInfo38$de;
380
497
  data = {
381
498
  tags: {
382
- device_id: (_this$deviceInfo29 = this.deviceInfo) === null || _this$deviceInfo29 === void 0 ? void 0 : (_this$deviceInfo29$de = _this$deviceInfo29.device) === null || _this$deviceInfo29$de === void 0 ? void 0 : _this$deviceInfo29$de.deviceId,
499
+ device_id: (_this$deviceInfo36 = this.deviceInfo) === null || _this$deviceInfo36 === void 0 ? void 0 : (_this$deviceInfo36$de = _this$deviceInfo36.device) === null || _this$deviceInfo36$de === void 0 ? void 0 : _this$deviceInfo36$de.deviceId,
383
500
  service_indicator: this.serviceIndicator
384
501
  },
385
502
  fields: {
386
- device_url: (_this$deviceInfo30 = this.deviceInfo) === null || _this$deviceInfo30 === void 0 ? void 0 : (_this$deviceInfo30$de = _this$deviceInfo30.device) === null || _this$deviceInfo30$de === void 0 ? void 0 : _this$deviceInfo30$de.clientDeviceUri,
387
- mobius_url: (_this$deviceInfo31 = this.deviceInfo) === null || _this$deviceInfo31 === void 0 ? void 0 : (_this$deviceInfo31$de = _this$deviceInfo31.device) === null || _this$deviceInfo31$de === void 0 ? void 0 : _this$deviceInfo31$de.uri,
503
+ device_url: (_this$deviceInfo37 = this.deviceInfo) === null || _this$deviceInfo37 === void 0 ? void 0 : (_this$deviceInfo37$de = _this$deviceInfo37.device) === null || _this$deviceInfo37$de === void 0 ? void 0 : _this$deviceInfo37$de.clientDeviceUri,
504
+ mobius_url: (_this$deviceInfo38 = this.deviceInfo) === null || _this$deviceInfo38 === void 0 ? void 0 : (_this$deviceInfo38$de = _this$deviceInfo38.device) === null || _this$deviceInfo38$de === void 0 ? void 0 : _this$deviceInfo38$de.uri,
388
505
  calling_sdk_version: process.env.CALLING_SDK_VERSION || _constants.VERSION,
389
506
  call_id: callId,
390
507
  correlation_id: correlationId
@@ -394,7 +511,7 @@ var MetricManager = /*#__PURE__*/function () {
394
511
  } else {
395
512
  _Logger.default.warn('Invalid metric name received. Rejecting request to submit metric.', {
396
513
  file: _constants.METRIC_FILE,
397
- method: this.submitBNRMetric.name
514
+ method: 'submitBNRMetric'
398
515
  });
399
516
  }
400
517
  if (data) {