@onereach/step-voice 7.0.18-VOIC1641.7 → 7.0.18-development.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.
package/dst/Transfer.js CHANGED
@@ -61,31 +61,7 @@ class Transfer extends voice_1.default {
61
61
  const headers = Object.fromEntries(sipHeaders.map(({ name, value }) => [name, value]));
62
62
  // When replaces is enabled, fetch the customer call and use its ID as transferTo
63
63
  let finalTransferTo = destination;
64
- let additionalInfoForAttendedTransfer = {};
65
64
  if (refer && withReplaces && replacesConversation) {
66
- if (this.cache) {
67
- this.log.error({
68
- fromCache: {
69
- toCallId: this.cache['toCallId'],
70
- toTag: this.cache['toTag'],
71
- fromTag: this.cache['fromTag'],
72
- toUri: this.cache['toUri'],
73
- },
74
- fromCall: {
75
- toCallId: call['toCallId'],
76
- toTag: call['toTag'],
77
- fromTag: call['fromTag'],
78
- toUri: call['toUri'],
79
- },
80
- call,
81
- }, '[WHISPER] Replaces enabled, fetching customer call for transfer');
82
- additionalInfoForAttendedTransfer = {
83
- toCallId: this.cache['toCallId'],
84
- toTag: this.cache['toTag'],
85
- fromTag: this.cache['fromTag'],
86
- toUri: this.cache['toUri'],
87
- };
88
- }
89
65
  const customerCall = replacesConversationThread
90
66
  ? await this.process.getSafeThread(replacesConversationThread).get(replacesConversation)
91
67
  : await this.getConversationByName(replacesConversation);
@@ -118,8 +94,7 @@ class Transfer extends voice_1.default {
118
94
  gateway,
119
95
  timeout,
120
96
  maxLoops: this.session.data?.loopPrevention?.enabled ? this.session.data.loopPrevention.maxLoops : undefined,
121
- withReplaces,
122
- ...additionalInfoForAttendedTransfer,
97
+ withReplaces
123
98
  }
124
99
  };
125
100
  const muteAfterTransfer = !!muteRecording;
package/dst/step.js CHANGED
@@ -60,7 +60,6 @@ class ConvStep extends step_1.default {
60
60
  throw new Error(`missing conversation cache in state ${this.state.name}`);
61
61
  // console.log('UPDATE', this.conversation, this.thread.id, this.step.label, this.convDataCache?._conv.que)
62
62
  const convDataThread = this.process.getSafeThread(this.dataThreadId);
63
- this.log.error({ conversation: this.conversation, thread: this.thread.id, step: this.step.label, convDataCache: this.convDataCache }, 'Updating conversation data');
64
63
  await convDataThread.set(this.conversation, this.convDataCache);
65
64
  }
66
65
  async hasConversation() {
@@ -158,7 +157,6 @@ class ConvStep extends step_1.default {
158
157
  const convDataThread = this.process.getSafeThread(this.dataThreadId);
159
158
  this.convDataCache = await convDataThread.get(this.conversation);
160
159
  // console.log('FETCH', this.conversation, this.thread.id, this.step.label, this.convDataCache?._conv.que)
161
- this.log.error({ conversation: this.conversation, thread: this.thread.id, step: this.step.label, convDataCache: this.convDataCache }, 'Fetched conversation data');
162
160
  return this.convDataCache;
163
161
  }
164
162
  _clearCache() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.18-VOIC1641.7",
3
+ "version": "7.0.18-development.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",