@pega/cosmos-react-demos 4.0.0-dev.10.1 → 4.0.0-dev.11.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/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +0 -2
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -2
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx +3 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +1 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +14 -392
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +518 -583
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +13 -17
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +167 -188
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +9 -7
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +1 -4
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +3 -6
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +1 -0
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +4 -4
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +0 -2
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +0 -2
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js +3 -1
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js +1 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +14 -392
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +518 -583
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +14 -24
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +177 -173
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +9 -7
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +1 -2
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js +4 -5
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +1 -0
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +4 -4
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/package.json +9 -9
- package/jsx/social/Chat/RepeatingView.mocks.d.ts +0 -14
- package/jsx/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
- package/jsx/social/Chat/RepeatingView.mocks.js +0 -11
- package/jsx/social/Chat/RepeatingView.mocks.js.map +0 -1
- package/jsx/social/Chat/RepeatingView.stories.d.ts +0 -9
- package/jsx/social/Chat/RepeatingView.stories.d.ts.map +0 -1
- package/jsx/social/Chat/RepeatingView.stories.jsx +0 -60
- package/jsx/social/Chat/RepeatingView.stories.jsx.map +0 -1
- package/jsx/social/Chat/RepeatingView.styles.d.ts +0 -2
- package/jsx/social/Chat/RepeatingView.styles.d.ts.map +0 -1
- package/jsx/social/Chat/RepeatingView.styles.js +0 -22
- package/jsx/social/Chat/RepeatingView.styles.js.map +0 -1
- package/lib/social/Chat/RepeatingView.mocks.d.ts +0 -14
- package/lib/social/Chat/RepeatingView.mocks.d.ts.map +0 -1
- package/lib/social/Chat/RepeatingView.mocks.js +0 -11
- package/lib/social/Chat/RepeatingView.mocks.js.map +0 -1
- package/lib/social/Chat/RepeatingView.stories.d.ts +0 -9
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +0 -1
- package/lib/social/Chat/RepeatingView.stories.js +0 -59
- package/lib/social/Chat/RepeatingView.stories.js.map +0 -1
- package/lib/social/Chat/RepeatingView.styles.d.ts +0 -2
- package/lib/social/Chat/RepeatingView.styles.d.ts.map +0 -1
- package/lib/social/Chat/RepeatingView.styles.js +0 -22
- package/lib/social/Chat/RepeatingView.styles.js.map +0 -1
|
@@ -1,606 +1,541 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
timeStamp: '01:21 PM',
|
|
20
|
-
variant: 'user',
|
|
21
|
-
message: 'Policy details',
|
|
22
|
-
avatarInfo: {
|
|
23
|
-
name: 'Sara Davis'
|
|
24
|
-
},
|
|
25
|
-
messagePrivacy: {
|
|
26
|
-
privacy: 'PUBLIC TWEET'
|
|
27
|
-
},
|
|
28
|
-
ariaLabel: 'Sara Davis said Policy details at 01:21 PM via Public Tweet'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: '4750473261',
|
|
32
|
-
type: 'transcript',
|
|
33
|
-
timeStamp: '01:22 PM',
|
|
34
|
-
variant: 'bot',
|
|
35
|
-
message: 'Please select what would you like to know about your policy. 😃😃',
|
|
36
|
-
ariaLabel: 'Bot said Please select what would you like to know about your policy. at 01:22 PM'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: '925521127',
|
|
40
|
-
type: 'transcript',
|
|
41
|
-
timeStamp: '01:23 PM',
|
|
42
|
-
variant: 'user',
|
|
43
|
-
message: 'Policy terms and conditions',
|
|
44
|
-
messagePrivacy: {
|
|
45
|
-
privacy: 'PUBLIC TWEET'
|
|
46
|
-
},
|
|
47
|
-
avatarInfo: {
|
|
48
|
-
name: 'Sara Davis'
|
|
49
|
-
},
|
|
50
|
-
ariaLabel: 'Sara Davis said Policy terms and conditions at 01:23 PM'
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: 'preChatTranscript',
|
|
56
|
-
title: 'Questionnaire',
|
|
57
|
-
earlierTranscripts: false,
|
|
58
|
-
data: [
|
|
59
|
-
{
|
|
60
|
-
id: '1457969897',
|
|
61
|
-
type: 'transcript',
|
|
62
|
-
timeStamp: '01:23 PM',
|
|
63
|
-
variant: 'question',
|
|
64
|
-
message: 'Could you please enter your query',
|
|
65
|
-
ariaLabel: 'Customer was asked for Could you please enter your query at 01:23 PM'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: '4633052071',
|
|
69
|
-
type: 'transcript',
|
|
70
|
-
timeStamp: '01:23 PM',
|
|
71
|
-
variant: 'user',
|
|
72
|
-
message: 'I would like to know my policy terms and conditions',
|
|
73
|
-
avatarInfo: {
|
|
74
|
-
name: 'Sara Davis'
|
|
75
|
-
},
|
|
76
|
-
ariaLabel: 'Sara Davis said I would like to know my policy terms and conditions at 01:23 PM'
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: '3105885518',
|
|
80
|
-
type: 'transcript',
|
|
81
|
-
timeStamp: '01:23 PM',
|
|
82
|
-
variant: 'question',
|
|
83
|
-
message: 'Could you please select the policy',
|
|
84
|
-
ariaLabel: 'Customer was asked for Could you please select the policy at 01:23 PM'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
id: '3008407298',
|
|
88
|
-
type: 'transcript',
|
|
89
|
-
timeStamp: '01:23 PM',
|
|
90
|
-
variant: 'user',
|
|
91
|
-
message: 'Insurance policy - 5545456668555',
|
|
92
|
-
messagePrivacy: {
|
|
93
|
-
privacy: 'PUBLIC TWEET'
|
|
94
|
-
},
|
|
95
|
-
avatarInfo: {
|
|
96
|
-
name: 'Sara Davis'
|
|
97
|
-
},
|
|
98
|
-
ariaLabel: 'Sara Davis said Insurance policy - 5545456668555 at 01:23 PM via Public Tweet'
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: '4700050925',
|
|
102
|
-
type: 'system',
|
|
103
|
-
message: 'Chat escalated to live agent',
|
|
104
|
-
timeStamp: '01:23 PM'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
id: '3608004939',
|
|
108
|
-
type: 'system',
|
|
109
|
-
message: 'Agent Fred joined the chat',
|
|
110
|
-
timeStamp: '01:24 PM'
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
id: 'csrTranscript',
|
|
116
|
-
earlierTranscripts: false,
|
|
117
|
-
title: 'Transcripts: Agent Fred and Jim',
|
|
118
|
-
data: [
|
|
119
|
-
{
|
|
120
|
-
id: '4713954822',
|
|
121
|
-
type: 'transcript',
|
|
122
|
-
timeStamp: '01:24 PM',
|
|
123
|
-
messagePrivacy: {
|
|
124
|
-
privacy: 'PUBLIC TWEET'
|
|
125
|
-
},
|
|
126
|
-
variant: 'user',
|
|
127
|
-
message: 'Hello, Welcome to U-Plus. How can I help you?',
|
|
128
|
-
avatarInfo: {
|
|
129
|
-
name: 'Jim'
|
|
130
|
-
},
|
|
131
|
-
ariaLabel: 'Jim said Hello, Welcome to U-Plus. How can I help you? at 01:24 PM via Public Tweet'
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: '2582654831',
|
|
135
|
-
type: 'transcript',
|
|
136
|
-
timeStamp: '01:25 PM',
|
|
137
|
-
variant: 'user',
|
|
138
|
-
message: 'Hi, I would like to know my policy terms and condition',
|
|
139
|
-
avatarInfo: {
|
|
140
|
-
name: 'Sara Davis'
|
|
141
|
-
},
|
|
142
|
-
ariaLabel: 'Sara Davis said Hi, I would like to know my policy terms and condition at 01:25 PM'
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: '4422603601',
|
|
146
|
-
type: 'transcript',
|
|
147
|
-
timeStamp: '01:26 PM',
|
|
148
|
-
messagePrivacy: {
|
|
149
|
-
privacy: 'PUBLIC TWEET'
|
|
150
|
-
},
|
|
151
|
-
variant: 'user',
|
|
152
|
-
message: 'You can refer this article to know more',
|
|
153
|
-
avatarInfo: {
|
|
154
|
-
name: 'Jim'
|
|
155
|
-
},
|
|
156
|
-
ariaLabel: 'Jim said You can refer this article to know more at 01:26 PM via Public Tweet'
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: '973978246',
|
|
160
|
-
type: 'system',
|
|
161
|
-
message: 'Customer opened knowledge article',
|
|
162
|
-
timeStamp: '01:26 PM'
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
id: '44764769',
|
|
166
|
-
type: 'transcript',
|
|
167
|
-
timeStamp: '01:26 PM',
|
|
168
|
-
variant: 'user',
|
|
169
|
-
message: 'Also I would like to know my policy validity',
|
|
170
|
-
avatarInfo: {
|
|
171
|
-
name: 'Sara Davis'
|
|
172
|
-
},
|
|
173
|
-
ariaLabel: 'Sara Davis said Also I would like to know my policy validity at 01:26 PM'
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
id: '1052005901',
|
|
177
|
-
type: 'transcript',
|
|
178
|
-
timeStamp: '01:27 PM',
|
|
179
|
-
variant: 'user',
|
|
180
|
-
message: 'Is that fine if I can transfer your chat to serve better? ',
|
|
181
|
-
avatarInfo: {
|
|
182
|
-
name: 'Jim'
|
|
183
|
-
},
|
|
184
|
-
ariaLabel: 'Jim said Is that fine if I can transfer your chat to serve better? at 01:27 PM'
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: '474082342',
|
|
188
|
-
type: 'transcript',
|
|
189
|
-
timeStamp: '01:27 PM',
|
|
190
|
-
variant: 'user',
|
|
191
|
-
message: 'Yeah Sure',
|
|
192
|
-
avatarInfo: {
|
|
193
|
-
name: 'Sara Davis'
|
|
194
|
-
},
|
|
195
|
-
ariaLabel: 'Sara Davis said Yeah Sure at 01:27 PM'
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: '2128368768',
|
|
199
|
-
type: 'system',
|
|
200
|
-
message: 'Chat has been transferred',
|
|
201
|
-
timeStamp: '01:27 PM'
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
participants: {
|
|
207
|
-
transcriptUser1: {
|
|
208
|
-
avatarInfo: {
|
|
209
|
-
name: 'Jim'
|
|
210
|
-
}
|
|
1
|
+
import { createUID } from '@pega/cosmos-react-core';
|
|
2
|
+
export const BotConversation = [
|
|
3
|
+
{
|
|
4
|
+
id: createUID(),
|
|
5
|
+
type: 'message',
|
|
6
|
+
senderType: 'bot',
|
|
7
|
+
direction: 'in',
|
|
8
|
+
senderId: 'bot1',
|
|
9
|
+
message: 'Hi, Welcome to u-plus. How can I help you ?',
|
|
10
|
+
timestamp: '1:44 PM'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: createUID(),
|
|
14
|
+
type: 'message',
|
|
15
|
+
senderType: 'customer',
|
|
16
|
+
direction: 'in',
|
|
17
|
+
avatarInfo: {
|
|
18
|
+
name: 'Ginger Ventura'
|
|
211
19
|
},
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
20
|
+
timestamp: '1:45 PM',
|
|
21
|
+
senderId: 'gingerVentura',
|
|
22
|
+
message: 'Hi, I would like to know the validity of my policy.'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: createUID(),
|
|
26
|
+
type: 'message',
|
|
27
|
+
senderType: 'bot',
|
|
28
|
+
direction: 'in',
|
|
29
|
+
senderId: 'bot1',
|
|
30
|
+
message: 'You have two policies.'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: createUID(),
|
|
34
|
+
type: 'message',
|
|
35
|
+
senderType: 'bot',
|
|
36
|
+
direction: 'in',
|
|
37
|
+
senderId: 'bot1',
|
|
38
|
+
message: '1457589, 1473284.'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: createUID(),
|
|
42
|
+
type: 'message',
|
|
43
|
+
senderType: 'bot',
|
|
44
|
+
direction: 'in',
|
|
45
|
+
senderId: 'bot1',
|
|
46
|
+
message: 'Which among these policies do you want to know the validity of?',
|
|
47
|
+
timestamp: '1:45 PM'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: createUID(),
|
|
51
|
+
type: 'message',
|
|
52
|
+
senderType: 'customer',
|
|
53
|
+
direction: 'in',
|
|
54
|
+
avatarInfo: {
|
|
55
|
+
name: 'Ginger Ventura'
|
|
216
56
|
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
57
|
+
timestamp: '1:47 PM',
|
|
58
|
+
senderId: 'gingerVentura',
|
|
59
|
+
message: 'Please give me validity of policy with number 1457589.'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: createUID(),
|
|
63
|
+
type: 'message',
|
|
64
|
+
senderType: 'bot',
|
|
65
|
+
direction: 'in',
|
|
66
|
+
senderId: 'bot1',
|
|
67
|
+
timestamp: '1:48 PM',
|
|
68
|
+
message: 'Policy with number 1457589 is expiring on 12th December, 2023.'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: createUID(),
|
|
72
|
+
type: 'message',
|
|
73
|
+
senderType: 'bot',
|
|
74
|
+
direction: 'in',
|
|
75
|
+
senderId: 'bot1',
|
|
76
|
+
timestamp: '1:49 PM',
|
|
77
|
+
message: 'Is there anything else that you need help with?'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: createUID(),
|
|
81
|
+
type: 'message',
|
|
82
|
+
senderType: 'customer',
|
|
83
|
+
direction: 'in',
|
|
84
|
+
avatarInfo: {
|
|
85
|
+
name: 'Ginger Ventura'
|
|
223
86
|
},
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
87
|
+
timestamp: '1:51 PM',
|
|
88
|
+
senderId: 'gingerVentura',
|
|
89
|
+
message: 'Yes, I would like to know about the claims process.'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: createUID(),
|
|
93
|
+
type: 'message',
|
|
94
|
+
senderType: 'bot',
|
|
95
|
+
direction: 'in',
|
|
96
|
+
senderId: 'bot1',
|
|
97
|
+
timestamp: '1:52 PM',
|
|
98
|
+
message: 'Sure, I am transferring this chat to the concerned department.'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: createUID(),
|
|
102
|
+
type: 'system',
|
|
103
|
+
timestamp: '1:52 PM',
|
|
104
|
+
message: 'Chat routed to a live agent.'
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
export const ClaimsAgentConversation = [
|
|
108
|
+
{
|
|
109
|
+
id: createUID(),
|
|
110
|
+
type: 'system',
|
|
111
|
+
timestamp: '1:54 PM',
|
|
112
|
+
message: 'John Brown joined this conversation'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: createUID(),
|
|
116
|
+
type: 'message',
|
|
117
|
+
senderType: 'agent',
|
|
118
|
+
direction: 'in',
|
|
119
|
+
avatarInfo: {
|
|
120
|
+
name: 'John Brown'
|
|
227
121
|
},
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
122
|
+
senderId: 'agent1',
|
|
123
|
+
message: 'Hi Ginger Ventura, I see that you want to know about the claims process.'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: createUID(),
|
|
127
|
+
type: 'message',
|
|
128
|
+
senderType: 'agent',
|
|
129
|
+
direction: 'in',
|
|
130
|
+
avatarInfo: {
|
|
131
|
+
name: 'John Brown'
|
|
234
132
|
},
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
133
|
+
senderId: 'agent1',
|
|
134
|
+
message: 'Please go to link to get detailed information about claims process.',
|
|
135
|
+
timestamp: '1:55 PM',
|
|
136
|
+
mediaPageLinks: [
|
|
137
|
+
{
|
|
138
|
+
id: createUID(),
|
|
139
|
+
href: 'https://collaborate.pega.com/',
|
|
140
|
+
thumbnail: 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',
|
|
141
|
+
title: 'UPlus - Claims process'
|
|
241
142
|
}
|
|
242
|
-
|
|
143
|
+
]
|
|
243
144
|
},
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
145
|
+
{
|
|
146
|
+
id: createUID(),
|
|
147
|
+
type: 'system',
|
|
148
|
+
timestamp: '1:56 PM',
|
|
149
|
+
message: 'Vernon Lee joined this conversation'
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: createUID(),
|
|
153
|
+
type: 'message',
|
|
154
|
+
senderType: 'agent',
|
|
155
|
+
direction: 'in',
|
|
156
|
+
avatarInfo: {
|
|
157
|
+
name: 'Vernon Lee'
|
|
250
158
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
attachments: [
|
|
263
|
-
{
|
|
264
|
-
id: '2499167340',
|
|
265
|
-
name: 'Location',
|
|
266
|
-
icon: 'document',
|
|
267
|
-
meta: 'PNG 0.1 MB',
|
|
268
|
-
thumbnail: 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
id: '2499167341',
|
|
272
|
-
name: 'FAQ with detailed terms and conditions of the policy',
|
|
273
|
-
icon: 'document-pdf',
|
|
274
|
-
meta: 'PDF 0.7 MB'
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
ariaLabel: 'John Brown said Hi, Welcome to u-plus. How can I help you ? at 1:44 PM with 2 attachments'
|
|
159
|
+
senderId: 'agent2',
|
|
160
|
+
message: 'Hi Ginger Ventura, I am the supervisor. You may also contact the nearest branch for a physical copy of the claims process.',
|
|
161
|
+
timestamp: '1:57 PM'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: createUID(),
|
|
165
|
+
type: 'message',
|
|
166
|
+
senderType: 'customer',
|
|
167
|
+
direction: 'in',
|
|
168
|
+
avatarInfo: {
|
|
169
|
+
name: 'Ginger Ventura'
|
|
278
170
|
},
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
{
|
|
291
|
-
id: '2499167349',
|
|
292
|
-
href: 'https://collaborate.pega.com/',
|
|
293
|
-
thumbnail: 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',
|
|
294
|
-
title: 'Ask the expert'
|
|
295
|
-
}
|
|
296
|
-
],
|
|
297
|
-
ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'
|
|
171
|
+
timestamp: '1:57 PM',
|
|
172
|
+
senderId: 'gingerVentura',
|
|
173
|
+
message: 'Thanks for the information. I would also like to update the mobile number of my policy.'
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: createUID(),
|
|
177
|
+
type: 'message',
|
|
178
|
+
senderType: 'agent',
|
|
179
|
+
direction: 'in',
|
|
180
|
+
avatarInfo: {
|
|
181
|
+
name: 'John Brown'
|
|
298
182
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
183
|
+
senderId: 'agent1',
|
|
184
|
+
message: 'Sure, I need to transfer you to a specialist to get you the needed help.',
|
|
185
|
+
timestamp: '1:58 PM'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: createUID(),
|
|
189
|
+
type: 'message',
|
|
190
|
+
senderType: 'customer',
|
|
191
|
+
direction: 'in',
|
|
192
|
+
avatarInfo: {
|
|
193
|
+
name: 'Ginger Ventura'
|
|
310
194
|
},
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
195
|
+
timestamp: '1:58 PM',
|
|
196
|
+
senderId: 'gingerVentura',
|
|
197
|
+
message: 'Okay.'
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: createUID(),
|
|
201
|
+
type: 'system',
|
|
202
|
+
timestamp: '1:59 PM',
|
|
203
|
+
message: 'Transfer request initiated'
|
|
204
|
+
}
|
|
205
|
+
];
|
|
206
|
+
export const LiveChatConversation = [
|
|
207
|
+
{
|
|
208
|
+
id: createUID(),
|
|
209
|
+
type: 'system',
|
|
210
|
+
timestamp: '2:01 PM',
|
|
211
|
+
message: 'Edward Green joined the conversation'
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: createUID(),
|
|
215
|
+
type: 'message',
|
|
216
|
+
senderType: 'agent',
|
|
217
|
+
direction: 'out',
|
|
218
|
+
avatarInfo: {
|
|
219
|
+
name: 'Edward green'
|
|
323
220
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
221
|
+
senderId: 'agent3',
|
|
222
|
+
message: 'Hi Ginger Ventura, Please provide your phone number that needs to be updated.',
|
|
223
|
+
timestamp: '2:02PM'
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: createUID(),
|
|
227
|
+
type: 'message',
|
|
228
|
+
senderType: 'customer',
|
|
229
|
+
direction: 'in',
|
|
230
|
+
avatarInfo: {
|
|
231
|
+
name: 'Ginger Ventura'
|
|
328
232
|
},
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
ariaLabel: 'Pegasystems said Great, our CSR will help you with that at 1:46 PM'
|
|
233
|
+
timestamp: '2:03 PM',
|
|
234
|
+
senderId: 'gingerVentura',
|
|
235
|
+
message: 'Please update the policy with 9812764132.'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: createUID(),
|
|
239
|
+
type: 'message',
|
|
240
|
+
senderType: 'agent',
|
|
241
|
+
direction: 'out',
|
|
242
|
+
avatarInfo: {
|
|
243
|
+
name: 'Edward green'
|
|
341
244
|
},
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
timeStamp: '1:48 PM',
|
|
353
|
-
status: 'delivered',
|
|
354
|
-
ariaLabel: 'John Brown said Sure at 1:48 PM via Public Tweet'
|
|
245
|
+
senderId: 'agent3',
|
|
246
|
+
message: 'Your mobile number is updated successfully.'
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: createUID(),
|
|
250
|
+
type: 'message',
|
|
251
|
+
senderType: 'agent',
|
|
252
|
+
direction: 'out',
|
|
253
|
+
avatarInfo: {
|
|
254
|
+
name: 'Edward green'
|
|
355
255
|
},
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
],
|
|
375
|
-
ariaLabel: 'Pegasystems said Carry on at 1:49 PM with 1 attachment'
|
|
256
|
+
senderId: 'agent3',
|
|
257
|
+
message: 'This number will be used for all communcation regarding your policy',
|
|
258
|
+
timestamp: '2:05 PM',
|
|
259
|
+
status: 'delivered'
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: createUID(),
|
|
263
|
+
type: 'system',
|
|
264
|
+
timestamp: '2:04 PM',
|
|
265
|
+
message: 'Vernon Lee joined this conversation'
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: createUID(),
|
|
269
|
+
type: 'message',
|
|
270
|
+
senderType: 'agent',
|
|
271
|
+
direction: 'in',
|
|
272
|
+
avatarInfo: {
|
|
273
|
+
name: 'Vernon Lee'
|
|
376
274
|
},
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
275
|
+
senderId: 'agent2',
|
|
276
|
+
message: 'Please download the updated policy',
|
|
277
|
+
attachments: [
|
|
278
|
+
{
|
|
279
|
+
id: createUID(),
|
|
280
|
+
name: 'Policy',
|
|
281
|
+
icon: 'document-pdf',
|
|
282
|
+
meta: 'PDF 1.2 MB',
|
|
283
|
+
thumbnail: 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'
|
|
386
284
|
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
ariaLabel: 'Pegasystems said Refer these documents for more FAQ at 1:49 PM with 2 attachments via Public Tweet'
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
id: '2549273884',
|
|
407
|
-
type: 'system',
|
|
408
|
-
message: 'Pegasystems has left'
|
|
285
|
+
{
|
|
286
|
+
id: createUID(),
|
|
287
|
+
name: 'FAQ with detailed terms and conditions of the policy',
|
|
288
|
+
icon: 'document-pdf',
|
|
289
|
+
meta: 'PDF 0.7 MB'
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
timestamp: '2:05 PM'
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
id: createUID(),
|
|
296
|
+
type: 'message',
|
|
297
|
+
senderType: 'customer',
|
|
298
|
+
direction: 'in',
|
|
299
|
+
avatarInfo: {
|
|
300
|
+
name: 'Ginger Ventura'
|
|
409
301
|
},
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
id: '2499167347',
|
|
424
|
-
name: 'Security policy',
|
|
425
|
-
icon: 'document-pdf',
|
|
426
|
-
meta: 'PDF 6.1 MB'
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
ariaLabel: 'John Brown said Could you please help me with your account num at 1:50 PM with 1 attachment via Public Tweet'
|
|
302
|
+
timestamp: '2:06 PM',
|
|
303
|
+
senderId: 'gingerVentura',
|
|
304
|
+
message: 'Thank you'
|
|
305
|
+
}
|
|
306
|
+
];
|
|
307
|
+
export const SimulatedConversation = [
|
|
308
|
+
{
|
|
309
|
+
id: createUID(),
|
|
310
|
+
type: 'message',
|
|
311
|
+
senderType: 'agent',
|
|
312
|
+
direction: 'out',
|
|
313
|
+
avatarInfo: {
|
|
314
|
+
name: 'Edward green'
|
|
430
315
|
},
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
316
|
+
senderId: 'agent3',
|
|
317
|
+
message: 'You are welcome, Is there anything else you need help with?',
|
|
318
|
+
timestamp: '2:07 PM'
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
id: createUID(),
|
|
322
|
+
type: 'message',
|
|
323
|
+
senderType: 'customer',
|
|
324
|
+
direction: 'in',
|
|
325
|
+
avatarInfo: {
|
|
326
|
+
name: 'Ginger Ventura'
|
|
441
327
|
},
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
id: '2499167348',
|
|
454
|
-
name: 'Vehicle insurance',
|
|
455
|
-
icon: 'document-doc',
|
|
456
|
-
meta: 'WORD 1.1 MB'
|
|
457
|
-
}
|
|
458
|
-
],
|
|
459
|
-
ariaLabel: 'Sara Davis said 5588-8899-45-89 at 1:50 PM with 1 attachment'
|
|
328
|
+
timestamp: '2:09 PM',
|
|
329
|
+
senderId: 'gingerVentura',
|
|
330
|
+
message: 'Can you please let me know the information about the newly launched policies?'
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
id: createUID(),
|
|
334
|
+
type: 'message',
|
|
335
|
+
senderType: 'agent',
|
|
336
|
+
direction: 'out',
|
|
337
|
+
avatarInfo: {
|
|
338
|
+
name: 'Edward green'
|
|
460
339
|
},
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
ariaLabel: 'John Brown said Let me pick your details '
|
|
340
|
+
senderId: 'agent3',
|
|
341
|
+
message: 'We have new plans in term insurance and health insurance.'
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: createUID(),
|
|
345
|
+
type: 'message',
|
|
346
|
+
senderType: 'agent',
|
|
347
|
+
direction: 'out',
|
|
348
|
+
avatarInfo: {
|
|
349
|
+
name: 'Edward green'
|
|
472
350
|
},
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
351
|
+
senderId: 'agent3',
|
|
352
|
+
message: 'Do you want me to share the information on both?',
|
|
353
|
+
timestamp: '2:10 PM'
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: createUID(),
|
|
357
|
+
type: 'message',
|
|
358
|
+
senderType: 'customer',
|
|
359
|
+
direction: 'in',
|
|
360
|
+
avatarInfo: {
|
|
361
|
+
name: 'Ginger Ventura'
|
|
484
362
|
},
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
ariaLabel: 'Sara Davis said Sure at 1:51 PM'
|
|
363
|
+
senderId: 'gingerVentura',
|
|
364
|
+
message: 'Yes, please.'
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
id: createUID(),
|
|
368
|
+
type: 'message',
|
|
369
|
+
senderType: 'customer',
|
|
370
|
+
direction: 'in',
|
|
371
|
+
avatarInfo: {
|
|
372
|
+
name: 'Ginger Ventura'
|
|
496
373
|
},
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
374
|
+
senderId: 'gingerVentura',
|
|
375
|
+
message: 'I am also interested in knowing endowment plans as well.',
|
|
376
|
+
timestamp: '2:11 PM'
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
id: createUID(),
|
|
380
|
+
type: 'message',
|
|
381
|
+
senderType: 'agent',
|
|
382
|
+
direction: 'out',
|
|
383
|
+
avatarInfo: {
|
|
384
|
+
name: 'Edward green'
|
|
508
385
|
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
386
|
+
senderId: 'agent3',
|
|
387
|
+
message: 'Okay, Let me find the relevant information for you.',
|
|
388
|
+
timestamp: '2:12 PM'
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
id: createUID(),
|
|
392
|
+
type: 'message',
|
|
393
|
+
senderType: 'agent',
|
|
394
|
+
direction: 'in',
|
|
395
|
+
avatarInfo: {
|
|
396
|
+
name: 'Vernon Lee'
|
|
513
397
|
},
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
398
|
+
senderId: 'agent2',
|
|
399
|
+
message: 'We have a newly launched pension plan as well. Would you be interested in it?',
|
|
400
|
+
timestamp: '2:12 PM'
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
id: createUID(),
|
|
404
|
+
type: 'message',
|
|
405
|
+
senderType: 'customer',
|
|
406
|
+
direction: 'in',
|
|
407
|
+
avatarInfo: {
|
|
408
|
+
name: 'Ginger Ventura'
|
|
522
409
|
},
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
410
|
+
senderId: 'gingerVentura',
|
|
411
|
+
message: 'I am not looking for a pension plan at the moment. However, share the details of this plan also.',
|
|
412
|
+
timestamp: '2:13 PM'
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
id: createUID(),
|
|
416
|
+
type: 'message',
|
|
417
|
+
senderType: 'agent',
|
|
418
|
+
direction: 'in',
|
|
419
|
+
avatarInfo: {
|
|
420
|
+
name: 'Vernon Lee'
|
|
527
421
|
},
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
422
|
+
senderId: 'agent2',
|
|
423
|
+
message: 'Sure, I share the details in a moment.',
|
|
424
|
+
timestamp: '2:14 PM'
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
id: createUID(),
|
|
428
|
+
type: 'message',
|
|
429
|
+
senderType: 'agent',
|
|
430
|
+
direction: 'out',
|
|
431
|
+
avatarInfo: {
|
|
432
|
+
name: 'Edward green'
|
|
536
433
|
},
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
434
|
+
senderId: 'agent3',
|
|
435
|
+
message: 'You can find details of the term insurance in this link',
|
|
436
|
+
mediaPageLinks: [
|
|
437
|
+
{
|
|
438
|
+
id: createUID(),
|
|
439
|
+
href: 'https://pegasystems.github.io/uplus-wss/insurance/index.html',
|
|
440
|
+
thumbnail: 'https://pegasystems.github.io/uplus-wss/insurance/img/offer-promo-1.jpg',
|
|
441
|
+
title: 'Ask the expert'
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: createUID(),
|
|
447
|
+
type: 'message',
|
|
448
|
+
senderType: 'agent',
|
|
449
|
+
direction: 'out',
|
|
450
|
+
avatarInfo: {
|
|
451
|
+
name: 'Edward green'
|
|
548
452
|
},
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
453
|
+
senderId: 'agent3',
|
|
454
|
+
message: 'Health insurance details can be found here',
|
|
455
|
+
mediaPageLinks: [
|
|
456
|
+
{
|
|
457
|
+
id: createUID(),
|
|
458
|
+
href: 'https://pegasystems.github.io/uplus-wss/insurance/offer.html',
|
|
459
|
+
thumbnail: 'https://pegasystems.github.io/uplus-wss/insurance/img/offer-main.jpg',
|
|
460
|
+
title: 'Ask the expert'
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
timestamp: '2:15 PM'
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
id: createUID(),
|
|
467
|
+
type: 'message',
|
|
468
|
+
senderType: 'agent',
|
|
469
|
+
direction: 'in',
|
|
470
|
+
avatarInfo: {
|
|
471
|
+
name: 'Vernon Lee'
|
|
557
472
|
},
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
473
|
+
senderId: 'agent2',
|
|
474
|
+
message: 'Visit this link for details on pension plan',
|
|
475
|
+
mediaPageLinks: [
|
|
476
|
+
{
|
|
477
|
+
id: createUID(),
|
|
478
|
+
href: 'https://pegasystems.github.io/uplus-wss/retail_bank/index.html',
|
|
479
|
+
thumbnail: 'https://pegasystems.github.io/uplus-wss/retail_bank/img/offer-main.jpg',
|
|
480
|
+
title: 'Ask the expert'
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
timestamp: '2:15 PM'
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
id: createUID(),
|
|
487
|
+
type: 'message',
|
|
488
|
+
senderType: 'agent',
|
|
489
|
+
direction: 'out',
|
|
490
|
+
avatarInfo: {
|
|
491
|
+
name: 'Edward green'
|
|
569
492
|
},
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
493
|
+
senderId: 'agent3',
|
|
494
|
+
message: 'Here are the details of endowment plans',
|
|
495
|
+
attachments: [
|
|
496
|
+
{
|
|
497
|
+
id: createUID(),
|
|
498
|
+
name: 'Policy',
|
|
499
|
+
icon: 'document-pdf',
|
|
500
|
+
meta: 'PDF 1.2 MB',
|
|
501
|
+
thumbnail: 'https://pegasystems.github.io/uplus-wss/health_provider/img/secondary-options.jpg'
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
timestamp: '2:16 PM'
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: createUID(),
|
|
508
|
+
type: 'message',
|
|
509
|
+
senderType: 'customer',
|
|
510
|
+
direction: 'in',
|
|
511
|
+
avatarInfo: {
|
|
512
|
+
name: 'Ginger Ventura'
|
|
579
513
|
},
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
514
|
+
senderId: 'gingerVentura',
|
|
515
|
+
message: 'Great, Thank you',
|
|
516
|
+
timestamp: '2:17 PM'
|
|
517
|
+
}
|
|
518
|
+
];
|
|
519
|
+
export const ChatMockData = {
|
|
520
|
+
chatMessages: SimulatedConversation,
|
|
586
521
|
defaultAttachments: [
|
|
587
522
|
{
|
|
588
|
-
id:
|
|
523
|
+
id: createUID(),
|
|
589
524
|
name: '03/2020 statement.pdf'
|
|
590
525
|
},
|
|
591
526
|
{
|
|
592
|
-
id:
|
|
527
|
+
id: createUID(),
|
|
593
528
|
name: 'Policy T&C.pdf'
|
|
594
529
|
}
|
|
595
530
|
],
|
|
596
531
|
suggestedReplies: [
|
|
597
532
|
{
|
|
598
|
-
id:
|
|
599
|
-
message: 'Hello, Good morning
|
|
533
|
+
id: createUID(),
|
|
534
|
+
message: 'Hello, Good morning Ginger Ventura. How can I help you today',
|
|
600
535
|
confidence: 94
|
|
601
536
|
},
|
|
602
537
|
{
|
|
603
|
-
id:
|
|
538
|
+
id: createUID(),
|
|
604
539
|
message: 'Sorry to hear that. I will surely help you resolve the issue. Can you please provide the policy id, so that I can get more details',
|
|
605
540
|
confidence: 75
|
|
606
541
|
}
|
|
@@ -667,7 +602,7 @@ export const phrasesDisplayNames = [
|
|
|
667
602
|
export const phrasesMessages = [
|
|
668
603
|
{
|
|
669
604
|
id: '1-1',
|
|
670
|
-
message: 'Ms.
|
|
605
|
+
message: 'Ms. Ginger ventura your account balance is $5226.32'
|
|
671
606
|
},
|
|
672
607
|
{
|
|
673
608
|
id: '2-1',
|
|
@@ -679,7 +614,7 @@ export const phrasesMessages = [
|
|
|
679
614
|
},
|
|
680
615
|
{
|
|
681
616
|
id: '3-1',
|
|
682
|
-
message: "Ms.
|
|
617
|
+
message: "Ms.Ventura. We do not respond to that kind of language. I'm doing my best to help you. Please be civil."
|
|
683
618
|
},
|
|
684
619
|
{
|
|
685
620
|
id: '3-2',
|
|
@@ -700,62 +635,62 @@ export const phrasesMessages = [
|
|
|
700
635
|
];
|
|
701
636
|
export const pagePushList = [
|
|
702
637
|
{
|
|
703
|
-
id:
|
|
638
|
+
id: createUID(),
|
|
704
639
|
type: 'message',
|
|
705
|
-
|
|
640
|
+
senderType: 'agent',
|
|
641
|
+
senderId: 'agent3',
|
|
706
642
|
direction: 'out',
|
|
707
643
|
avatarInfo: {
|
|
708
|
-
name: '
|
|
644
|
+
name: 'Edward green'
|
|
709
645
|
},
|
|
710
646
|
message: 'You may also reach us via',
|
|
711
|
-
|
|
712
|
-
|
|
647
|
+
timestamp: '1:45 PM',
|
|
648
|
+
mediaPageLinks: [
|
|
713
649
|
{
|
|
714
|
-
id:
|
|
650
|
+
id: createUID(),
|
|
715
651
|
href: 'https://collaborate.pega.com/',
|
|
716
652
|
thumbnail: 'https://community.pega.com/sites/default/files/styles/480/public/media/images/2020-02/AskExpert.png?itok=ef2MVbOV',
|
|
717
653
|
title: 'Ask the expert'
|
|
718
654
|
}
|
|
719
|
-
]
|
|
720
|
-
ariaLabel: 'John Brown said You may also reach us via at 1:45 PM with 1 link'
|
|
655
|
+
]
|
|
721
656
|
},
|
|
722
657
|
{
|
|
723
|
-
id:
|
|
658
|
+
id: createUID(),
|
|
724
659
|
type: 'message',
|
|
725
|
-
|
|
660
|
+
senderType: 'agent',
|
|
661
|
+
senderId: 'agent3',
|
|
726
662
|
direction: 'out',
|
|
727
663
|
avatarInfo: {
|
|
728
|
-
name: '
|
|
664
|
+
name: 'Edward green'
|
|
729
665
|
},
|
|
730
666
|
message: 'Online Portal',
|
|
731
|
-
|
|
732
|
-
|
|
667
|
+
timestamp: '1:45 PM',
|
|
668
|
+
mediaPageLinks: [
|
|
733
669
|
{
|
|
734
|
-
id:
|
|
670
|
+
id: createUID(),
|
|
735
671
|
href: 'https://collaborate.pega.com/',
|
|
736
672
|
title: 'Ask the expert'
|
|
737
673
|
}
|
|
738
|
-
]
|
|
739
|
-
ariaLabel: 'John Brown said Online portal at 1:45 PM with 1 link'
|
|
674
|
+
]
|
|
740
675
|
},
|
|
741
676
|
{
|
|
742
|
-
id:
|
|
677
|
+
id: createUID(),
|
|
743
678
|
type: 'message',
|
|
744
|
-
|
|
679
|
+
senderType: 'agent',
|
|
680
|
+
senderId: 'agent3',
|
|
745
681
|
direction: 'out',
|
|
746
682
|
avatarInfo: {
|
|
747
|
-
name: '
|
|
683
|
+
name: 'Edward green'
|
|
748
684
|
},
|
|
749
685
|
message: 'Contact center',
|
|
750
|
-
|
|
751
|
-
|
|
686
|
+
timestamp: '1:45 PM',
|
|
687
|
+
mediaPageLinks: [
|
|
752
688
|
{
|
|
753
|
-
id:
|
|
689
|
+
id: createUID(),
|
|
754
690
|
href: 'https://collaborate.pega.com/',
|
|
755
691
|
title: 'Ask the expert'
|
|
756
692
|
}
|
|
757
|
-
]
|
|
758
|
-
ariaLabel: 'John Brown said Contact center at 1:45 PM with 1 link'
|
|
693
|
+
]
|
|
759
694
|
}
|
|
760
695
|
];
|
|
761
696
|
export const contextItems = [
|