@capillarytech/creatives-library 7.12.7 → 7.12.9

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.
@@ -4,47 +4,49 @@ import { FormattedMessage } from "react-intl";
4
4
  export default {
5
5
  whatsappTemplates: {
6
6
  selectedWhatsappAccount: {
7
- sourceTypeName: 'WHATSAPP',
8
- name: 'WhatsppTest',
7
+ sourceTypeName: "WHATSAPP",
8
+ name: "WhatsppTest",
9
9
  isActive: true,
10
10
  sourceTypeId: 19,
11
11
  configs: {
12
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
12
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
13
13
  },
14
14
  toMirror: false,
15
15
  id: 12673,
16
- uuid: '6ac077dbdc7849ccb8db0d38917a6ed5',
17
- sourceAccountIdentifier: 'AC41030cebba9e2f1ce37c78235da0ee18',
18
- commChannels: ['whatsapp'],
16
+ uuid: "6ac077dbdc7849ccb8db0d38917a6ed5",
17
+ sourceAccountIdentifier: "AC41030cebba9e2f1ce37c78235da0ee18",
18
+ commChannels: [
19
+ "whatsapp",
20
+ ],
19
21
  attribution: {
20
- createDate: '2022-01-05T00:00:00+05:30',
22
+ createDate: "2022-01-05T00:00:00+05:30",
21
23
  createdBy: {
22
- adminType: 'GENERAL',
23
- name: '1371622280_Ashish',
24
+ adminType: "GENERAL",
25
+ name: "1371622280_Ashish",
24
26
  currencyId: 0,
25
- code: '1371622280_919866643044',
27
+ code: "1371622280_919866643044",
26
28
  isActive: true,
27
29
  isOuEnabled: false,
28
30
  languageId: 0,
29
31
  timeZoneId: 0,
30
- type: 'ADMIN_USER',
32
+ type: "ADMIN_USER",
31
33
  id: 15000449,
32
- description: '',
34
+ description: "",
33
35
  },
34
36
  modifiedBy: {
35
- adminType: 'GENERAL',
36
- name: '1371622280_Ashish',
37
+ adminType: "GENERAL",
38
+ name: "1371622280_Ashish",
37
39
  currencyId: 0,
38
- code: '1371622280_919866643044',
40
+ code: "1371622280_919866643044",
39
41
  isActive: true,
40
42
  isOuEnabled: false,
41
43
  languageId: 0,
42
44
  timeZoneId: 0,
43
- type: 'ADMIN_USER',
45
+ type: "ADMIN_USER",
44
46
  id: 15000449,
45
- description: '',
47
+ description: "",
46
48
  },
47
- modifiedDate: '2022-01-05T00:00:00+05:30',
49
+ modifiedDate: "2022-01-05T00:00:00+05:30",
48
50
  },
49
51
  },
50
52
  getAllTemplatesInProgress: false,
@@ -54,11 +56,11 @@ export default {
54
56
  orgUsers: [
55
57
  {
56
58
  userId: 50012994,
57
- firstName: 'firstUser',
58
- lastName: '',
59
- loginName: 'firstUser@capillarytech.com',
60
- email: 'firstUser@capillarytech.com',
61
- mobile: '918888802132',
59
+ firstName: "firstUser",
60
+ lastName: "",
61
+ loginName: "firstUser@capillarytech.com",
62
+ email: "firstUser@capillarytech.com",
63
+ mobile: "918888802132",
62
64
  isMobileValidated: 0,
63
65
  isEmailValidated: 0,
64
66
  },
@@ -66,11 +68,11 @@ export default {
66
68
  capUsers: [
67
69
  {
68
70
  userId: 15000449,
69
- firstName: 'Ashish',
70
- lastName: 'Karan fd',
71
- loginName: 'cap@coin.com',
72
- email: 'cap@coin.com',
73
- mobile: '919957676767',
71
+ firstName: "Ashish",
72
+ lastName: "Karan fd",
73
+ loginName: "cap@coin.com",
74
+ email: "cap@coin.com",
75
+ mobile: "919957676767",
74
76
  isMobileValidated: 1,
75
77
  isEmailValidated: 1,
76
78
  },
@@ -82,75 +84,77 @@ export default {
82
84
  isSearch: false,
83
85
  weCrmAccounts: [
84
86
  {
85
- sourceTypeName: 'WHATSAPP',
86
- name: 'WhatsppTest',
87
+ sourceTypeName: "WHATSAPP",
88
+ name: "WhatsppTest",
87
89
  isActive: true,
88
90
  sourceTypeId: 19,
89
91
  configs: {
90
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
92
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
91
93
  },
92
94
  toMirror: false,
93
95
  id: 12673,
94
- uuid: '6ac077dbdc7849ccb8db0d38917a6ed5',
95
- sourceAccountIdentifier: 'AC41030cebba9e2f1ce37c78235da0ee18',
96
- commChannels: ['whatsapp'],
96
+ uuid: "6ac077dbdc7849ccb8db0d38917a6ed5",
97
+ sourceAccountIdentifier: "AC41030cebba9e2f1ce37c78235da0ee18",
98
+ commChannels: [
99
+ "whatsapp",
100
+ ],
97
101
  attribution: {
98
- createDate: '2022-01-05T00:00:00+05:30',
102
+ createDate: "2022-01-05T00:00:00+05:30",
99
103
  createdBy: {
100
- adminType: 'GENERAL',
101
- name: '1371622280_Ashish',
104
+ adminType: "GENERAL",
105
+ name: "1371622280_Ashish",
102
106
  currencyId: 0,
103
- code: '1371622280_919866643044',
107
+ code: "1371622280_919866643044",
104
108
  isActive: true,
105
109
  isOuEnabled: false,
106
110
  languageId: 0,
107
111
  timeZoneId: 0,
108
- type: 'ADMIN_USER',
112
+ type: "ADMIN_USER",
109
113
  id: 15000449,
110
- description: '',
114
+ description: "",
111
115
  },
112
116
  modifiedBy: {
113
- adminType: 'GENERAL',
114
- name: '1371622280_Ashish',
117
+ adminType: "GENERAL",
118
+ name: "1371622280_Ashish",
115
119
  currencyId: 0,
116
- code: '1371622280_919866643044',
120
+ code: "1371622280_919866643044",
117
121
  isActive: true,
118
122
  isOuEnabled: false,
119
123
  languageId: 0,
120
124
  timeZoneId: 0,
121
- type: 'ADMIN_USER',
125
+ type: "ADMIN_USER",
122
126
  id: 15000449,
123
- description: '',
127
+ description: "",
124
128
  },
125
- modifiedDate: '2022-01-05T00:00:00+05:30',
129
+ modifiedDate: "2022-01-05T00:00:00+05:30",
126
130
  },
127
131
  },
128
132
  ],
129
133
  userListFetchError: false,
130
134
  templates: [
131
135
  {
132
- _id: '620b88327ecc279198099117',
133
- name: 'saad',
134
- type: 'WHATSAPP',
136
+ _id: "620b88327ecc279198099117",
137
+ name: "saad",
138
+ type: "WHATSAPP",
135
139
  versions: {
136
140
  $init: true,
137
141
  history: [],
138
142
  base: {
139
143
  content: {
140
144
  whatsapp: {
141
- status: 'approved',
142
- templateId: 'HTc5068cbaa813f931ed887f19922ca19d',
143
- accountName: 'WhatsppTest',
144
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
145
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
146
- mediaType: 'text',
145
+ status: "approved",
146
+ templateId: "HTc5068cbaa813f931ed887f19922ca19d",
147
+ accountName: "WhatsppTest",
148
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
149
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
150
+ mediaType: "text",
147
151
  languages: [
148
152
  {
149
153
  content: "$'asdasd\nClick {{1}} to unsubscribe'",
150
- language: 'en',
154
+ language: "en",
151
155
  },
152
156
  ],
153
- category: 'ACCOUNT_UPDATE',
157
+ category: "ACCOUNT_UPDATE",
154
158
  rejection_reason: null,
155
159
  },
156
160
  },
@@ -158,35 +162,35 @@ export default {
158
162
  },
159
163
  isActive: true,
160
164
  orgId: 50146,
161
- createdBy: '15000449',
162
- updatedBy: '15000449',
163
- createdAt: '2022-02-15T11:02:11.190Z',
164
- updatedAt: '2022-02-15T11:02:11.190Z',
165
+ createdBy: "15000449",
166
+ updatedBy: "15000449",
167
+ createdAt: "2022-02-15T11:02:11.190Z",
168
+ updatedAt: "2022-02-15T11:02:11.190Z",
165
169
  totalCount: 12,
166
170
  },
167
171
  {
168
- _id: '620b59b37ecc273edd099102',
169
- name: 'sdad',
170
- type: 'WHATSAPP',
172
+ _id: "620b59b37ecc273edd099102",
173
+ name: "sdad",
174
+ type: "WHATSAPP",
171
175
  versions: {
172
176
  $init: true,
173
177
  history: [],
174
178
  base: {
175
179
  content: {
176
180
  whatsapp: {
177
- status: 'approved',
178
- templateId: 'HT27ff217529be534258c84e1769a20a41',
179
- accountName: 'WhatsppTest',
180
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
181
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
182
- mediaType: 'text',
181
+ status: "approved",
182
+ templateId: "HT27ff217529be534258c84e1769a20a41",
183
+ accountName: "WhatsppTest",
184
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
185
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
186
+ mediaType: "text",
183
187
  languages: [
184
188
  {
185
189
  content: "$'!@#$%^&*_\nClick {{1}} to unsubscribe'",
186
- language: 'en',
190
+ language: "en",
187
191
  },
188
192
  ],
189
- category: 'ACCOUNT_UPDATE',
193
+ category: "ACCOUNT_UPDATE",
190
194
  rejection_reason: null,
191
195
  },
192
196
  },
@@ -194,35 +198,35 @@ export default {
194
198
  },
195
199
  isActive: true,
196
200
  orgId: 50146,
197
- createdBy: '15000449',
198
- updatedBy: '15000449',
199
- createdAt: '2022-02-15T07:43:47.658Z',
200
- updatedAt: '2022-02-15T07:43:47.658Z',
201
+ createdBy: "15000449",
202
+ updatedBy: "15000449",
203
+ createdAt: "2022-02-15T07:43:47.658Z",
204
+ updatedAt: "2022-02-15T07:43:47.658Z",
201
205
  totalCount: 12,
202
206
  },
203
207
  {
204
- _id: '620b59637ecc27e0cc0990ff',
205
- name: 'adsdd',
206
- type: 'WHATSAPP',
208
+ _id: "620b59637ecc27e0cc0990ff",
209
+ name: "adsdd",
210
+ type: "WHATSAPP",
207
211
  versions: {
208
212
  $init: true,
209
213
  history: [],
210
214
  base: {
211
215
  content: {
212
216
  whatsapp: {
213
- status: 'approved',
214
- templateId: 'HT92d060ab715e2fc03fc49ee045943f9a',
215
- accountName: 'WhatsppTest',
216
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
217
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
218
- mediaType: 'text',
217
+ status: "approved",
218
+ templateId: "HT92d060ab715e2fc03fc49ee045943f9a",
219
+ accountName: "WhatsppTest",
220
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
221
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
222
+ mediaType: "text",
219
223
  languages: [
220
224
  {
221
225
  content: "$'!@#$%^&*()_+\nClick {{1}} to unsubscribe'",
222
- language: 'en',
226
+ language: "en",
223
227
  },
224
228
  ],
225
- category: 'ALERT_UPDATE',
229
+ category: "ALERT_UPDATE",
226
230
  rejection_reason: null,
227
231
  },
228
232
  },
@@ -230,35 +234,35 @@ export default {
230
234
  },
231
235
  isActive: true,
232
236
  orgId: 50146,
233
- createdBy: '15000449',
234
- updatedBy: '15000449',
235
- createdAt: '2022-02-15T07:42:27.634Z',
236
- updatedAt: '2022-02-15T07:42:27.634Z',
237
+ createdBy: "15000449",
238
+ updatedBy: "15000449",
239
+ createdAt: "2022-02-15T07:42:27.634Z",
240
+ updatedAt: "2022-02-15T07:42:27.634Z",
237
241
  totalCount: 12,
238
242
  },
239
243
  {
240
- _id: '620b592c7ecc2758610990fe',
241
- name: 'sdfsdf',
242
- type: 'WHATSAPP',
244
+ _id: "620b592c7ecc2758610990fe",
245
+ name: "sdfsdf",
246
+ type: "WHATSAPP",
243
247
  versions: {
244
248
  $init: true,
245
249
  history: [],
246
250
  base: {
247
251
  content: {
248
252
  whatsapp: {
249
- status: 'approved',
250
- templateId: 'HTe9afa93dbae9c8008d9b48fa9634e8cc',
251
- accountName: 'WhatsppTest',
252
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
253
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
254
- mediaType: 'text',
253
+ status: "approved",
254
+ templateId: "HTe9afa93dbae9c8008d9b48fa9634e8cc",
255
+ accountName: "WhatsppTest",
256
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
257
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
258
+ mediaType: "text",
255
259
  languages: [
256
260
  {
257
261
  content: "$'!@#$%^&*()_+\nClick {{1}} to unsubscribe'",
258
- language: 'en',
262
+ language: "en",
259
263
  },
260
264
  ],
261
- category: 'ACCOUNT_UPDATE',
265
+ category: "ACCOUNT_UPDATE",
262
266
  rejection_reason: null,
263
267
  },
264
268
  },
@@ -266,73 +270,72 @@ export default {
266
270
  },
267
271
  isActive: true,
268
272
  orgId: 50146,
269
- createdBy: '15000449',
270
- updatedBy: '15000449',
271
- createdAt: '2022-02-15T07:41:32.794Z',
272
- updatedAt: '2022-02-15T07:41:32.794Z',
273
+ createdBy: "15000449",
274
+ updatedBy: "15000449",
275
+ createdAt: "2022-02-15T07:41:32.794Z",
276
+ updatedAt: "2022-02-15T07:41:32.794Z",
273
277
  totalCount: 12,
274
278
  },
275
279
  {
276
- _id: '620b45a37ecc2790760990f3',
277
- name: 'demo123_',
278
- type: 'WHATSAPP',
280
+ _id: "620b45a37ecc2790760990f3",
281
+ name: "demo123_",
282
+ type: "WHATSAPP",
279
283
  versions: {
280
284
  $init: true,
281
285
  history: [],
282
286
  base: {
283
287
  content: {
284
288
  whatsapp: {
285
- status: 'rejected',
286
- templateId: 'HT0e13521c16f501edcddb3834bf39b7a0',
287
- accountName: 'WhatsppTest',
288
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
289
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
290
- mediaType: 'text',
289
+ status: "rejected",
290
+ templateId: "HT0e13521c16f501edcddb3834bf39b7a0",
291
+ accountName: "WhatsppTest",
292
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
293
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
294
+ mediaType: "text",
291
295
  languages: [
292
296
  {
293
- content:
294
- "$'sasdad {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
295
- language: 'en',
297
+ content: "$'sasdad {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
298
+ language: "en",
296
299
  },
297
300
  ],
298
- category: 'ALERT_UPDATE',
299
- rejection_reason: 'INVALID_FORMAT',
301
+ category: "ALERT_UPDATE",
302
+ rejection_reason: "INVALID_FORMAT",
300
303
  },
301
304
  },
302
305
  },
303
306
  },
304
307
  isActive: true,
305
308
  orgId: 50146,
306
- createdBy: '15000449',
307
- updatedBy: '15000449',
308
- createdAt: '2022-02-15T06:18:11.404Z',
309
- updatedAt: '2022-02-15T06:20:00.566Z',
309
+ createdBy: "15000449",
310
+ updatedBy: "15000449",
311
+ createdAt: "2022-02-15T06:18:11.404Z",
312
+ updatedAt: "2022-02-15T06:20:00.566Z",
310
313
  totalCount: 12,
311
314
  },
312
315
  {
313
- _id: '6206293583c7567293240513',
314
- name: 'hiaqwe23123',
315
- type: 'WHATSAPP',
316
+ _id: "6206293583c7567293240513",
317
+ name: "hiaqwe23123",
318
+ type: "WHATSAPP",
316
319
  versions: {
317
320
  $init: true,
318
321
  history: [],
319
322
  base: {
320
323
  content: {
321
324
  whatsapp: {
322
- status: 'approved',
323
- templateId: 'HT5d4dc726d77452b062833d662769bd96',
324
- accountName: 'WhatsppTest',
325
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
326
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
327
- templateEditor: 'dfsdfdsf',
328
- mediaType: 'TEXT',
325
+ status: "approved",
326
+ templateId: "HT5d4dc726d77452b062833d662769bd96",
327
+ accountName: "WhatsppTest",
328
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
329
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
330
+ templateEditor: "dfsdfdsf",
331
+ mediaType: "TEXT",
329
332
  languages: [
330
333
  {
331
334
  content: "$'dfsdfdsf\nClick {{1}} to unsubscribe'",
332
- language: 'en',
335
+ language: "en",
333
336
  },
334
337
  ],
335
- category: 'ALERT_UPDATE',
338
+ category: "ALERT_UPDATE",
336
339
  rejection_reason: null,
337
340
  },
338
341
  },
@@ -340,36 +343,35 @@ export default {
340
343
  },
341
344
  isActive: true,
342
345
  orgId: 50146,
343
- createdBy: '15000449',
344
- updatedBy: '15000449',
345
- createdAt: '2022-02-11T09:15:34.151Z',
346
- updatedAt: '2022-02-11T09:15:34.151Z',
346
+ createdBy: "15000449",
347
+ updatedBy: "15000449",
348
+ createdAt: "2022-02-11T09:15:34.151Z",
349
+ updatedAt: "2022-02-11T09:15:34.151Z",
347
350
  totalCount: 12,
348
351
  },
349
352
  {
350
- _id: '62034e0d83c756035f2404ef',
351
- name: 'payment_status',
352
- type: 'WHATSAPP',
353
+ _id: "62034e0d83c756035f2404ef",
354
+ name: "payment_status",
355
+ type: "WHATSAPP",
353
356
  versions: {
354
357
  $init: true,
355
358
  history: [],
356
359
  base: {
357
360
  content: {
358
361
  whatsapp: {
359
- status: 'approved',
360
- templateId: 'HT79d91d09938365fbade7e5fd208311da',
361
- accountName: 'WhatsppTest',
362
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
363
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
364
- mediaType: 'text',
362
+ status: "approved",
363
+ templateId: "HT79d91d09938365fbade7e5fd208311da",
364
+ accountName: "WhatsppTest",
365
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
366
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
367
+ mediaType: "text",
365
368
  languages: [
366
369
  {
367
- content:
368
- "$'Purchase successful @ {{1}}\nCongrats!!\n{{2}} added to your Vishal Mega Mart account\nRedeem on {{3}}\nValid only for {{4}}\nTerms and conditions apply\n{{5}}\nClick {{6}} to unsubscribe'",
369
- language: 'en',
370
+ content: "$'Purchase successful @ {{1}}\nCongrats!!\n{{2}} added to your Vishal Mega Mart account\nRedeem on {{3}}\nValid only for {{4}}\nTerms and conditions apply\n{{5}}\nClick {{6}} to unsubscribe'",
371
+ language: "en",
370
372
  },
371
373
  ],
372
- category: 'PAYMENT_UPDATE',
374
+ category: "PAYMENT_UPDATE",
373
375
  rejection_reason: null,
374
376
  },
375
377
  },
@@ -377,36 +379,35 @@ export default {
377
379
  },
378
380
  isActive: true,
379
381
  orgId: 50146,
380
- createdBy: '15000449',
381
- updatedBy: '15000449',
382
- createdAt: '2022-02-09T05:15:57.700Z',
383
- updatedAt: '2022-02-09T05:15:57.700Z',
382
+ createdBy: "15000449",
383
+ updatedBy: "15000449",
384
+ createdAt: "2022-02-09T05:15:57.700Z",
385
+ updatedAt: "2022-02-09T05:15:57.700Z",
384
386
  totalCount: 12,
385
387
  },
386
388
  {
387
- _id: '62034bf683c75682f82404ee',
388
- name: 'reservation_update',
389
- type: 'WHATSAPP',
389
+ _id: "62034bf683c75682f82404ee",
390
+ name: "reservation_update",
391
+ type: "WHATSAPP",
390
392
  versions: {
391
393
  $init: true,
392
394
  history: [],
393
395
  base: {
394
396
  content: {
395
397
  whatsapp: {
396
- status: 'approved',
397
- templateId: 'HT41de93f2b9fce551026be8ef53c38cd5',
398
- accountName: 'WhatsppTest',
399
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
400
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
401
- mediaType: 'text',
398
+ status: "approved",
399
+ templateId: "HT41de93f2b9fce551026be8ef53c38cd5",
400
+ accountName: "WhatsppTest",
401
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
402
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
403
+ mediaType: "text",
402
404
  languages: [
403
405
  {
404
- content:
405
- "$'Hi {{1}}, your reservation at {{2}} is confirmed for {{3}} at {{4}}\nClick {{5}} to unsubscribe'",
406
- language: 'en',
406
+ content: "$'Hi {{1}}, your reservation at {{2}} is confirmed for {{3}} at {{4}}\nClick {{5}} to unsubscribe'",
407
+ language: "en",
407
408
  },
408
409
  ],
409
- category: 'RESERVATION_UPDATE',
410
+ category: "RESERVATION_UPDATE",
410
411
  rejection_reason: null,
411
412
  },
412
413
  },
@@ -414,36 +415,35 @@ export default {
414
415
  },
415
416
  isActive: true,
416
417
  orgId: 50146,
417
- createdBy: '15000449',
418
- updatedBy: '15000449',
419
- createdAt: '2022-02-09T05:07:02.525Z',
420
- updatedAt: '2022-02-09T05:07:02.525Z',
418
+ createdBy: "15000449",
419
+ updatedBy: "15000449",
420
+ createdAt: "2022-02-09T05:07:02.525Z",
421
+ updatedAt: "2022-02-09T05:07:02.525Z",
421
422
  totalCount: 12,
422
423
  },
423
424
  {
424
- _id: '62034b8583c7566fbb2404ed',
425
- name: 'optout_update',
426
- type: 'WHATSAPP',
425
+ _id: "62034b8583c7566fbb2404ed",
426
+ name: "optout_update",
427
+ type: "WHATSAPP",
427
428
  versions: {
428
429
  $init: true,
429
430
  history: [],
430
431
  base: {
431
432
  content: {
432
433
  whatsapp: {
433
- status: 'approved',
434
- templateId: 'HT6562fb8f7267a51d5de099f7ea4e3077',
435
- accountName: 'WhatsppTest',
436
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
437
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
438
- mediaType: 'text',
434
+ status: "approved",
435
+ templateId: "HT6562fb8f7267a51d5de099f7ea4e3077",
436
+ accountName: "WhatsppTest",
437
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
438
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
439
+ mediaType: "text",
439
440
  languages: [
440
441
  {
441
- content:
442
- "$'Dear Customer you have been opted out to receive messages from us. To Opt in give a missed call at +918067006166. Don't miss out on our offers & SHOP FOR FREE!\nClick {{1}} to unsubscribe'",
443
- language: 'en',
442
+ content: "$'Dear Customer you have been opted out to receive messages from us. To Opt in give a missed call at +918067006166. Don't miss out on our offers & SHOP FOR FREE!\nClick {{1}} to unsubscribe'",
443
+ language: "en",
444
444
  },
445
445
  ],
446
- category: 'ACCOUNT_UPDATE',
446
+ category: "ACCOUNT_UPDATE",
447
447
  rejection_reason: null,
448
448
  },
449
449
  },
@@ -451,36 +451,35 @@ export default {
451
451
  },
452
452
  isActive: true,
453
453
  orgId: 50146,
454
- createdBy: '15000449',
455
- updatedBy: '15000449',
456
- createdAt: '2022-02-09T05:05:09.446Z',
457
- updatedAt: '2022-02-09T05:05:09.446Z',
454
+ createdBy: "15000449",
455
+ updatedBy: "15000449",
456
+ createdAt: "2022-02-09T05:05:09.446Z",
457
+ updatedAt: "2022-02-09T05:05:09.446Z",
458
458
  totalCount: 12,
459
459
  },
460
460
  {
461
- _id: '62034b4683c75608cf2404ec',
462
- name: 'points_update',
463
- type: 'WHATSAPP',
461
+ _id: "62034b4683c75608cf2404ec",
462
+ name: "points_update",
463
+ type: "WHATSAPP",
464
464
  versions: {
465
465
  $init: true,
466
466
  history: [],
467
467
  base: {
468
468
  content: {
469
469
  whatsapp: {
470
- status: 'approved',
471
- templateId: 'HT9bb4d61eea1699d2dbcaecd1cb558345',
472
- accountName: 'WhatsppTest',
473
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
474
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
475
- mediaType: 'text',
470
+ status: "approved",
471
+ templateId: "HT9bb4d61eea1699d2dbcaecd1cb558345",
472
+ accountName: "WhatsppTest",
473
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
474
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
475
+ mediaType: "text",
476
476
  languages: [
477
477
  {
478
- content:
479
- "$'Dear Customer, your{{1}} points are about to expire. Redeem before {{2}} at nearest Vishal Mega Mart and SHOP FOR FREE!\nT&C\nClick {{3}} to unsubscribe'",
480
- language: 'en',
478
+ content: "$'Dear Customer, your{{1}} points are about to expire. Redeem before {{2}} at nearest Vishal Mega Mart and SHOP FOR FREE!\nT&C\nClick {{3}} to unsubscribe'",
479
+ language: "en",
481
480
  },
482
481
  ],
483
- category: 'ACCOUNT_UPDATE',
482
+ category: "ACCOUNT_UPDATE",
484
483
  rejection_reason: null,
485
484
  },
486
485
  },
@@ -488,84 +487,82 @@ export default {
488
487
  },
489
488
  isActive: true,
490
489
  orgId: 50146,
491
- createdBy: '15000449',
492
- updatedBy: '15000449',
493
- createdAt: '2022-02-09T05:04:06.579Z',
494
- updatedAt: '2022-02-09T05:04:06.579Z',
490
+ createdBy: "15000449",
491
+ updatedBy: "15000449",
492
+ createdAt: "2022-02-09T05:04:06.579Z",
493
+ updatedAt: "2022-02-09T05:04:06.579Z",
495
494
  totalCount: 12,
496
495
  },
497
496
  {
498
- _id: '62026d1283c7566ce92404de',
499
- name: 'test_rejected_message_3',
500
- type: 'WHATSAPP',
497
+ _id: "62026d1283c7566ce92404de",
498
+ name: "test_rejected_message_3",
499
+ type: "WHATSAPP",
501
500
  versions: {
502
501
  $init: true,
503
502
  history: [],
504
503
  base: {
505
504
  content: {
506
505
  whatsapp: {
507
- status: 'rejected',
508
- templateId: 'HT9012f1c7290beb0286b7c4138baf675d',
509
- accountName: 'WhatsppTest',
510
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
511
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
512
- mediaType: 'text',
506
+ status: "rejected",
507
+ templateId: "HT9012f1c7290beb0286b7c4138baf675d",
508
+ accountName: "WhatsppTest",
509
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
510
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
511
+ mediaType: "text",
513
512
  languages: [
514
513
  {
515
- content:
516
- "$'Hello {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
517
- language: 'en',
514
+ content: "$'Hello {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
515
+ language: "en",
518
516
  },
519
517
  ],
520
- category: 'ALERT_UPDATE',
521
- rejection_reason: 'INVALID_FORMAT',
518
+ category: "ALERT_UPDATE",
519
+ rejection_reason: "INVALID_FORMAT",
522
520
  },
523
521
  },
524
522
  },
525
523
  },
526
524
  isActive: true,
527
525
  orgId: 50146,
528
- createdBy: '15000449',
529
- updatedBy: '15000449',
530
- createdAt: '2022-02-08T13:16:02.366Z',
531
- updatedAt: '2022-02-08T13:16:02.366Z',
526
+ createdBy: "15000449",
527
+ updatedBy: "15000449",
528
+ createdAt: "2022-02-08T13:16:02.366Z",
529
+ updatedAt: "2022-02-08T13:16:02.366Z",
532
530
  totalCount: 12,
533
531
  },
534
532
  {
535
- _id: '62025d0583c756f73f2404d8',
536
- name: 'test_rejected_message_1',
537
- type: 'WHATSAPP',
533
+ _id: "62025d0583c756f73f2404d8",
534
+ name: "test_rejected_message_1",
535
+ type: "WHATSAPP",
538
536
  versions: {
539
537
  $init: true,
540
538
  history: [],
541
539
  base: {
542
540
  content: {
543
541
  whatsapp: {
544
- status: 'rejected',
545
- templateId: 'HT5196572bf61ebcc6b8c6216522226b14',
546
- accountName: 'WhatsppTest',
547
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
548
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
549
- mediaType: 'text',
542
+ status: "rejected",
543
+ templateId: "HT5196572bf61ebcc6b8c6216522226b14",
544
+ accountName: "WhatsppTest",
545
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
546
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
547
+ mediaType: "text",
550
548
  languages: [
551
549
  {
552
- content:
553
- "$'hi {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
554
- language: 'en',
550
+ content: "$'hi {{1}} and {{2}}\nClick {{3}} to unsubscribe'",
551
+ language: "en",
555
552
  },
556
553
  ],
557
- category: 'ALERT_UPDATE',
558
- rejection_reason: 'INVALID_FORMAT',
554
+ category: "ALERT_UPDATE",
555
+ rejection_reason: "INVALID_FORMAT",
559
556
  },
560
557
  },
561
558
  },
562
559
  },
563
560
  isActive: true,
564
561
  orgId: 50146,
565
- createdBy: '15000449',
566
- updatedBy: '15000449',
567
- createdAt: '2022-02-08T12:07:34.192Z',
568
- updatedAt: '2022-02-08T12:07:34.192Z',
562
+ createdBy: "15000449",
563
+ updatedBy: "15000449",
564
+ createdAt: "2022-02-08T12:07:34.192Z",
565
+ updatedAt: "2022-02-08T12:07:34.192Z",
569
566
  totalCount: 12,
570
567
  },
571
568
  ],
@@ -578,11 +575,11 @@ export default {
578
575
  orgUsers: [
579
576
  {
580
577
  userId: 50012994,
581
- firstName: 'firstUser',
582
- lastName: '',
583
- loginName: 'firstUser@capillarytech.com',
584
- email: 'firstUser@capillarytech.com',
585
- mobile: '918888802132',
578
+ firstName: "firstUser",
579
+ lastName: "",
580
+ loginName: "firstUser@capillarytech.com",
581
+ email: "firstUser@capillarytech.com",
582
+ mobile: "918888802132",
586
583
  isMobileValidated: 0,
587
584
  isEmailValidated: 0,
588
585
  },
@@ -590,11 +587,11 @@ export default {
590
587
  capUsers: [
591
588
  {
592
589
  userId: 15000449,
593
- firstName: 'Ashish',
594
- lastName: 'Karan fd',
595
- loginName: 'cap@coin.com',
596
- email: 'cap@coin.com',
597
- mobile: '919957676767',
590
+ firstName: "Ashish",
591
+ lastName: "Karan fd",
592
+ loginName: "cap@coin.com",
593
+ email: "cap@coin.com",
594
+ mobile: "919957676767",
598
595
  isMobileValidated: 1,
599
596
  isEmailValidated: 1,
600
597
  },
@@ -607,9 +604,9 @@ export default {
607
604
  userListFetchError: false,
608
605
  templates: [
609
606
  {
610
- _id: '623c39e970387f3cf5f8fd70',
611
- name: 'testtest',
612
- type: 'RCS',
607
+ _id: "623c39e970387f3cf5f8fd70",
608
+ name: "testtest",
609
+ type: "RCS",
613
610
  versions: {
614
611
  $init: true,
615
612
  history: [],
@@ -618,23 +615,22 @@ export default {
618
615
  RCS: {
619
616
  cardContent: [
620
617
  {
621
- title: 'title',
622
- description: 'Desc',
623
- mediaType: 'NONE',
618
+ title: "title",
619
+ description: "Desc",
620
+ mediaType: "NONE",
624
621
  media: {
625
- mediaUrl: '',
626
- height: 'MEDIUM',
622
+ mediaUrl: "",
623
+ height: "MEDIUM",
627
624
  },
628
625
  },
629
626
  ],
630
627
  cardSettings: {
631
- cardOrientation: 'VERTICAL',
632
- mediaAlignment: 'RIGHT',
628
+ cardOrientation: "VERTICAL",
633
629
  },
634
- cardType: 'STANDALONE',
635
- contentType: 'RICHCARD',
630
+ cardType: "STANDALONE",
631
+ contentType: "RICHCARD",
636
632
  smsFallBackContent: {
637
- message: '123',
633
+ message: "123",
638
634
  },
639
635
  },
640
636
  },
@@ -642,16 +638,16 @@ export default {
642
638
  },
643
639
  isActive: true,
644
640
  orgId: 50146,
645
- createdBy: '15000449',
646
- updatedBy: '15000449',
647
- createdAt: '2022-03-24T09:29:13.376Z',
648
- updatedAt: '2022-03-29T11:15:53.175Z',
641
+ createdBy: "15000449",
642
+ updatedBy: "15000449",
643
+ createdAt: "2022-03-24T09:29:13.376Z",
644
+ updatedAt: "2022-03-29T11:15:53.175Z",
649
645
  totalCount: 10,
650
646
  },
651
647
  {
652
- _id: '623c3e0a70387fa8dcf8fd75',
653
- name: 'creative',
654
- type: 'RCS',
648
+ _id: "623c3e0a70387fa8dcf8fd75",
649
+ name: "creative",
650
+ type: "RCS",
655
651
  versions: {
656
652
  $init: true,
657
653
  history: [],
@@ -659,23 +655,22 @@ export default {
659
655
  content: {
660
656
  RCS: {
661
657
  smsFallBackContent: {
662
- message: 'fallback {{optout}}',
658
+ message: "fallback {{optout}}",
663
659
  },
664
- contentType: 'RICHCARD',
665
- cardType: 'STANDALONE',
660
+ contentType: "RICHCARD",
661
+ cardType: "STANDALONE",
666
662
  cardSettings: {
667
- mediaAlignment: 'RIGHT',
668
- cardOrientation: 'VERTICAL',
663
+ cardOrientation: "VERTICAL",
669
664
  },
670
665
  cardContent: [
671
666
  {
672
667
  media: {
673
- height: 'MEDIUM',
674
- mediaUrl: '',
668
+ height: "MEDIUM",
669
+ mediaUrl: "",
675
670
  },
676
- mediaType: 'NONE',
677
- description: 'desc {{store_name}}',
678
- title: 'title',
671
+ mediaType: "NONE",
672
+ description: "desc {{store_name}}",
673
+ title: "title",
679
674
  },
680
675
  ],
681
676
  },
@@ -684,16 +679,16 @@ export default {
684
679
  },
685
680
  isActive: true,
686
681
  orgId: 50146,
687
- createdBy: '15000449',
688
- updatedBy: '15000449',
689
- createdAt: '2022-03-24T09:46:50.688Z',
690
- updatedAt: '2022-03-24T09:46:50.688Z',
682
+ createdBy: "15000449",
683
+ updatedBy: "15000449",
684
+ createdAt: "2022-03-24T09:46:50.688Z",
685
+ updatedAt: "2022-03-24T09:46:50.688Z",
691
686
  totalCount: 10,
692
687
  },
693
688
  {
694
- _id: '623c279270387f94fff8fd6e',
695
- name: 'Test_1111',
696
- type: 'RCS',
689
+ _id: "623c279270387f94fff8fd6e",
690
+ name: "Test_1111",
691
+ type: "RCS",
697
692
  versions: {
698
693
  $init: true,
699
694
  history: [],
@@ -701,24 +696,22 @@ export default {
701
696
  content: {
702
697
  RCS: {
703
698
  smsFallBackContent: {
704
- message: 'Test SMS message',
699
+ message: "Test SMS message",
705
700
  },
706
- contentType: 'RICHCARD',
707
- cardType: 'STANDALONE',
701
+ contentType: "RICHCARD",
702
+ cardType: "STANDALONE",
708
703
  cardSettings: {
709
- mediaAlignment: 'RIGHT',
710
- cardOrientation: 'VERTICAL',
704
+ cardOrientation: "VERTICAL",
711
705
  },
712
706
  cardContent: [
713
707
  {
714
708
  media: {
715
- height: 'MEDIUM',
716
- mediaUrl:
717
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg',
709
+ height: "MEDIUM",
710
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg",
718
711
  },
719
- mediaType: 'IMAGE',
720
- description: 'Test Text message\n{{store_name}}',
721
- title: 'Test Title',
712
+ mediaType: "IMAGE",
713
+ description: "Test Text message\n{{store_name}}",
714
+ title: "Test Title",
722
715
  },
723
716
  ],
724
717
  },
@@ -727,16 +720,16 @@ export default {
727
720
  },
728
721
  isActive: true,
729
722
  orgId: 50146,
730
- createdBy: '15000449',
731
- updatedBy: '15000449',
732
- createdAt: '2022-03-24T08:10:58.084Z',
733
- updatedAt: '2022-03-24T08:10:58.084Z',
723
+ createdBy: "15000449",
724
+ updatedBy: "15000449",
725
+ createdAt: "2022-03-24T08:10:58.084Z",
726
+ updatedAt: "2022-03-24T08:10:58.084Z",
734
727
  totalCount: 10,
735
728
  },
736
729
  {
737
- _id: '623c264b70387f4db0f8fd6d',
738
- name: 'Copy of Test_112 03-24-2022 13:35:31',
739
- type: 'RCS',
730
+ _id: "623c264b70387f4db0f8fd6d",
731
+ name: "Copy of Test_112 03-24-2022 13:35:31",
732
+ type: "RCS",
740
733
  versions: {
741
734
  $init: true,
742
735
  history: [],
@@ -745,24 +738,22 @@ export default {
745
738
  RCS: {
746
739
  cardContent: [
747
740
  {
748
- title: 'Hi I am Title',
749
- description: 'Hi I am Text message',
750
- mediaType: 'IMAGE',
741
+ title: "Hi I am Title",
742
+ description: "Hi I am Text message",
743
+ mediaType: "IMAGE",
751
744
  media: {
752
- mediaUrl:
753
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg',
754
- height: 'MEDIUM',
745
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
746
+ height: "MEDIUM",
755
747
  },
756
748
  },
757
749
  ],
758
750
  cardSettings: {
759
- cardOrientation: 'VERTICAL',
760
- mediaAlignment: 'RIGHT',
751
+ cardOrientation: "VERTICAL",
761
752
  },
762
- cardType: 'STANDALONE',
763
- contentType: 'RICHCARD',
753
+ cardType: "STANDALONE",
754
+ contentType: "RICHCARD",
764
755
  smsFallBackContent: {
765
- message: '',
756
+ message: "",
766
757
  },
767
758
  },
768
759
  },
@@ -770,16 +761,16 @@ export default {
770
761
  },
771
762
  isActive: true,
772
763
  orgId: 50146,
773
- createdBy: '15000449',
774
- updatedBy: '15000449',
775
- createdAt: '2022-03-24T08:05:31.979Z',
776
- updatedAt: '2022-03-24T08:05:31.979Z',
764
+ createdBy: "15000449",
765
+ updatedBy: "15000449",
766
+ createdAt: "2022-03-24T08:05:31.979Z",
767
+ updatedAt: "2022-03-24T08:05:31.979Z",
777
768
  totalCount: 10,
778
769
  },
779
770
  {
780
- _id: '623c000670387f4df6f8fd59',
781
- name: 'Test_112',
782
- type: 'RCS',
771
+ _id: "623c000670387f4df6f8fd59",
772
+ name: "Test_112",
773
+ type: "RCS",
783
774
  versions: {
784
775
  $init: true,
785
776
  history: [],
@@ -787,24 +778,22 @@ export default {
787
778
  content: {
788
779
  RCS: {
789
780
  smsFallBackContent: {
790
- message: '',
781
+ message: "",
791
782
  },
792
- contentType: 'RICHCARD',
793
- cardType: 'STANDALONE',
783
+ contentType: "RICHCARD",
784
+ cardType: "STANDALONE",
794
785
  cardSettings: {
795
- mediaAlignment: 'RIGHT',
796
- cardOrientation: 'VERTICAL',
786
+ cardOrientation: "VERTICAL",
797
787
  },
798
788
  cardContent: [
799
789
  {
800
790
  media: {
801
- height: 'MEDIUM',
802
- mediaUrl:
803
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg',
791
+ height: "MEDIUM",
792
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
804
793
  },
805
- mediaType: 'IMAGE',
806
- description: 'Hi I am Text message',
807
- title: 'Hi I am Title',
794
+ mediaType: "IMAGE",
795
+ description: "Hi I am Text message",
796
+ title: "Hi I am Title",
808
797
  },
809
798
  ],
810
799
  },
@@ -813,16 +802,16 @@ export default {
813
802
  },
814
803
  isActive: true,
815
804
  orgId: 50146,
816
- createdBy: '15000449',
817
- updatedBy: '15000449',
818
- createdAt: '2022-03-24T05:22:15.073Z',
819
- updatedAt: '2022-03-24T05:22:15.073Z',
805
+ createdBy: "15000449",
806
+ updatedBy: "15000449",
807
+ createdAt: "2022-03-24T05:22:15.073Z",
808
+ updatedAt: "2022-03-24T05:22:15.073Z",
820
809
  totalCount: 10,
821
810
  },
822
811
  {
823
- _id: '623bff3570387f33a4f8fd56',
824
- name: 'Test_111',
825
- type: 'RCS',
812
+ _id: "623bff3570387f33a4f8fd56",
813
+ name: "Test_111",
814
+ type: "RCS",
826
815
  versions: {
827
816
  $init: true,
828
817
  history: [],
@@ -830,23 +819,22 @@ export default {
830
819
  content: {
831
820
  RCS: {
832
821
  smsFallBackContent: {
833
- message: 'HI I am Fallback SMS{{optout}}',
822
+ message: "HI I am Fallback SMS{{optout}}",
834
823
  },
835
- contentType: 'RICHCARD',
836
- cardType: 'STANDALONE',
824
+ contentType: "RICHCARD",
825
+ cardType: "STANDALONE",
837
826
  cardSettings: {
838
- mediaAlignment: 'RIGHT',
839
- cardOrientation: 'VERTICAL',
827
+ cardOrientation: "VERTICAL",
840
828
  },
841
829
  cardContent: [
842
830
  {
843
831
  media: {
844
- height: 'MEDIUM',
845
- mediaUrl: '',
832
+ height: "MEDIUM",
833
+ mediaUrl: "",
846
834
  },
847
- mediaType: 'NONE',
848
- description: 'Hi I am Description{{optout}}',
849
- title: 'Hi I am Title',
835
+ mediaType: "NONE",
836
+ description: "Hi I am Description{{optout}}",
837
+ title: "Hi I am Title",
850
838
  },
851
839
  ],
852
840
  },
@@ -855,16 +843,16 @@ export default {
855
843
  },
856
844
  isActive: true,
857
845
  orgId: 50146,
858
- createdBy: '15000449',
859
- updatedBy: '15000449',
860
- createdAt: '2022-03-24T05:18:45.280Z',
861
- updatedAt: '2022-03-24T05:18:45.280Z',
846
+ createdBy: "15000449",
847
+ updatedBy: "15000449",
848
+ createdAt: "2022-03-24T05:18:45.280Z",
849
+ updatedAt: "2022-03-24T05:18:45.280Z",
862
850
  totalCount: 10,
863
851
  },
864
852
  {
865
- _id: '623bfc6870387fb550f8fd55',
866
- name: 'Copy of test_vin_8 03-24-2022 10:36:45',
867
- type: 'RCS',
853
+ _id: "623bfc6870387fb550f8fd55",
854
+ name: "Copy of test_vin_8 03-24-2022 10:36:45",
855
+ type: "RCS",
868
856
  versions: {
869
857
  $init: true,
870
858
  history: [],
@@ -873,24 +861,22 @@ export default {
873
861
  RCS: {
874
862
  cardContent: [
875
863
  {
876
- title: 'This is RCS title',
877
- description: 'This is RCS description {{optout}}',
878
- mediaType: 'IMAGE',
864
+ title: "This is RCS title",
865
+ description: "This is RCS description {{optout}}",
866
+ mediaType: "IMAGE",
879
867
  media: {
880
- mediaUrl:
881
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg',
882
- height: 'MEDIUM',
868
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
869
+ height: "MEDIUM",
883
870
  },
884
871
  },
885
872
  ],
886
873
  cardSettings: {
887
- cardOrientation: 'VERTICAL',
888
- mediaAlignment: 'RIGHT',
874
+ cardOrientation: "VERTICAL",
889
875
  },
890
- cardType: 'STANDALONE',
891
- contentType: 'RICHCARD',
876
+ cardType: "STANDALONE",
877
+ contentType: "RICHCARD",
892
878
  smsFallBackContent: {
893
- message: 'This is fallback msg {{optout}}',
879
+ message: "This is fallback msg {{optout}}",
894
880
  },
895
881
  },
896
882
  },
@@ -898,16 +884,16 @@ export default {
898
884
  },
899
885
  isActive: true,
900
886
  orgId: 50146,
901
- createdBy: '15000449',
902
- updatedBy: '15000449',
903
- createdAt: '2022-03-24T05:06:48.885Z',
904
- updatedAt: '2022-03-24T05:06:48.885Z',
887
+ createdBy: "15000449",
888
+ updatedBy: "15000449",
889
+ createdAt: "2022-03-24T05:06:48.885Z",
890
+ updatedAt: "2022-03-24T05:06:48.885Z",
905
891
  totalCount: 10,
906
892
  },
907
893
  {
908
- _id: '623acf4df971231e66c85882',
909
- name: 'test_vin_8',
910
- type: 'RCS',
894
+ _id: "623acf4df971231e66c85882",
895
+ name: "test_vin_8",
896
+ type: "RCS",
911
897
  versions: {
912
898
  $init: true,
913
899
  history: [],
@@ -915,24 +901,22 @@ export default {
915
901
  content: {
916
902
  RCS: {
917
903
  smsFallBackContent: {
918
- message: 'This is fallback msg {{optout}}',
904
+ message: "This is fallback msg {{optout}}",
919
905
  },
920
- contentType: 'RICHCARD',
921
- cardType: 'STANDALONE',
906
+ contentType: "RICHCARD",
907
+ cardType: "STANDALONE",
922
908
  cardSettings: {
923
- mediaAlignment: 'RIGHT',
924
- cardOrientation: 'VERTICAL',
909
+ cardOrientation: "VERTICAL",
925
910
  },
926
911
  cardContent: [
927
912
  {
928
913
  media: {
929
- height: 'MEDIUM',
930
- mediaUrl:
931
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg',
914
+ height: "MEDIUM",
915
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
932
916
  },
933
- mediaType: 'IMAGE',
934
- description: 'This is RCS description {{optout}}',
935
- title: 'This is RCS title',
917
+ mediaType: "IMAGE",
918
+ description: "This is RCS description {{optout}}",
919
+ title: "This is RCS title",
936
920
  },
937
921
  ],
938
922
  },
@@ -941,16 +925,16 @@ export default {
941
925
  },
942
926
  isActive: true,
943
927
  orgId: 50146,
944
- createdBy: '15000449',
945
- updatedBy: '15000449',
946
- createdAt: '2022-03-23T07:42:05.226Z',
947
- updatedAt: '2022-03-23T07:42:05.226Z',
928
+ createdBy: "15000449",
929
+ updatedBy: "15000449",
930
+ createdAt: "2022-03-23T07:42:05.226Z",
931
+ updatedAt: "2022-03-23T07:42:05.226Z",
948
932
  totalCount: 10,
949
933
  },
950
934
  {
951
- _id: '62388944a7e1a1e8fddfe97f',
952
- name: 'test_template_112',
953
- type: 'RCS',
935
+ _id: "62388944a7e1a1e8fddfe97f",
936
+ name: "test_template_112",
937
+ type: "RCS",
954
938
  versions: {
955
939
  $init: true,
956
940
  history: [],
@@ -958,60 +942,59 @@ export default {
958
942
  content: {
959
943
  RCS: {
960
944
  smsFallBackContent: {
961
- message: 'fallback message {{voucher(373913)}}',
945
+ message: "fallback message {{voucher(373913)}}",
962
946
  templateConfigs: {
963
947
  templateVariableMapping: {
964
- '{#var#}_6': {
948
+ "{#var#}_6": {
965
949
  count: 3,
966
- data: 'test22',
950
+ data: "test22",
967
951
  },
968
- '{#var#}_1': {
952
+ "{#var#}_1": {
969
953
  count: 4,
970
- data: 'test11',
954
+ data: "test11",
971
955
  },
972
956
  },
973
- registeredSenderIds: ['CPLRYT', 'CPLRY'],
974
- template:
975
- 'Hi {#var#} enjoy 50% off at Celio. Capillary Tech.',
976
- templateId: 'template_whatever_id',
957
+ registeredSenderIds: [
958
+ "CPLRYT",
959
+ "CPLRY",
960
+ ],
961
+ template: "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
962
+ templateId: "template_whatever_id",
977
963
  },
978
964
  },
979
965
  cardSettings: {
980
- mediaAlignment: 'RIGHT',
981
- cardOrientation: 'VERTICAL',
966
+ cardOrientation: "VERTICAL",
982
967
  },
983
- cardType: 'STANDALONE',
984
- contentType: 'RICHCARD',
968
+ cardType: "STANDALONE",
969
+ contentType: "RICHCARD",
985
970
  cardContent: [
986
971
  {
987
972
  media: {
988
- mediaUrl:
989
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg',
990
- height: 'MEDIUM',
973
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg",
974
+ height: "MEDIUM",
991
975
  },
992
- mediaType: 'NONE',
993
- description:
994
- "Automatically sign in to sites and apps using stored credentials. If turned off, you'll be asked for confirmation every time before signing in to a site or app. Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
995
- title: 'title',
976
+ mediaType: "NONE",
977
+ description: "Automatically sign in to sites and apps using stored credentials. If turned off, you'll be asked for confirmation every time before signing in to a site or app. Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
978
+ title: "title",
996
979
  },
997
980
  ],
998
- mediaType: 'text',
981
+ mediaType: "text",
999
982
  },
1000
983
  },
1001
984
  },
1002
985
  },
1003
986
  isActive: true,
1004
987
  orgId: 50146,
1005
- createdBy: '15000449',
1006
- updatedBy: '15000449',
1007
- createdAt: '2022-03-21T14:18:44.322Z',
1008
- updatedAt: '2022-03-21T14:18:44.322Z',
988
+ createdBy: "15000449",
989
+ updatedBy: "15000449",
990
+ createdAt: "2022-03-21T14:18:44.322Z",
991
+ updatedAt: "2022-03-21T14:18:44.322Z",
1009
992
  totalCount: 10,
1010
993
  },
1011
994
  {
1012
- _id: '623888aca7e1a16926dfe97d',
1013
- name: 'test_template_111',
1014
- type: 'RCS',
995
+ _id: "623888aca7e1a16926dfe97d",
996
+ name: "test_template_111",
997
+ type: "RCS",
1015
998
  versions: {
1016
999
  $init: true,
1017
1000
  history: [],
@@ -1019,134 +1002,118 @@ export default {
1019
1002
  content: {
1020
1003
  RCS: {
1021
1004
  smsFallBackContent: {
1022
- message: 'fallback message {{voucher(373913)}}',
1005
+ message: "fallback message {{voucher(373913)}}",
1023
1006
  templateConfigs: {
1024
1007
  templateVariableMapping: {
1025
- '{#var#}_6': {
1008
+ "{#var#}_6": {
1026
1009
  count: 3,
1027
- data: 'test22',
1010
+ data: "test22",
1028
1011
  },
1029
- '{#var#}_1': {
1012
+ "{#var#}_1": {
1030
1013
  count: 4,
1031
- data: 'test11',
1014
+ data: "test11",
1032
1015
  },
1033
1016
  },
1034
- registeredSenderIds: ['CPLRYT', 'CPLRY'],
1035
- template:
1036
- 'Hi {#var#} enjoy 50% off at Celio. Capillary Tech.',
1037
- templateId: 'template_whatever_id',
1017
+ registeredSenderIds: [
1018
+ "CPLRYT",
1019
+ "CPLRY",
1020
+ ],
1021
+ template: "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
1022
+ templateId: "template_whatever_id",
1038
1023
  },
1039
1024
  },
1040
1025
  cardSettings: {
1041
- mediaAlignment: 'RIGHT',
1042
- cardOrientation: 'VERTICAL',
1026
+ cardOrientation: "VERTICAL",
1043
1027
  },
1044
- cardType: 'STANDALONE',
1045
- contentType: 'RICHCARD',
1028
+ cardType: "STANDALONE",
1029
+ contentType: "RICHCARD",
1046
1030
  cardContent: [
1047
1031
  {
1048
1032
  media: {
1049
- mediaUrl:
1050
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg',
1051
- height: 'MEDIUM',
1033
+ mediaUrl: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg",
1034
+ height: "MEDIUM",
1052
1035
  },
1053
- mediaType: 'NONE',
1054
- description:
1055
- 'Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.',
1056
- title: 'title',
1036
+ mediaType: "NONE",
1037
+ description: "Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
1038
+ title: "title",
1057
1039
  },
1058
1040
  ],
1059
- mediaType: 'text',
1041
+ mediaType: "text",
1060
1042
  },
1061
1043
  },
1062
1044
  },
1063
1045
  },
1064
1046
  isActive: true,
1065
1047
  orgId: 50146,
1066
- createdBy: '15000449',
1067
- updatedBy: '15000449',
1068
- createdAt: '2022-03-21T14:16:12.731Z',
1069
- updatedAt: '2022-03-21T14:16:12.731Z',
1048
+ createdBy: "15000449",
1049
+ updatedBy: "15000449",
1050
+ createdAt: "2022-03-21T14:16:12.731Z",
1051
+ updatedAt: "2022-03-21T14:16:12.731Z",
1070
1052
  totalCount: 10,
1071
1053
  },
1072
1054
  ],
1073
1055
  },
1074
1056
  whatsappEditTemplateData: {
1075
- mode: 'edit',
1076
- _id: '620e213d39bd394c58aeaaca',
1077
- modeType: '',
1078
- whatsappTemplateName: 'amit123456',
1079
- whatsappTemplateCategory: 'ALERT_UPDATE',
1080
- whatsappTemplateLanguageCode: 'en',
1081
- type: 'WHATSAPP',
1082
- channel: 'WHATSAPP',
1057
+ mode: "edit",
1058
+ _id: "620e213d39bd394c58aeaaca",
1059
+ modeType: "",
1060
+ whatsappTemplateName: "amit123456",
1061
+ whatsappTemplateCategory: "ALERT_UPDATE",
1062
+ type: "WHATSAPP",
1063
+ channel: "WHATSAPP",
1083
1064
  validity: true,
1084
1065
  },
1085
1066
  rcsEditTemplateData: {
1086
- mode: 'edit',
1087
- _id: '620e213d39bd394c58aeaaca',
1088
- modeType: '',
1089
- type: 'RCS',
1090
- channel: 'RCS',
1067
+ mode: "edit",
1068
+ _id: "620e213d39bd394c58aeaaca",
1069
+ modeType: "",
1070
+ type: "RCS",
1071
+ channel: "RCS",
1091
1072
  validity: true,
1092
1073
  },
1093
- getWhatsappContentOutput: '1234567890\nClick {{unsubscribe}} to unsubscribe',
1094
- getWhatsappStatusOutput: {
1095
- key: 'approved',
1096
- label: (
1097
- <FormattedMessage
1098
- defaultMessage="Approved"
1099
- id="creatives.containersV2.Whatsapp.approved"
1100
- values={{}}
1101
- />
1102
- ),
1103
- value: 'approved',
1104
- },
1074
+ getWhatsappContentOutput: "1234567890\nClick {{unsubscribe}} to unsubscribe",
1075
+ getWhatsappStatusOutput: {key: "approved", label: <FormattedMessage defaultMessage="Approved" id="creatives.containersV2.Whatsapp.approved" values={{}} />, value: "approved"},
1105
1076
  getWhatsappCategoryOutput: {
1106
- key: 'alertUpdate',
1107
- label: (
1108
- <FormattedMessage
1109
- defaultMessage="Alert update"
1110
- id="creatives.containersV2.Whatsapp.alertUpdate"
1111
- values={{}}
1112
- />
1113
- ),
1114
- tagColor: '#f2e7fe',
1115
- tagTextColor: '#a451ff',
1116
- tooltipLabel: (
1117
- <FormattedMessage
1118
- defaultMessage="Send important updates or news to customers."
1119
- id="creatives.containersV2.Whatsapp.alertUpdateTooltip"
1120
- values={{}}
1121
- />
1122
- ),
1123
- value: 'ALERT_UPDATE',
1077
+ key: "alertUpdate",
1078
+ label: <FormattedMessage
1079
+ defaultMessage="Alert update"
1080
+ id="creatives.containersV2.Whatsapp.alertUpdate"
1081
+ values={{}}
1082
+ />,
1083
+ tagColor: "#f2e7fe",
1084
+ tagTextColor: "#a451ff",
1085
+ tooltipLabel: <FormattedMessage
1086
+ defaultMessage="Send important updates or news to customers."
1087
+ id="creatives.containersV2.Whatsapp.alertUpdateTooltip"
1088
+ values={{}}
1089
+ />,
1090
+ value: "ALERT_UPDATE",
1124
1091
  },
1125
1092
  whatsappPreviewTemplateData: {
1126
- mode: 'preview',
1127
- _id: '620e213d39bd394c58aeaaca',
1128
- name: 'amit123456',
1129
- type: 'WHATSAPP',
1093
+ mode: "preview",
1094
+ _id: "620e213d39bd394c58aeaaca",
1095
+ name: "amit123456",
1096
+ type: "WHATSAPP",
1130
1097
  versions: {
1131
1098
  $init: true,
1132
1099
  history: [],
1133
1100
  base: {
1134
1101
  content: {
1135
1102
  whatsapp: {
1136
- status: 'approved',
1137
- templateId: 'HT5203cccf5b1e9e41f222fab6cd6c2754',
1138
- accountName: 'whatsappTest',
1139
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
1140
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
1141
- templateEditor: '',
1142
- mediaType: 'TEXT',
1103
+ status: "approved",
1104
+ templateId: "HT5203cccf5b1e9e41f222fab6cd6c2754",
1105
+ accountName: "whatsappTest",
1106
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
1107
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
1108
+ templateEditor: "",
1109
+ mediaType: "TEXT",
1143
1110
  languages: [
1144
1111
  {
1145
- content: '1234567890\nClick {{1}} to unsubscribe',
1146
- language: 'en',
1112
+ content: "1234567890\nClick {{1}} to unsubscribe",
1113
+ language: "en",
1147
1114
  },
1148
1115
  ],
1149
- category: 'ALERT_UPDATE',
1116
+ category: "ALERT_UPDATE",
1150
1117
  rejection_reason: null,
1151
1118
  },
1152
1119
  },
@@ -1154,43 +1121,43 @@ export default {
1154
1121
  },
1155
1122
  isActive: true,
1156
1123
  orgId: 50371,
1157
- createdBy: '15000449',
1158
- updatedBy: '15000449',
1159
- createdAt: '2022-02-17T10:19:42.211Z',
1160
- updatedAt: '2022-02-17T10:19:42.211Z',
1124
+ createdBy: "15000449",
1125
+ updatedBy: "15000449",
1126
+ createdAt: "2022-02-17T10:19:42.211Z",
1127
+ updatedAt: "2022-02-17T10:19:42.211Z",
1161
1128
  totalCount: 12,
1162
- updatedByName: 'Ashish Karan fd',
1129
+ updatedByName: "Ashish Karan fd",
1163
1130
  },
1164
1131
  rcsPreviewTemplateData: {
1165
- mode: 'preview',
1166
- _id: '620e213d39bd394c58aeaaca',
1167
- name: 'amit123456',
1168
- type: 'RCS',
1132
+ mode: "preview",
1133
+ _id: "620e213d39bd394c58aeaaca",
1134
+ name: "amit123456",
1135
+ type: "RCS",
1169
1136
  versions: {
1170
1137
  $init: true,
1171
1138
  history: [],
1172
1139
  base: {
1173
1140
  content: {
1141
+
1174
1142
  RCS: {
1175
1143
  cardContent: [
1176
1144
  {
1177
- title: 'title',
1178
- description: 'Desc',
1179
- mediaType: 'NONE',
1145
+ title: "title",
1146
+ description: "Desc",
1147
+ mediaType: "NONE",
1180
1148
  media: {
1181
- mediaUrl: '',
1182
- height: 'MEDIUM',
1149
+ mediaUrl: "",
1150
+ height: "MEDIUM",
1183
1151
  },
1184
1152
  },
1185
1153
  ],
1186
1154
  cardSettings: {
1187
- cardOrientation: 'VERTICAL',
1188
- mediaAlignment: 'RIGHT',
1155
+ cardOrientation: "VERTICAL",
1189
1156
  },
1190
- cardType: 'STANDALONE',
1191
- contentType: 'RICHCARD',
1157
+ cardType: "STANDALONE",
1158
+ contentType: "RICHCARD",
1192
1159
  smsFallBackContent: {
1193
- message: '123',
1160
+ message: "123",
1194
1161
  },
1195
1162
  },
1196
1163
  },
@@ -1198,20 +1165,12 @@ export default {
1198
1165
  },
1199
1166
  isActive: true,
1200
1167
  orgId: 50371,
1201
- createdBy: '15000449',
1202
- updatedBy: '15000449',
1203
- createdAt: '2022-02-17T10:19:42.211Z',
1204
- updatedAt: '2022-02-17T10:19:42.211Z',
1168
+ createdBy: "15000449",
1169
+ updatedBy: "15000449",
1170
+ createdAt: "2022-02-17T10:19:42.211Z",
1171
+ updatedAt: "2022-02-17T10:19:42.211Z",
1205
1172
  totalCount: 12,
1206
- updatedByName: 'Ashish Karan fd',
1207
- },
1208
- getCreativesParamsOutput: {
1209
- _id: undefined,
1210
- account: undefined,
1211
- mode: 'edit',
1212
- modeType: undefined,
1213
- type: 'WHATSAPP',
1214
- whatsappTemplateCategory: '',
1215
- whatsappTemplateName: '',
1173
+ updatedByName: "Ashish Karan fd",
1216
1174
  },
1217
- };
1175
+ getCreativesParamsOutput: {_id: undefined, account: undefined, mode: "edit", modeType: undefined, type: "WHATSAPP", whatsappTemplateCategory: "", whatsappTemplateName: ""},
1176
+ };