@onereach/step-voice 6.1.26-VOIC1449.6 → 6.1.26-VOIC1449.8

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
@@ -77,7 +77,7 @@ class Transfer extends voice_1.default {
77
77
  timeout
78
78
  }
79
79
  };
80
- this.log.debug('transfer otherwise', {
80
+ console.log('transfer otherwise', {
81
81
  data: { ...this.data },
82
82
  headers,
83
83
  command
@@ -24,7 +24,7 @@ class WaitForCall extends voice_1.default {
24
24
  async onCall(event) {
25
25
  const { asr, tts, endOfInputTimeout } = this.data;
26
26
  this.log.debug('ON_CALL_X', event);
27
- console.log('ON_CALL_X', event);
27
+ console.log('ON_CALL_X', { event });
28
28
  const call = {
29
29
  headers: event.params.headers,
30
30
  // @ts-expect-error
@@ -38,15 +38,20 @@ class WaitForCall extends voice_1.default {
38
38
  delete call.from;
39
39
  delete call.to;
40
40
  const presetTime = (Number(endOfInputTimeout) || 0) * 60 * 1000;
41
- const beginningSessionId = event?.reporting?.beginningSessionId;
41
+ const { sessionId: previousSessionId = '', beginningSessionId = '', } = event?.reporting ?? {};
42
42
  await this.session.start({
43
43
  timeout: presetTime || defaultSessionTimeout,
44
44
  reporting: {
45
45
  settingsKey: 'session',
46
46
  startedBy: 'Visitor',
47
47
  sessionType: 'Phone',
48
+ previousSessionId,
48
49
  beginningSessionId
49
- }
50
+ },
51
+ reportingSessions: [{
52
+ previousSessionId,
53
+ beginningSessionId
54
+ }]
50
55
  });
51
56
  await this.startConversation(call);
52
57
  await this.transcript(call, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "6.1.26-VOIC1449.6",
3
+ "version": "6.1.26-VOIC1449.8",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",