@voicenter-team/events-sdk 0.0.65 → 0.0.66

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.
@@ -5115,13 +5115,13 @@ class ce {
5115
5115
  ...i,
5116
5116
  currentCall: o ? {
5117
5117
  ...o,
5118
- duration: Date.now() - ((o == null ? void 0 : o.callAnswered_UTC_CLIENT) ?? 0)
5118
+ duration: o.callAnswered_UTC_CLIENT ? Date.now() - o.callAnswered_UTC_CLIENT : 0
5119
5119
  } : void 0,
5120
5120
  calls: (u = e.data.calls) == null ? void 0 : u.map((d) => {
5121
5121
  const c = this.mapExtensionCall(e, d);
5122
5122
  return {
5123
5123
  ...c,
5124
- duration: Date.now() - (c.callAnswered_UTC_CLIENT ?? 0)
5124
+ duration: c.callAnswered_UTC_CLIENT ? Date.now() - c.callAnswered_UTC_CLIENT : 0
5125
5125
  };
5126
5126
  })
5127
5127
  }