@capillarytech/creatives-library 7.17.35 → 7.17.37-alpha.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.
Files changed (46) hide show
  1. package/containers/Templates/actions.js +0 -5
  2. package/index.js +6 -0
  3. package/package.json +1 -1
  4. package/routes.js +5 -0
  5. package/services/api.js +6 -1
  6. package/v2Components/WhatsappStatusContainer/_whatsappStatusContainer.scss +2 -1
  7. package/v2Containers/App/constants.js +1 -0
  8. package/v2Containers/CreativesContainer/SlideBoxContent.js +13 -0
  9. package/v2Containers/CreativesContainer/SlideBoxHeader.js +9 -6
  10. package/v2Containers/CreativesContainer/constants.js +1 -0
  11. package/v2Containers/CreativesContainer/index.scss +3 -0
  12. package/v2Containers/CreativesContainer/messages.js +8 -0
  13. package/v2Containers/CreativesContainer/tests/SlideBoxHeader.test.js +6 -1
  14. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxHeader.test.js.snap +58 -0
  15. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +18114 -88
  16. package/v2Containers/Templates/_templates.scss +20 -2
  17. package/v2Containers/Templates/actions.js +4 -3
  18. package/v2Containers/Templates/constants.js +2 -1
  19. package/v2Containers/Templates/index.js +326 -120
  20. package/v2Containers/Templates/messages.js +32 -8
  21. package/v2Containers/Templates/reducer.js +3 -1
  22. package/v2Containers/Templates/sagas.js +2 -2
  23. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +623 -43
  24. package/v2Containers/Templates/tests/actions.test.js +18 -0
  25. package/v2Containers/Templates/tests/index.test.js +52 -1
  26. package/v2Containers/Templates/tests/mockData.js +41 -1
  27. package/v2Containers/Templates/tests/reducer.test.js +50 -0
  28. package/v2Containers/Templates/tests/sagas.test.js +40 -2
  29. package/v2Containers/Templates/tests/selector.test.js +17 -0
  30. package/v2Containers/TemplatesV2/index.js +2 -2
  31. package/v2Containers/TemplatesV2/messages.js +4 -0
  32. package/v2Containers/Zalo/actions.js +17 -0
  33. package/v2Containers/Zalo/constants.js +56 -0
  34. package/v2Containers/Zalo/index.js +390 -0
  35. package/v2Containers/Zalo/index.scss +76 -0
  36. package/v2Containers/Zalo/messages.js +74 -0
  37. package/v2Containers/Zalo/reducer.js +57 -0
  38. package/v2Containers/Zalo/saga.js +35 -0
  39. package/v2Containers/Zalo/selectors.js +14 -0
  40. package/v2Containers/Zalo/tests/actions.test.js +20 -0
  41. package/v2Containers/Zalo/tests/index.test.js +127 -0
  42. package/v2Containers/Zalo/tests/mockData.js +11470 -0
  43. package/v2Containers/Zalo/tests/reducer.test.js +85 -0
  44. package/v2Containers/Zalo/tests/saga.test.js +115 -0
  45. package/v2Containers/Zalo/tests/selectors.test.js +52 -0
  46. package/v2Containers/mockdata.js +817 -680
@@ -1,34 +1,34 @@
1
- import React from 'react';
2
- import { FormattedMessage } from 'react-intl';
3
- import { CapImage, CapLabel } from '@capillarytech/cap-ui-library';
4
- import pdfIcon from '../assets/pdfIcon.svg';
5
- import messages from './Whatsapp/messages';
1
+ import React from "react";
2
+ import { FormattedMessage } from "react-intl";
3
+ import { CapImage, CapLabel } from "@capillarytech/cap-ui-library";
4
+ import pdfIcon from "../assets/pdfIcon.svg";
5
+ import messages from "./Whatsapp/messages";
6
6
 
7
7
  export default {
8
8
  whatsappTemplates: {
9
9
  selectedWhatsappAccount: {
10
- sourceTypeName: 'WHATSAPP',
11
- name: 'WhatsappAccount',
10
+ sourceTypeName: "WHATSAPP",
11
+ name: "WhatsappAccount",
12
12
  isActive: true,
13
13
  sourceTypeId: 19,
14
14
  configs: {
15
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
16
- promotionalMessagingSSID: '',
17
- transactionalMessagingSSID: '',
15
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
16
+ promotionalMessagingSSID: "",
17
+ transactionalMessagingSSID: "",
18
18
  },
19
- hostName: 'karixwhatsappbulk',
19
+ hostName: "karixwhatsappbulk",
20
20
  toMirror: true,
21
21
  id: 12721,
22
- uuid: '93c52a35824a4bea8650d7d0232b2e3c',
23
- sourceAccountIdentifier: '107499611940863',
24
- commChannels: ['whatsapp'],
22
+ uuid: "93c52a35824a4bea8650d7d0232b2e3c",
23
+ sourceAccountIdentifier: "107499611940863",
24
+ commChannels: ["whatsapp"],
25
25
  },
26
26
  getAllTemplatesInProgress: false,
27
27
  weCrmAccountFetchingError: false,
28
28
  weCRMtemplates: [],
29
29
  senderDetails: {
30
- status: 'SUCCESS',
31
- hostName: 'karixwhatsappbulk',
30
+ status: "SUCCESS",
31
+ hostName: "karixwhatsappbulk",
32
32
  errors: [],
33
33
  },
34
34
  templateError: {},
@@ -37,291 +37,291 @@ export default {
37
37
  isSearch: false,
38
38
  weCrmAccounts: [
39
39
  {
40
- sourceTypeName: 'WHATSAPP',
41
- name: 'WhatsappAccount',
40
+ sourceTypeName: "WHATSAPP",
41
+ name: "WhatsappAccount",
42
42
  isActive: true,
43
43
  sourceTypeId: 19,
44
44
  configs: {
45
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
46
- promotionalMessagingSSID: '',
47
- transactionalMessagingSSID: '',
45
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
46
+ promotionalMessagingSSID: "",
47
+ transactionalMessagingSSID: "",
48
48
  },
49
49
  toMirror: true,
50
50
  id: 12721,
51
- uuid: '93c52a35824a4bea8650d7d0232b2e3c',
52
- sourceAccountIdentifier: '107499611940863',
53
- commChannels: ['whatsapp'],
51
+ uuid: "93c52a35824a4bea8650d7d0232b2e3c",
52
+ sourceAccountIdentifier: "107499611940863",
53
+ commChannels: ["whatsapp"],
54
54
  },
55
55
  ],
56
56
  userListFetchError: false,
57
57
  templates: [
58
58
  {
59
- _id: '62d3f971b497b671d3bbf8f7',
60
- name: 'creatives_whatsapp6',
61
- type: 'WHATSAPP',
59
+ _id: "62d3f971b497b671d3bbf8f7",
60
+ name: "creatives_whatsapp6",
61
+ type: "WHATSAPP",
62
62
  versions: {
63
63
  $init: true,
64
64
  history: [],
65
65
  base: {
66
66
  content: {
67
67
  whatsapp: {
68
- status: 'pending',
69
- templateId: '720951875646523',
70
- hostName: 'karixwhatsappbulk',
71
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
72
- accountId: '107499611940863',
68
+ status: "pending",
69
+ templateId: "720951875646523",
70
+ hostName: "karixwhatsappbulk",
71
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
72
+ accountId: "107499611940863",
73
73
  templateEditor: false,
74
74
  karixFileHandle:
75
- '4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y',
75
+ "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
76
76
  imageUrl:
77
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
78
- mediaType: 'IMAGE',
77
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
78
+ mediaType: "IMAGE",
79
79
  buttons: [
80
80
  {
81
- phone_number: '+919738752617',
82
- text: 'Call',
83
- type: 'PHONE_NUMBER',
81
+ phone_number: "+919738752617",
82
+ text: "Call",
83
+ type: "PHONE_NUMBER",
84
84
  index: 0,
85
85
  },
86
86
  {
87
- url: 'https://docs.google.com/{{1}}',
88
- text: 'Visit',
89
- type: 'DYNAMIC_URL',
87
+ url: "https://docs.google.com/{{1}}",
88
+ text: "Visit",
89
+ type: "DYNAMIC_URL",
90
90
  index: 1,
91
91
  },
92
92
  ],
93
- buttonType: 'CTA',
93
+ buttonType: "CTA",
94
94
  languages: [
95
95
  {
96
96
  content:
97
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe',
98
- language: 'en',
97
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
98
+ language: "en",
99
99
  },
100
100
  ],
101
- category: 'MARKETING',
101
+ category: "MARKETING",
102
102
  },
103
103
  },
104
104
  },
105
105
  },
106
106
  isActive: true,
107
107
  orgId: 50074,
108
- createdBy: '15000449',
109
- updatedBy: '15000449',
110
- createdAt: '2022-07-17T11:58:45.592Z',
111
- updatedAt: '2022-07-17T11:58:45.592Z',
108
+ createdBy: "15000449",
109
+ updatedBy: "15000449",
110
+ createdAt: "2022-07-17T11:58:45.592Z",
111
+ updatedAt: "2022-07-17T11:58:45.592Z",
112
112
  totalCount: 6,
113
113
  },
114
114
  {
115
- _id: '62d3f8edb497b63156bbf8f5',
116
- name: 'creatives_whatsapp5',
117
- type: 'WHATSAPP',
115
+ _id: "62d3f8edb497b63156bbf8f5",
116
+ name: "creatives_whatsapp5",
117
+ type: "WHATSAPP",
118
118
  versions: {
119
119
  $init: true,
120
120
  history: [],
121
121
  base: {
122
122
  content: {
123
123
  whatsapp: {
124
- status: 'pending',
125
- templateId: '4916570121786087',
126
- hostName: 'karixwhatsappbulk',
127
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
128
- accountId: '107499611940863',
124
+ status: "pending",
125
+ templateId: "4916570121786087",
126
+ hostName: "karixwhatsappbulk",
127
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
128
+ accountId: "107499611940863",
129
129
  templateEditor: false,
130
130
  karixFileHandle:
131
- '4::aW1hZ2UvanBlZw==:ARY0H4Z85fo_TTfmAYJpqpnSbBlE3VaIYyr9S_Exg7GV_EhOo-30AVAoe35d0ZH8Cx5ZaJ3U2RovzzqVHPUnMK_7wFY7RNngsTwWc4vnZ7bMoA:e:1658404539:259409122277300:100066839164237:ARaPlACD4a5lw9Wp4X4',
131
+ "4::aW1hZ2UvanBlZw==:ARY0H4Z85fo_TTfmAYJpqpnSbBlE3VaIYyr9S_Exg7GV_EhOo-30AVAoe35d0ZH8Cx5ZaJ3U2RovzzqVHPUnMK_7wFY7RNngsTwWc4vnZ7bMoA:e:1658404539:259409122277300:100066839164237:ARaPlACD4a5lw9Wp4X4",
132
132
  imageUrl:
133
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/6aca6ada-2378-4b81-974c-a8537bbc.jpg',
134
- mediaType: 'IMAGE',
133
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/6aca6ada-2378-4b81-974c-a8537bbc.jpg",
134
+ mediaType: "IMAGE",
135
135
  buttons: [
136
136
  {
137
- url: 'https://docs.google.com/{{1}}',
138
- text: 'ಹೆಚ್ಚಿನ ಮಾಹಿತಿ',
139
- type: 'DYNAMIC_URL',
137
+ url: "https://docs.google.com/{{1}}",
138
+ text: "ಹೆಚ್ಚಿನ ಮಾಹಿತಿ",
139
+ type: "DYNAMIC_URL",
140
140
  index: 0,
141
141
  },
142
142
  ],
143
- buttonType: 'CTA',
143
+ buttonType: "CTA",
144
144
  languages: [
145
145
  {
146
- content: 'ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ 👍',
147
- language: 'kn',
146
+ content: "ಪಾವತಿ ಯಶಸ್ವಿಯಾಗಿದೆ 👍",
147
+ language: "kn",
148
148
  },
149
149
  ],
150
- category: 'MARKETING',
150
+ category: "MARKETING",
151
151
  },
152
152
  },
153
153
  },
154
154
  },
155
155
  isActive: true,
156
156
  orgId: 50074,
157
- createdBy: '15000449',
158
- updatedBy: '15000449',
159
- createdAt: '2022-07-17T11:56:33.707Z',
160
- updatedAt: '2022-07-17T11:56:33.707Z',
157
+ createdBy: "15000449",
158
+ updatedBy: "15000449",
159
+ createdAt: "2022-07-17T11:56:33.707Z",
160
+ updatedAt: "2022-07-17T11:56:33.707Z",
161
161
  totalCount: 6,
162
162
  },
163
163
  {
164
- _id: '62d3f896b497b69acbbbf8f3',
165
- name: 'creatives_whatsapp4',
166
- type: 'WHATSAPP',
164
+ _id: "62d3f896b497b69acbbbf8f3",
165
+ name: "creatives_whatsapp4",
166
+ type: "WHATSAPP",
167
167
  versions: {
168
168
  $init: true,
169
169
  history: [],
170
170
  base: {
171
171
  content: {
172
172
  whatsapp: {
173
- status: 'pending',
174
- templateId: '732848961277130',
175
- hostName: 'karixwhatsappbulk',
176
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
177
- accountId: '107499611940863',
173
+ status: "pending",
174
+ templateId: "732848961277130",
175
+ hostName: "karixwhatsappbulk",
176
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
177
+ accountId: "107499611940863",
178
178
  templateEditor: false,
179
179
  karixFileHandle:
180
- '4::aW1hZ2UvanBlZw==:ARYfsmvPHCeI0Q3ixfzpZ3gOIoYjrkx6STalsi58_twFIqB5rvPKsKPH7yL_eXMfbmXGq_X0qiLrL7FaSSFq_uzudytfoOj9Oh5ueb1uUV367A:e:1658404470:259409122277300:100066839164237:ARaaojq13hSRpe7h0Tw',
180
+ "4::aW1hZ2UvanBlZw==:ARYfsmvPHCeI0Q3ixfzpZ3gOIoYjrkx6STalsi58_twFIqB5rvPKsKPH7yL_eXMfbmXGq_X0qiLrL7FaSSFq_uzudytfoOj9Oh5ueb1uUV367A:e:1658404470:259409122277300:100066839164237:ARaaojq13hSRpe7h0Tw",
181
181
  imageUrl:
182
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/ec28477c-a5b6-4198-872e-1b135c1b.jpg',
183
- mediaType: 'IMAGE',
182
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/ec28477c-a5b6-4198-872e-1b135c1b.jpg",
183
+ mediaType: "IMAGE",
184
184
  buttons: [
185
185
  {
186
- phone_number: '+919738752617',
187
- text: 'Call',
188
- type: 'PHONE_NUMBER',
186
+ phone_number: "+919738752617",
187
+ text: "Call",
188
+ type: "PHONE_NUMBER",
189
189
  index: 0,
190
190
  },
191
191
  ],
192
- buttonType: 'CTA',
192
+ buttonType: "CTA",
193
193
  languages: [
194
194
  {
195
195
  content:
196
- 'Hi {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! \nClick {{2}} to unsubscribe',
197
- language: 'en',
196
+ "Hi {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! \nClick {{2}} to unsubscribe",
197
+ language: "en",
198
198
  },
199
199
  ],
200
- category: 'MARKETING',
200
+ category: "MARKETING",
201
201
  },
202
202
  },
203
203
  },
204
204
  },
205
205
  isActive: true,
206
206
  orgId: 50074,
207
- createdBy: '15000449',
208
- updatedBy: '15000449',
209
- createdAt: '2022-07-17T11:55:06.955Z',
210
- updatedAt: '2022-07-17T11:55:06.955Z',
207
+ createdBy: "15000449",
208
+ updatedBy: "15000449",
209
+ createdAt: "2022-07-17T11:55:06.955Z",
210
+ updatedAt: "2022-07-17T11:55:06.955Z",
211
211
  totalCount: 6,
212
212
  },
213
213
  {
214
- _id: '62d3f858b497b63540bbf8f1',
215
- name: 'creatives_whatsapp3',
216
- type: 'WHATSAPP',
214
+ _id: "62d3f858b497b63540bbf8f1",
215
+ name: "creatives_whatsapp3",
216
+ type: "WHATSAPP",
217
217
  versions: {
218
218
  $init: true,
219
219
  history: [],
220
220
  base: {
221
221
  content: {
222
222
  whatsapp: {
223
- status: 'pending',
224
- templateId: '993272384701160',
225
- hostName: 'karixwhatsappbulk',
226
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
227
- accountId: '107499611940863',
223
+ status: "pending",
224
+ templateId: "993272384701160",
225
+ hostName: "karixwhatsappbulk",
226
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
227
+ accountId: "107499611940863",
228
228
  templateEditor: false,
229
229
  karixFileHandle:
230
- '4::aW1hZ2UvanBlZw==:ARa6WKa8LHjcJf2DBWokWtAvxkowam2zBaUJvEwxyWH2EamzQv7-GlX7bsf6IKkdWKLAATpfo_vkAgQ8mWLf2wvVNEVBmPWk3yyrWDnVI44_9A:e:1658404412:259409122277300:100066839164237:ARYyRilqCb6hSKHtjYQ',
230
+ "4::aW1hZ2UvanBlZw==:ARa6WKa8LHjcJf2DBWokWtAvxkowam2zBaUJvEwxyWH2EamzQv7-GlX7bsf6IKkdWKLAATpfo_vkAgQ8mWLf2wvVNEVBmPWk3yyrWDnVI44_9A:e:1658404412:259409122277300:100066839164237:ARYyRilqCb6hSKHtjYQ",
231
231
  imageUrl:
232
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8ba834e6-a8f5-4710-a0e6-f402e911.jpg',
233
- mediaType: 'IMAGE',
232
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/8ba834e6-a8f5-4710-a0e6-f402e911.jpg",
233
+ mediaType: "IMAGE",
234
234
  languages: [
235
235
  {
236
236
  content:
237
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live!',
238
- language: 'en',
237
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live!",
238
+ language: "en",
239
239
  },
240
240
  ],
241
- category: 'MARKETING',
241
+ category: "MARKETING",
242
242
  },
243
243
  },
244
244
  },
245
245
  },
246
246
  isActive: true,
247
247
  orgId: 50074,
248
- createdBy: '15000449',
249
- updatedBy: '15000449',
250
- createdAt: '2022-07-17T11:54:04.926Z',
251
- updatedAt: '2022-07-17T11:54:04.926Z',
248
+ createdBy: "15000449",
249
+ updatedBy: "15000449",
250
+ createdAt: "2022-07-17T11:54:04.926Z",
251
+ updatedAt: "2022-07-17T11:54:04.926Z",
252
252
  totalCount: 6,
253
253
  },
254
254
  {
255
- _id: '62d3f7fbb497b63864bbf8ef',
256
- name: 'creatives_whatsapp2',
257
- type: 'WHATSAPP',
255
+ _id: "62d3f7fbb497b63864bbf8ef",
256
+ name: "creatives_whatsapp2",
257
+ type: "WHATSAPP",
258
258
  versions: {
259
259
  $init: true,
260
260
  history: [],
261
261
  base: {
262
262
  content: {
263
263
  whatsapp: {
264
- status: 'pending',
265
- templateId: '1838206886365227',
266
- hostName: 'karixwhatsappbulk',
267
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
268
- accountId: '107499611940863',
264
+ status: "pending",
265
+ templateId: "1838206886365227",
266
+ hostName: "karixwhatsappbulk",
267
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
268
+ accountId: "107499611940863",
269
269
  templateEditor: false,
270
- mediaType: 'TEXT',
270
+ mediaType: "TEXT",
271
271
  languages: [
272
272
  {
273
273
  content:
274
- 'Hi {{1}}, best offer {{2}} for you.\nClick {{3}} to unsubscribe',
275
- language: 'en',
274
+ "Hi {{1}}, best offer {{2}} for you.\nClick {{3}} to unsubscribe",
275
+ language: "en",
276
276
  },
277
277
  ],
278
- category: 'TRANSACTIONAL',
278
+ category: "TRANSACTIONAL",
279
279
  },
280
280
  },
281
281
  },
282
282
  },
283
283
  isActive: true,
284
284
  orgId: 50074,
285
- createdBy: '15000449',
286
- updatedBy: '15000449',
287
- createdAt: '2022-07-17T11:52:30.210Z',
288
- updatedAt: '2022-07-17T11:52:30.210Z',
285
+ createdBy: "15000449",
286
+ updatedBy: "15000449",
287
+ createdAt: "2022-07-17T11:52:30.210Z",
288
+ updatedAt: "2022-07-17T11:52:30.210Z",
289
289
  totalCount: 6,
290
290
  },
291
291
  {
292
- _id: '62d3f6afb497b651eabbf8ee',
293
- name: 'creatives_whatsapp1',
294
- type: 'WHATSAPP',
292
+ _id: "62d3f6afb497b651eabbf8ee",
293
+ name: "creatives_whatsapp1",
294
+ type: "WHATSAPP",
295
295
  versions: {
296
296
  $init: true,
297
297
  history: [],
298
298
  base: {
299
299
  content: {
300
300
  whatsapp: {
301
- status: 'pending',
302
- templateId: '412858944197174',
303
- hostName: 'karixwhatsappbulk',
304
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
305
- accountId: '107499611940863',
301
+ status: "pending",
302
+ templateId: "412858944197174",
303
+ hostName: "karixwhatsappbulk",
304
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
305
+ accountId: "107499611940863",
306
306
  templateEditor: false,
307
- mediaType: 'TEXT',
307
+ mediaType: "TEXT",
308
308
  languages: [
309
309
  {
310
- content: 'Hi {{1}}, best offer {{2}} for you.',
311
- language: 'en',
310
+ content: "Hi {{1}}, best offer {{2}} for you.",
311
+ language: "en",
312
312
  },
313
313
  ],
314
- category: 'TRANSACTIONAL',
314
+ category: "TRANSACTIONAL",
315
315
  },
316
316
  },
317
317
  },
318
318
  },
319
319
  isActive: true,
320
320
  orgId: 50074,
321
- createdBy: '15000449',
322
- updatedBy: '15000449',
323
- createdAt: '2022-07-17T11:46:57.973Z',
324
- updatedAt: '2022-07-17T11:46:57.973Z',
321
+ createdBy: "15000449",
322
+ updatedBy: "15000449",
323
+ createdAt: "2022-07-17T11:46:57.973Z",
324
+ updatedAt: "2022-07-17T11:46:57.973Z",
325
325
  totalCount: 6,
326
326
  },
327
327
  ],
@@ -334,11 +334,11 @@ export default {
334
334
  orgUsers: [
335
335
  {
336
336
  userId: 50012994,
337
- firstName: 'firstUser',
338
- lastName: '',
339
- loginName: 'firstUser@capillarytech.com',
340
- email: 'firstUser@capillarytech.com',
341
- mobile: '918888802132',
337
+ firstName: "firstUser",
338
+ lastName: "",
339
+ loginName: "firstUser@capillarytech.com",
340
+ email: "firstUser@capillarytech.com",
341
+ mobile: "918888802132",
342
342
  isMobileValidated: 0,
343
343
  isEmailValidated: 0,
344
344
  },
@@ -346,11 +346,11 @@ export default {
346
346
  capUsers: [
347
347
  {
348
348
  userId: 15000449,
349
- firstName: 'Ashish',
350
- lastName: 'Karan fd',
351
- loginName: 'cap@coin.com',
352
- email: 'cap@coin.com',
353
- mobile: '919957676767',
349
+ firstName: "Ashish",
350
+ lastName: "Karan fd",
351
+ loginName: "cap@coin.com",
352
+ email: "cap@coin.com",
353
+ mobile: "919957676767",
354
354
  isMobileValidated: 1,
355
355
  isEmailValidated: 1,
356
356
  },
@@ -363,9 +363,9 @@ export default {
363
363
  userListFetchError: false,
364
364
  templates: [
365
365
  {
366
- _id: '623c39e970387f3cf5f8fd70',
367
- name: 'testtest',
368
- type: 'RCS',
366
+ _id: "623c39e970387f3cf5f8fd70",
367
+ name: "testtest",
368
+ type: "RCS",
369
369
  versions: {
370
370
  $init: true,
371
371
  history: [],
@@ -374,22 +374,22 @@ export default {
374
374
  RCS: {
375
375
  cardContent: [
376
376
  {
377
- title: 'title',
378
- description: 'Desc',
379
- mediaType: 'NONE',
377
+ title: "title",
378
+ description: "Desc",
379
+ mediaType: "NONE",
380
380
  media: {
381
- mediaUrl: '',
382
- height: 'MEDIUM',
381
+ mediaUrl: "",
382
+ height: "MEDIUM",
383
383
  },
384
384
  },
385
385
  ],
386
386
  cardSettings: {
387
- cardOrientation: 'VERTICAL',
387
+ cardOrientation: "VERTICAL",
388
388
  },
389
- cardType: 'STANDALONE',
390
- contentType: 'RICHCARD',
389
+ cardType: "STANDALONE",
390
+ contentType: "RICHCARD",
391
391
  smsFallBackContent: {
392
- message: '123',
392
+ message: "123",
393
393
  },
394
394
  },
395
395
  },
@@ -397,16 +397,16 @@ export default {
397
397
  },
398
398
  isActive: true,
399
399
  orgId: 50146,
400
- createdBy: '15000449',
401
- updatedBy: '15000449',
402
- createdAt: '2022-03-24T09:29:13.376Z',
403
- updatedAt: '2022-03-29T11:15:53.175Z',
400
+ createdBy: "15000449",
401
+ updatedBy: "15000449",
402
+ createdAt: "2022-03-24T09:29:13.376Z",
403
+ updatedAt: "2022-03-29T11:15:53.175Z",
404
404
  totalCount: 10,
405
405
  },
406
406
  {
407
- _id: '623c3e0a70387fa8dcf8fd75',
408
- name: 'creative',
409
- type: 'RCS',
407
+ _id: "623c3e0a70387fa8dcf8fd75",
408
+ name: "creative",
409
+ type: "RCS",
410
410
  versions: {
411
411
  $init: true,
412
412
  history: [],
@@ -414,22 +414,22 @@ export default {
414
414
  content: {
415
415
  RCS: {
416
416
  smsFallBackContent: {
417
- message: 'fallback {{optout}}',
417
+ message: "fallback {{optout}}",
418
418
  },
419
- contentType: 'RICHCARD',
420
- cardType: 'STANDALONE',
419
+ contentType: "RICHCARD",
420
+ cardType: "STANDALONE",
421
421
  cardSettings: {
422
- cardOrientation: 'VERTICAL',
422
+ cardOrientation: "VERTICAL",
423
423
  },
424
424
  cardContent: [
425
425
  {
426
426
  media: {
427
- height: 'MEDIUM',
428
- mediaUrl: '',
427
+ height: "MEDIUM",
428
+ mediaUrl: "",
429
429
  },
430
- mediaType: 'NONE',
431
- description: 'desc {{store_name}}',
432
- title: 'title',
430
+ mediaType: "NONE",
431
+ description: "desc {{store_name}}",
432
+ title: "title",
433
433
  },
434
434
  ],
435
435
  },
@@ -438,16 +438,16 @@ export default {
438
438
  },
439
439
  isActive: true,
440
440
  orgId: 50146,
441
- createdBy: '15000449',
442
- updatedBy: '15000449',
443
- createdAt: '2022-03-24T09:46:50.688Z',
444
- updatedAt: '2022-03-24T09:46:50.688Z',
441
+ createdBy: "15000449",
442
+ updatedBy: "15000449",
443
+ createdAt: "2022-03-24T09:46:50.688Z",
444
+ updatedAt: "2022-03-24T09:46:50.688Z",
445
445
  totalCount: 10,
446
446
  },
447
447
  {
448
- _id: '623c279270387f94fff8fd6e',
449
- name: 'Test_1111',
450
- type: 'RCS',
448
+ _id: "623c279270387f94fff8fd6e",
449
+ name: "Test_1111",
450
+ type: "RCS",
451
451
  versions: {
452
452
  $init: true,
453
453
  history: [],
@@ -455,23 +455,23 @@ export default {
455
455
  content: {
456
456
  RCS: {
457
457
  smsFallBackContent: {
458
- message: 'Test SMS message',
458
+ message: "Test SMS message",
459
459
  },
460
- contentType: 'RICHCARD',
461
- cardType: 'STANDALONE',
460
+ contentType: "RICHCARD",
461
+ cardType: "STANDALONE",
462
462
  cardSettings: {
463
- cardOrientation: 'VERTICAL',
463
+ cardOrientation: "VERTICAL",
464
464
  },
465
465
  cardContent: [
466
466
  {
467
467
  media: {
468
- height: 'MEDIUM',
468
+ height: "MEDIUM",
469
469
  mediaUrl:
470
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg',
470
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/abc49b13-6e84-4ff9-8859-6dd8d8d5.jpg",
471
471
  },
472
- mediaType: 'IMAGE',
473
- description: 'Test Text message\n{{store_name}}',
474
- title: 'Test Title',
472
+ mediaType: "IMAGE",
473
+ description: "Test Text message\n{{store_name}}",
474
+ title: "Test Title",
475
475
  },
476
476
  ],
477
477
  },
@@ -480,16 +480,16 @@ export default {
480
480
  },
481
481
  isActive: true,
482
482
  orgId: 50146,
483
- createdBy: '15000449',
484
- updatedBy: '15000449',
485
- createdAt: '2022-03-24T08:10:58.084Z',
486
- updatedAt: '2022-03-24T08:10:58.084Z',
483
+ createdBy: "15000449",
484
+ updatedBy: "15000449",
485
+ createdAt: "2022-03-24T08:10:58.084Z",
486
+ updatedAt: "2022-03-24T08:10:58.084Z",
487
487
  totalCount: 10,
488
488
  },
489
489
  {
490
- _id: '623c264b70387f4db0f8fd6d',
491
- name: 'Copy of Test_112 03-24-2022 13:35:31',
492
- type: 'RCS',
490
+ _id: "623c264b70387f4db0f8fd6d",
491
+ name: "Copy of Test_112 03-24-2022 13:35:31",
492
+ type: "RCS",
493
493
  versions: {
494
494
  $init: true,
495
495
  history: [],
@@ -498,23 +498,23 @@ export default {
498
498
  RCS: {
499
499
  cardContent: [
500
500
  {
501
- title: 'Hi I am Title',
502
- description: 'Hi I am Text message',
503
- mediaType: 'IMAGE',
501
+ title: "Hi I am Title",
502
+ description: "Hi I am Text message",
503
+ mediaType: "IMAGE",
504
504
  media: {
505
505
  mediaUrl:
506
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg',
507
- height: 'MEDIUM',
506
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
507
+ height: "MEDIUM",
508
508
  },
509
509
  },
510
510
  ],
511
511
  cardSettings: {
512
- cardOrientation: 'VERTICAL',
512
+ cardOrientation: "VERTICAL",
513
513
  },
514
- cardType: 'STANDALONE',
515
- contentType: 'RICHCARD',
514
+ cardType: "STANDALONE",
515
+ contentType: "RICHCARD",
516
516
  smsFallBackContent: {
517
- message: '',
517
+ message: "",
518
518
  },
519
519
  },
520
520
  },
@@ -522,16 +522,16 @@ export default {
522
522
  },
523
523
  isActive: true,
524
524
  orgId: 50146,
525
- createdBy: '15000449',
526
- updatedBy: '15000449',
527
- createdAt: '2022-03-24T08:05:31.979Z',
528
- updatedAt: '2022-03-24T08:05:31.979Z',
525
+ createdBy: "15000449",
526
+ updatedBy: "15000449",
527
+ createdAt: "2022-03-24T08:05:31.979Z",
528
+ updatedAt: "2022-03-24T08:05:31.979Z",
529
529
  totalCount: 10,
530
530
  },
531
531
  {
532
- _id: '623c000670387f4df6f8fd59',
533
- name: 'Test_112',
534
- type: 'RCS',
532
+ _id: "623c000670387f4df6f8fd59",
533
+ name: "Test_112",
534
+ type: "RCS",
535
535
  versions: {
536
536
  $init: true,
537
537
  history: [],
@@ -539,23 +539,23 @@ export default {
539
539
  content: {
540
540
  RCS: {
541
541
  smsFallBackContent: {
542
- message: '',
542
+ message: "",
543
543
  },
544
- contentType: 'RICHCARD',
545
- cardType: 'STANDALONE',
544
+ contentType: "RICHCARD",
545
+ cardType: "STANDALONE",
546
546
  cardSettings: {
547
- cardOrientation: 'VERTICAL',
547
+ cardOrientation: "VERTICAL",
548
548
  },
549
549
  cardContent: [
550
550
  {
551
551
  media: {
552
- height: 'MEDIUM',
552
+ height: "MEDIUM",
553
553
  mediaUrl:
554
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg',
554
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c01ca156-ca83-4b1c-8e5a-40f02048.jpg",
555
555
  },
556
- mediaType: 'IMAGE',
557
- description: 'Hi I am Text message',
558
- title: 'Hi I am Title',
556
+ mediaType: "IMAGE",
557
+ description: "Hi I am Text message",
558
+ title: "Hi I am Title",
559
559
  },
560
560
  ],
561
561
  },
@@ -564,16 +564,16 @@ export default {
564
564
  },
565
565
  isActive: true,
566
566
  orgId: 50146,
567
- createdBy: '15000449',
568
- updatedBy: '15000449',
569
- createdAt: '2022-03-24T05:22:15.073Z',
570
- updatedAt: '2022-03-24T05:22:15.073Z',
567
+ createdBy: "15000449",
568
+ updatedBy: "15000449",
569
+ createdAt: "2022-03-24T05:22:15.073Z",
570
+ updatedAt: "2022-03-24T05:22:15.073Z",
571
571
  totalCount: 10,
572
572
  },
573
573
  {
574
- _id: '623bff3570387f33a4f8fd56',
575
- name: 'Test_111',
576
- type: 'RCS',
574
+ _id: "623bff3570387f33a4f8fd56",
575
+ name: "Test_111",
576
+ type: "RCS",
577
577
  versions: {
578
578
  $init: true,
579
579
  history: [],
@@ -581,22 +581,22 @@ export default {
581
581
  content: {
582
582
  RCS: {
583
583
  smsFallBackContent: {
584
- message: 'HI I am Fallback SMS{{optout}}',
584
+ message: "HI I am Fallback SMS{{optout}}",
585
585
  },
586
- contentType: 'RICHCARD',
587
- cardType: 'STANDALONE',
586
+ contentType: "RICHCARD",
587
+ cardType: "STANDALONE",
588
588
  cardSettings: {
589
- cardOrientation: 'VERTICAL',
589
+ cardOrientation: "VERTICAL",
590
590
  },
591
591
  cardContent: [
592
592
  {
593
593
  media: {
594
- height: 'MEDIUM',
595
- mediaUrl: '',
594
+ height: "MEDIUM",
595
+ mediaUrl: "",
596
596
  },
597
- mediaType: 'NONE',
598
- description: 'Hi I am Description{{optout}}',
599
- title: 'Hi I am Title',
597
+ mediaType: "NONE",
598
+ description: "Hi I am Description{{optout}}",
599
+ title: "Hi I am Title",
600
600
  },
601
601
  ],
602
602
  },
@@ -605,16 +605,16 @@ export default {
605
605
  },
606
606
  isActive: true,
607
607
  orgId: 50146,
608
- createdBy: '15000449',
609
- updatedBy: '15000449',
610
- createdAt: '2022-03-24T05:18:45.280Z',
611
- updatedAt: '2022-03-24T05:18:45.280Z',
608
+ createdBy: "15000449",
609
+ updatedBy: "15000449",
610
+ createdAt: "2022-03-24T05:18:45.280Z",
611
+ updatedAt: "2022-03-24T05:18:45.280Z",
612
612
  totalCount: 10,
613
613
  },
614
614
  {
615
- _id: '623bfc6870387fb550f8fd55',
616
- name: 'Copy of test_vin_8 03-24-2022 10:36:45',
617
- type: 'RCS',
615
+ _id: "623bfc6870387fb550f8fd55",
616
+ name: "Copy of test_vin_8 03-24-2022 10:36:45",
617
+ type: "RCS",
618
618
  versions: {
619
619
  $init: true,
620
620
  history: [],
@@ -623,23 +623,23 @@ export default {
623
623
  RCS: {
624
624
  cardContent: [
625
625
  {
626
- title: 'This is RCS title',
627
- description: 'This is RCS description {{optout}}',
628
- mediaType: 'IMAGE',
626
+ title: "This is RCS title",
627
+ description: "This is RCS description {{optout}}",
628
+ mediaType: "IMAGE",
629
629
  media: {
630
630
  mediaUrl:
631
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg',
632
- height: 'MEDIUM',
631
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
632
+ height: "MEDIUM",
633
633
  },
634
634
  },
635
635
  ],
636
636
  cardSettings: {
637
- cardOrientation: 'VERTICAL',
637
+ cardOrientation: "VERTICAL",
638
638
  },
639
- cardType: 'STANDALONE',
640
- contentType: 'RICHCARD',
639
+ cardType: "STANDALONE",
640
+ contentType: "RICHCARD",
641
641
  smsFallBackContent: {
642
- message: 'This is fallback msg {{optout}}',
642
+ message: "This is fallback msg {{optout}}",
643
643
  },
644
644
  },
645
645
  },
@@ -647,16 +647,16 @@ export default {
647
647
  },
648
648
  isActive: true,
649
649
  orgId: 50146,
650
- createdBy: '15000449',
651
- updatedBy: '15000449',
652
- createdAt: '2022-03-24T05:06:48.885Z',
653
- updatedAt: '2022-03-24T05:06:48.885Z',
650
+ createdBy: "15000449",
651
+ updatedBy: "15000449",
652
+ createdAt: "2022-03-24T05:06:48.885Z",
653
+ updatedAt: "2022-03-24T05:06:48.885Z",
654
654
  totalCount: 10,
655
655
  },
656
656
  {
657
- _id: '623acf4df971231e66c85882',
658
- name: 'test_vin_8',
659
- type: 'RCS',
657
+ _id: "623acf4df971231e66c85882",
658
+ name: "test_vin_8",
659
+ type: "RCS",
660
660
  versions: {
661
661
  $init: true,
662
662
  history: [],
@@ -664,23 +664,23 @@ export default {
664
664
  content: {
665
665
  RCS: {
666
666
  smsFallBackContent: {
667
- message: 'This is fallback msg {{optout}}',
667
+ message: "This is fallback msg {{optout}}",
668
668
  },
669
- contentType: 'RICHCARD',
670
- cardType: 'STANDALONE',
669
+ contentType: "RICHCARD",
670
+ cardType: "STANDALONE",
671
671
  cardSettings: {
672
- cardOrientation: 'VERTICAL',
672
+ cardOrientation: "VERTICAL",
673
673
  },
674
674
  cardContent: [
675
675
  {
676
676
  media: {
677
- height: 'MEDIUM',
677
+ height: "MEDIUM",
678
678
  mediaUrl:
679
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg',
679
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/62f8c77c-f132-44d8-a822-0e90f57c.jpg",
680
680
  },
681
- mediaType: 'IMAGE',
682
- description: 'This is RCS description {{optout}}',
683
- title: 'This is RCS title',
681
+ mediaType: "IMAGE",
682
+ description: "This is RCS description {{optout}}",
683
+ title: "This is RCS title",
684
684
  },
685
685
  ],
686
686
  },
@@ -689,16 +689,16 @@ export default {
689
689
  },
690
690
  isActive: true,
691
691
  orgId: 50146,
692
- createdBy: '15000449',
693
- updatedBy: '15000449',
694
- createdAt: '2022-03-23T07:42:05.226Z',
695
- updatedAt: '2022-03-23T07:42:05.226Z',
692
+ createdBy: "15000449",
693
+ updatedBy: "15000449",
694
+ createdAt: "2022-03-23T07:42:05.226Z",
695
+ updatedAt: "2022-03-23T07:42:05.226Z",
696
696
  totalCount: 10,
697
697
  },
698
698
  {
699
- _id: '62388944a7e1a1e8fddfe97f',
700
- name: 'test_template_112',
701
- type: 'RCS',
699
+ _id: "62388944a7e1a1e8fddfe97f",
700
+ name: "test_template_112",
701
+ type: "RCS",
702
702
  versions: {
703
703
  $init: true,
704
704
  history: [],
@@ -706,59 +706,59 @@ export default {
706
706
  content: {
707
707
  RCS: {
708
708
  smsFallBackContent: {
709
- message: 'fallback message {{voucher(373913)}}',
709
+ message: "fallback message {{voucher(373913)}}",
710
710
  templateConfigs: {
711
711
  templateVariableMapping: {
712
- '{#var#}_6': {
712
+ "{#var#}_6": {
713
713
  count: 3,
714
- data: 'test22',
714
+ data: "test22",
715
715
  },
716
- '{#var#}_1': {
716
+ "{#var#}_1": {
717
717
  count: 4,
718
- data: 'test11',
718
+ data: "test11",
719
719
  },
720
720
  },
721
- registeredSenderIds: ['CPLRYT', 'CPLRY'],
721
+ registeredSenderIds: ["CPLRYT", "CPLRY"],
722
722
  template:
723
- 'Hi {#var#} enjoy 50% off at Celio. Capillary Tech.',
724
- templateId: 'template_whatever_id',
723
+ "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
724
+ templateId: "template_whatever_id",
725
725
  },
726
726
  },
727
727
  cardSettings: {
728
- cardOrientation: 'VERTICAL',
728
+ cardOrientation: "VERTICAL",
729
729
  },
730
- cardType: 'STANDALONE',
731
- contentType: 'RICHCARD',
730
+ cardType: "STANDALONE",
731
+ contentType: "RICHCARD",
732
732
  cardContent: [
733
733
  {
734
734
  media: {
735
735
  mediaUrl:
736
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg',
737
- height: 'MEDIUM',
736
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/e4a14f49-9e1d-4d96-b7d2-9768f0e.jpeg",
737
+ height: "MEDIUM",
738
738
  },
739
- mediaType: 'NONE',
739
+ mediaType: "NONE",
740
740
  description:
741
741
  "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.",
742
- title: 'title',
742
+ title: "title",
743
743
  },
744
744
  ],
745
- mediaType: 'text',
745
+ mediaType: "text",
746
746
  },
747
747
  },
748
748
  },
749
749
  },
750
750
  isActive: true,
751
751
  orgId: 50146,
752
- createdBy: '15000449',
753
- updatedBy: '15000449',
754
- createdAt: '2022-03-21T14:18:44.322Z',
755
- updatedAt: '2022-03-21T14:18:44.322Z',
752
+ createdBy: "15000449",
753
+ updatedBy: "15000449",
754
+ createdAt: "2022-03-21T14:18:44.322Z",
755
+ updatedAt: "2022-03-21T14:18:44.322Z",
756
756
  totalCount: 10,
757
757
  },
758
758
  {
759
- _id: '623888aca7e1a16926dfe97d',
760
- name: 'test_template_111',
761
- type: 'RCS',
759
+ _id: "623888aca7e1a16926dfe97d",
760
+ name: "test_template_111",
761
+ type: "RCS",
762
762
  versions: {
763
763
  $init: true,
764
764
  history: [],
@@ -766,53 +766,53 @@ export default {
766
766
  content: {
767
767
  RCS: {
768
768
  smsFallBackContent: {
769
- message: 'fallback message {{voucher(373913)}}',
769
+ message: "fallback message {{voucher(373913)}}",
770
770
  templateConfigs: {
771
771
  templateVariableMapping: {
772
- '{#var#}_6': {
772
+ "{#var#}_6": {
773
773
  count: 3,
774
- data: 'test22',
774
+ data: "test22",
775
775
  },
776
- '{#var#}_1': {
776
+ "{#var#}_1": {
777
777
  count: 4,
778
- data: 'test11',
778
+ data: "test11",
779
779
  },
780
780
  },
781
- registeredSenderIds: ['CPLRYT', 'CPLRY'],
781
+ registeredSenderIds: ["CPLRYT", "CPLRY"],
782
782
  template:
783
- 'Hi {#var#} enjoy 50% off at Celio. Capillary Tech.',
784
- templateId: 'template_whatever_id',
783
+ "Hi {#var#} enjoy 50% off at Celio. Capillary Tech.",
784
+ templateId: "template_whatever_id",
785
785
  },
786
786
  },
787
787
  cardSettings: {
788
- cardOrientation: 'VERTICAL',
788
+ cardOrientation: "VERTICAL",
789
789
  },
790
- cardType: 'STANDALONE',
791
- contentType: 'RICHCARD',
790
+ cardType: "STANDALONE",
791
+ contentType: "RICHCARD",
792
792
  cardContent: [
793
793
  {
794
794
  media: {
795
795
  mediaUrl:
796
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg',
797
- height: 'MEDIUM',
796
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c2c793b1-4740-47b6-819a-4310354d.jpg",
797
+ height: "MEDIUM",
798
798
  },
799
- mediaType: 'NONE',
799
+ mediaType: "NONE",
800
800
  description:
801
- 'Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.',
802
- title: 'title',
801
+ "Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.",
802
+ title: "title",
803
803
  },
804
804
  ],
805
- mediaType: 'text',
805
+ mediaType: "text",
806
806
  },
807
807
  },
808
808
  },
809
809
  },
810
810
  isActive: true,
811
811
  orgId: 50146,
812
- createdBy: '15000449',
813
- updatedBy: '15000449',
814
- createdAt: '2022-03-21T14:16:12.731Z',
815
- updatedAt: '2022-03-21T14:16:12.731Z',
812
+ createdBy: "15000449",
813
+ updatedBy: "15000449",
814
+ createdAt: "2022-03-21T14:16:12.731Z",
815
+ updatedAt: "2022-03-21T14:16:12.731Z",
816
816
  totalCount: 10,
817
817
  },
818
818
  ],
@@ -825,11 +825,11 @@ export default {
825
825
  orgUsers: [
826
826
  {
827
827
  userId: 50012994,
828
- firstName: 'firstUser',
829
- lastName: '',
830
- loginName: 'firstUser@capillarytech.com',
831
- email: 'firstUser@capillarytech.com',
832
- mobile: '918888802132',
828
+ firstName: "firstUser",
829
+ lastName: "",
830
+ loginName: "firstUser@capillarytech.com",
831
+ email: "firstUser@capillarytech.com",
832
+ mobile: "918888802132",
833
833
  isMobileValidated: 0,
834
834
  isEmailValidated: 0,
835
835
  },
@@ -837,11 +837,11 @@ export default {
837
837
  capUsers: [
838
838
  {
839
839
  userId: 15000449,
840
- firstName: 'Ashish',
841
- lastName: 'Karan fd',
842
- loginName: 'cap@coin.com',
843
- email: 'cap@coin.com',
844
- mobile: '919957676767',
840
+ firstName: "Ashish",
841
+ lastName: "Karan fd",
842
+ loginName: "cap@coin.com",
843
+ email: "cap@coin.com",
844
+ mobile: "919957676767",
845
845
  isMobileValidated: 1,
846
846
  isEmailValidated: 1,
847
847
  },
@@ -854,21 +854,20 @@ export default {
854
854
  userListFetchError: false,
855
855
  templates: [
856
856
  {
857
- _id: '623c39e970387f3cf5f8fd70',
858
- name: 'testtest',
859
- type: 'SMS',
857
+ _id: "623c39e970387f3cf5f8fd70",
858
+ name: "testtest",
859
+ type: "SMS",
860
860
  versions: {
861
861
  $init: true,
862
862
  history: [],
863
- base: {
864
- },
863
+ base: {},
865
864
  },
866
865
  isActive: true,
867
866
  orgId: 50146,
868
- createdBy: '15000449',
869
- updatedBy: '15000449',
870
- createdAt: '2022-03-24T09:29:13.376Z',
871
- updatedAt: '2022-03-29T11:15:53.175Z',
867
+ createdBy: "15000449",
868
+ updatedBy: "15000449",
869
+ createdAt: "2022-03-24T09:29:13.376Z",
870
+ updatedAt: "2022-03-29T11:15:53.175Z",
872
871
  totalCount: 10,
873
872
  },
874
873
  ],
@@ -881,11 +880,11 @@ export default {
881
880
  orgUsers: [
882
881
  {
883
882
  userId: 50012994,
884
- firstName: 'firstUser',
885
- lastName: '',
886
- loginName: 'firstUser@capillarytech.com',
887
- email: 'firstUser@capillarytech.com',
888
- mobile: '918888802132',
883
+ firstName: "firstUser",
884
+ lastName: "",
885
+ loginName: "firstUser@capillarytech.com",
886
+ email: "firstUser@capillarytech.com",
887
+ mobile: "918888802132",
889
888
  isMobileValidated: 0,
890
889
  isEmailValidated: 0,
891
890
  },
@@ -893,11 +892,11 @@ export default {
893
892
  capUsers: [
894
893
  {
895
894
  userId: 15000449,
896
- firstName: 'Ashish',
897
- lastName: 'Karan fd',
898
- loginName: 'cap@coin.com',
899
- email: 'cap@coin.com',
900
- mobile: '919957676767',
895
+ firstName: "Ashish",
896
+ lastName: "Karan fd",
897
+ loginName: "cap@coin.com",
898
+ email: "cap@coin.com",
899
+ mobile: "919957676767",
901
900
  isMobileValidated: 1,
902
901
  isEmailValidated: 1,
903
902
  },
@@ -910,155 +909,154 @@ export default {
910
909
  userListFetchError: false,
911
910
  templates: [
912
911
  {
913
- _id: '623c39e970387f3cf5f8fd70',
914
- name: 'testtest',
915
- type: 'EMAIL',
912
+ _id: "623c39e970387f3cf5f8fd70",
913
+ name: "testtest",
914
+ type: "EMAIL",
916
915
  versions: {
917
916
  $init: true,
918
917
  history: [],
919
- base: {
920
- },
918
+ base: {},
921
919
  },
922
920
  isActive: true,
923
921
  orgId: 50146,
924
- createdBy: '15000449',
925
- updatedBy: '15000449',
926
- createdAt: '2022-03-24T09:29:13.376Z',
927
- updatedAt: '2022-03-29T11:15:53.175Z',
922
+ createdBy: "15000449",
923
+ updatedBy: "15000449",
924
+ createdAt: "2022-03-24T09:29:13.376Z",
925
+ updatedAt: "2022-03-29T11:15:53.175Z",
928
926
  totalCount: 10,
929
927
  },
930
928
  ],
931
929
  },
932
930
  whatsappEditTemplateData: {
933
- mode: 'edit',
934
- _id: '620e213d39bd394c58aeaaca',
935
- modeType: '',
936
- whatsappTemplateName: 'amit123456',
937
- whatsappTemplateCategory: 'ALERT_UPDATE',
938
- whatsappTemplateLanguageCode: 'en',
939
- type: 'WHATSAPP',
940
- channel: 'WHATSAPP',
931
+ mode: "edit",
932
+ _id: "620e213d39bd394c58aeaaca",
933
+ modeType: "",
934
+ whatsappTemplateName: "amit123456",
935
+ whatsappTemplateCategory: "ALERT_UPDATE",
936
+ whatsappTemplateLanguageCode: "en",
937
+ type: "WHATSAPP",
938
+ channel: "WHATSAPP",
941
939
  validity: true,
942
940
  },
943
941
  whatsappGetTemplateData1: {
944
- channel: 'WHATSAPP',
945
- storeType: 'REGISTERED_STORE',
942
+ channel: "WHATSAPP",
943
+ storeType: "REGISTERED_STORE",
946
944
  accountId: 12721,
947
945
  messagePartsCount: 1,
948
946
  messageBody:
949
- 'Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test',
947
+ "Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test",
950
948
  templateConfigs: {
951
- name: 'creatives_whatsapp6',
952
- language: 'en',
949
+ name: "creatives_whatsapp6",
950
+ language: "en",
953
951
  varMapped: {
954
- '{{1}}_1': 'test',
955
- '{{2}}_3': 'test',
952
+ "{{1}}_1": "test",
953
+ "{{2}}_3": "test",
956
954
  },
957
955
  template:
958
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}',
959
- id: 'creatives_whatsapp6',
960
- category: 'MARKETING',
956
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}",
957
+ id: "creatives_whatsapp6",
958
+ category: "MARKETING",
961
959
  },
962
- accountName: 'WhatsappAccount',
960
+ accountName: "WhatsappAccount",
963
961
  },
964
962
  whatsappGetTemplateData2: {
965
- channel: 'WHATSAPP',
966
- storeType: 'REGISTERED_STORE',
963
+ channel: "WHATSAPP",
964
+ storeType: "REGISTERED_STORE",
967
965
  accountId: 12721,
968
966
  messagePartsCount: 1,
969
967
  messageBody:
970
- 'Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test\nClick {{unsubscribe}} to unsubscribe',
968
+ "Hey test, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test\nClick {{unsubscribe}} to unsubscribe",
971
969
  templateConfigs: {
972
970
  buttons: [
973
971
  {
974
- text: 'Call',
975
- type: 'PHONE_NUMBER',
976
- phoneNumber: '+919738752617',
972
+ text: "Call",
973
+ type: "PHONE_NUMBER",
974
+ phoneNumber: "+919738752617",
977
975
  index: 0,
978
976
  },
979
977
  {
980
- text: 'Visit',
981
- type: 'DYNAMIC_URL',
982
- url: 'https://docs.google.com/{{optout}}',
978
+ text: "Visit",
979
+ type: "DYNAMIC_URL",
980
+ url: "https://docs.google.com/{{optout}}",
983
981
  index: 1,
984
- dynamicUrlPayload: '{{optout}}',
982
+ dynamicUrlPayload: "{{optout}}",
985
983
  },
986
984
  ],
987
- name: 'creatives_whatsapp6',
988
- buttonType: 'CTA',
985
+ name: "creatives_whatsapp6",
986
+ buttonType: "CTA",
989
987
  whatsappMedia: {
990
- url: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
988
+ url: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
991
989
  },
992
- language: 'en',
990
+ language: "en",
993
991
  varMapped: {
994
- '{{1}}_1': 'test',
995
- '{{2}}_3': 'test',
996
- '{{3}}_unsubscribe': '{{unsubscribe}}',
992
+ "{{1}}_1": "test",
993
+ "{{2}}_3": "test",
994
+ "{{3}}_unsubscribe": "{{unsubscribe}}",
997
995
  },
998
996
  template:
999
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}',
1000
- id: 'creatives_whatsapp6',
1001
- category: 'MARKETING',
1002
- mediaType: 'IMAGE',
997
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}",
998
+ id: "creatives_whatsapp6",
999
+ category: "MARKETING",
1000
+ mediaType: "IMAGE",
1003
1001
  },
1004
- accountName: 'WhatsappAccount',
1002
+ accountName: "WhatsappAccount",
1005
1003
  },
1006
1004
  whatsappGetCreativeData1: {
1007
1005
  value: {
1008
- name: 'creatives_whatsapp6',
1006
+ name: "creatives_whatsapp6",
1009
1007
  versions: {
1010
1008
  base: {
1011
1009
  content: {
1012
1010
  whatsapp: {
1013
- category: 'MARKETING',
1011
+ category: "MARKETING",
1014
1012
  languages: [
1015
1013
  {
1016
- language: 'en',
1014
+ language: "en",
1017
1015
  content:
1018
- 'Hey test1, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test2\nClick {{unsubscribe}} to unsubscribe',
1016
+ "Hey test1, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at test2\nClick {{unsubscribe}} to unsubscribe",
1019
1017
  },
1020
1018
  ],
1021
- buttonType: 'CTA',
1019
+ buttonType: "CTA",
1022
1020
  buttons: [
1023
1021
  {
1024
1022
  index: 0,
1025
- type: 'PHONE_NUMBER',
1026
- text: 'Call',
1027
- phone_number: '+919738752617',
1023
+ type: "PHONE_NUMBER",
1024
+ text: "Call",
1025
+ phone_number: "+919738752617",
1028
1026
  },
1029
1027
  {
1030
1028
  index: 1,
1031
- type: 'DYNAMIC_URL',
1032
- text: 'Visit',
1033
- url: 'https://docs.google.com/{{first_name}}',
1029
+ type: "DYNAMIC_URL",
1030
+ text: "Visit",
1031
+ url: "https://docs.google.com/{{first_name}}",
1034
1032
  },
1035
1033
  ],
1036
- mediaType: 'IMAGE',
1034
+ mediaType: "IMAGE",
1037
1035
  imageUrl:
1038
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
1039
- karixFileHandle: '',
1036
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
1037
+ karixFileHandle: "",
1040
1038
  varMapped: {
1041
- '{{1}}_1': 'test1',
1042
- '{{2}}_3': 'test2',
1039
+ "{{1}}_1": "test1",
1040
+ "{{2}}_3": "test2",
1043
1041
  },
1044
1042
  templateEditor:
1045
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}',
1046
- accountId: '',
1047
- accessToken: '',
1048
- hostName: '',
1043
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}",
1044
+ accountId: "",
1045
+ accessToken: "",
1046
+ hostName: "",
1049
1047
  },
1050
1048
  },
1051
1049
  },
1052
1050
  },
1053
- type: 'WHATSAPP',
1051
+ type: "WHATSAPP",
1054
1052
  },
1055
1053
  validity: true,
1056
- type: 'WHATSAPP',
1057
- channel: 'WHATSAPP',
1054
+ type: "WHATSAPP",
1055
+ channel: "WHATSAPP",
1058
1056
  },
1059
1057
  whatsappGetCreativeData2: {
1060
1058
  value: {
1061
- name: 'creatives_whatsapp6',
1059
+ name: "creatives_whatsapp6",
1062
1060
  versions: {
1063
1061
  base: {
1064
1062
  content: {
@@ -1066,79 +1064,95 @@ export default {
1066
1064
  },
1067
1065
  },
1068
1066
  },
1069
- type: 'WHATSAPP',
1067
+ type: "WHATSAPP",
1070
1068
  },
1071
1069
  validity: true,
1072
- type: 'WHATSAPP',
1073
- channel: 'WHATSAPP',
1070
+ type: "WHATSAPP",
1071
+ channel: "WHATSAPP",
1074
1072
  },
1075
- getWhatsappDocPreviewOutput:
1076
- (
1077
- <>
1078
- <div className="pdf-img-box">
1079
- <CapImage src={"https://play-lh.googleusercontent.com/BkRfMfIRPR9hUnmIYGDgHHKjow-g18-ouP6B2ko__VnyUHSi1spcc78UtZ4sVUtBH4g"} alt="upload-document-src" className="pdf-preview-img" />
1080
- </div>
1081
- <div className="pdf-label">
1082
- <CapImage src={pdfIcon} />
1083
- <div className="pdf-info">
1084
- <div className="pdf-name-div">
1085
- <CapLabel type="label9" className="pdf-name">java_tutorial.pdf</CapLabel>
1086
- </div>
1087
- <CapLabel className="pdf-info-sec">
1088
- {2} {<FormattedMessage {...messages.pages} />}{` · 1.0 MB · `}
1089
- <FormattedMessage {...messages.pdf} />
1073
+ getWhatsappDocPreviewOutput: (
1074
+ <>
1075
+ <div className="pdf-img-box">
1076
+ <CapImage
1077
+ src={
1078
+ "https://play-lh.googleusercontent.com/BkRfMfIRPR9hUnmIYGDgHHKjow-g18-ouP6B2ko__VnyUHSi1spcc78UtZ4sVUtBH4g"
1079
+ }
1080
+ alt="upload-document-src"
1081
+ className="pdf-preview-img"
1082
+ />
1083
+ </div>
1084
+ <div className="pdf-label">
1085
+ <CapImage src={pdfIcon} />
1086
+ <div className="pdf-info">
1087
+ <div className="pdf-name-div">
1088
+ <CapLabel type="label9" className="pdf-name">
1089
+ java_tutorial.pdf
1090
1090
  </CapLabel>
1091
1091
  </div>
1092
+ <CapLabel className="pdf-info-sec">
1093
+ {2} {<FormattedMessage {...messages.pages} />}
1094
+ {` · 1.0 MB · `}
1095
+ <FormattedMessage {...messages.pdf} />
1096
+ </CapLabel>
1092
1097
  </div>
1093
- </>
1094
- ),
1095
- getWhatsappDocPreviewOutput1:
1096
- (
1097
- <>
1098
- <div className="pdf-img-box">
1099
- <CapImage src={"https://play-lh.googleusercontent.com/BkRfMfIRPR9hUnmIYGDgHHKjow-g18-ouP6B2ko__VnyUHSi1spcc78UtZ4sVUtBH4g"} alt="upload-document-src" className="pdf-preview-img" />
1100
- </div>
1101
- <div className="pdf-label">
1102
- <CapImage src={pdfIcon} />
1103
- <div className="pdf-info">
1104
- <div className="pdf-name-div">
1105
- <CapLabel type="label9" className="pdf-name">java_tutorial.pdf</CapLabel>
1106
- </div>
1107
- <CapLabel className="pdf-info-sec">
1108
- {1} {<FormattedMessage {...messages.page} />}{` · 1.0 MB · `}
1109
- <FormattedMessage {...messages.pdf} />
1098
+ </div>
1099
+ </>
1100
+ ),
1101
+ getWhatsappDocPreviewOutput1: (
1102
+ <>
1103
+ <div className="pdf-img-box">
1104
+ <CapImage
1105
+ src={
1106
+ "https://play-lh.googleusercontent.com/BkRfMfIRPR9hUnmIYGDgHHKjow-g18-ouP6B2ko__VnyUHSi1spcc78UtZ4sVUtBH4g"
1107
+ }
1108
+ alt="upload-document-src"
1109
+ className="pdf-preview-img"
1110
+ />
1111
+ </div>
1112
+ <div className="pdf-label">
1113
+ <CapImage src={pdfIcon} />
1114
+ <div className="pdf-info">
1115
+ <div className="pdf-name-div">
1116
+ <CapLabel type="label9" className="pdf-name">
1117
+ java_tutorial.pdf
1110
1118
  </CapLabel>
1111
1119
  </div>
1120
+ <CapLabel className="pdf-info-sec">
1121
+ {1} {<FormattedMessage {...messages.page} />}
1122
+ {` · 1.0 MB · `}
1123
+ <FormattedMessage {...messages.pdf} />
1124
+ </CapLabel>
1112
1125
  </div>
1113
- </>
1114
- ),
1126
+ </div>
1127
+ </>
1128
+ ),
1115
1129
  rcsEditTemplateData: {
1116
- mode: 'edit',
1117
- _id: '620e213d39bd394c58aeaaca',
1118
- modeType: '',
1119
- type: 'RCS',
1120
- channel: 'RCS',
1130
+ mode: "edit",
1131
+ _id: "620e213d39bd394c58aeaaca",
1132
+ modeType: "",
1133
+ type: "RCS",
1134
+ channel: "RCS",
1121
1135
  validity: true,
1122
1136
  },
1123
1137
  smsEditTemplateData: {
1124
- mode: 'edit',
1125
- _id: '620e213d39bd394c58aeaaca',
1126
- modeType: '',
1127
- type: 'SMS',
1128
- channel: 'SMS',
1138
+ mode: "edit",
1139
+ _id: "620e213d39bd394c58aeaaca",
1140
+ modeType: "",
1141
+ type: "SMS",
1142
+ channel: "SMS",
1129
1143
  validity: true,
1130
1144
  },
1131
1145
  emailEditTemplateData: {
1132
- mode: 'edit',
1133
- _id: '620e213d39bd394c58aeaaca',
1134
- modeType: '',
1135
- type: 'EMAIL',
1136
- channel: 'EMAIL',
1146
+ mode: "edit",
1147
+ _id: "620e213d39bd394c58aeaaca",
1148
+ modeType: "",
1149
+ type: "EMAIL",
1150
+ channel: "EMAIL",
1137
1151
  validity: true,
1138
1152
  },
1139
- getWhatsappContentOutput: '1234567890\nClick {{unsubscribe}} to unsubscribe',
1153
+ getWhatsappContentOutput: "1234567890\nClick {{unsubscribe}} to unsubscribe",
1140
1154
  getWhatsappStatusOutput1: {
1141
- key: 'approved',
1155
+ key: "approved",
1142
1156
  label: (
1143
1157
  <FormattedMessage
1144
1158
  defaultMessage="Approved"
@@ -1146,10 +1160,10 @@ export default {
1146
1160
  values={{}}
1147
1161
  />
1148
1162
  ),
1149
- value: 'approved',
1163
+ value: "approved",
1150
1164
  },
1151
1165
  getWhatsappCategoryOutput1: {
1152
- key: 'alertUpdate',
1166
+ key: "alertUpdate",
1153
1167
  label: (
1154
1168
  <FormattedMessage
1155
1169
  defaultMessage="Alert update"
@@ -1157,8 +1171,8 @@ export default {
1157
1171
  values={{}}
1158
1172
  />
1159
1173
  ),
1160
- tagColor: '#f2e7fe',
1161
- tagTextColor: '#a451ff',
1174
+ tagColor: "#f2e7fe",
1175
+ tagTextColor: "#a451ff",
1162
1176
  tooltipLabel: (
1163
1177
  <FormattedMessage
1164
1178
  defaultMessage="Send important updates or news to customers."
@@ -1166,10 +1180,10 @@ export default {
1166
1180
  values={{}}
1167
1181
  />
1168
1182
  ),
1169
- value: 'ALERT_UPDATE',
1183
+ value: "ALERT_UPDATE",
1170
1184
  },
1171
1185
  getWhatsappCategoryOutput2: {
1172
- key: 'utility',
1186
+ key: "utility",
1173
1187
  label: (
1174
1188
  <FormattedMessage
1175
1189
  defaultMessage="Utility"
@@ -1177,8 +1191,8 @@ export default {
1177
1191
  values={{}}
1178
1192
  />
1179
1193
  ),
1180
- tagColor: '#f2e7fe',
1181
- tagTextColor: '#a451ff',
1194
+ tagColor: "#f2e7fe",
1195
+ tagTextColor: "#a451ff",
1182
1196
  tooltipLabel: (
1183
1197
  <FormattedMessage
1184
1198
  defaultMessage="Send account updates, order updates, alerts, and more to share important information."
@@ -1186,209 +1200,210 @@ export default {
1186
1200
  values={{}}
1187
1201
  />
1188
1202
  ),
1189
- value: 'UTILITY',
1203
+ value: "UTILITY",
1190
1204
  },
1191
1205
  whatsappPreviewTemplateData: {
1192
- mode: 'preview',
1193
- _id: '62d3f971b497b671d3bbf8f7',
1194
- name: 'creatives_whatsapp6',
1195
- type: 'WHATSAPP',
1206
+ mode: "preview",
1207
+ _id: "62d3f971b497b671d3bbf8f7",
1208
+ name: "creatives_whatsapp6",
1209
+ type: "WHATSAPP",
1196
1210
  versions: {
1197
1211
  $init: true,
1198
1212
  history: [],
1199
1213
  base: {
1200
1214
  content: {
1201
1215
  whatsapp: {
1202
- status: 'approved',
1203
- templateId: '720951875646523',
1204
- hostName: 'karixwhatsappbulk',
1205
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
1206
- accountId: '107499611940863',
1216
+ status: "approved",
1217
+ templateId: "720951875646523",
1218
+ hostName: "karixwhatsappbulk",
1219
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
1220
+ accountId: "107499611940863",
1207
1221
  templateEditor: false,
1208
1222
  karixFileHandle:
1209
- '4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y',
1223
+ "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
1210
1224
  imageUrl:
1211
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg',
1212
- mediaType: 'IMAGE',
1225
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.jpg",
1226
+ mediaType: "IMAGE",
1213
1227
  buttons: [
1214
1228
  {
1215
- phone_number: '+919738752617',
1216
- text: 'Call',
1217
- type: 'PHONE_NUMBER',
1229
+ phone_number: "+919738752617",
1230
+ text: "Call",
1231
+ type: "PHONE_NUMBER",
1218
1232
  index: 0,
1219
1233
  },
1220
1234
  {
1221
- url: 'https://docs.google.com/{{1}}',
1222
- text: 'Visit',
1223
- type: 'DYNAMIC_URL',
1235
+ url: "https://docs.google.com/{{1}}",
1236
+ text: "Visit",
1237
+ type: "DYNAMIC_URL",
1224
1238
  index: 1,
1225
1239
  },
1226
1240
  ],
1227
- buttonType: 'CTA',
1241
+ buttonType: "CTA",
1228
1242
  languages: [
1229
1243
  {
1230
1244
  content:
1231
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe',
1232
- language: 'en',
1245
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
1246
+ language: "en",
1233
1247
  },
1234
1248
  ],
1235
- category: 'MARKETING',
1236
- rejection_reason: '',
1249
+ category: "MARKETING",
1250
+ rejection_reason: "",
1237
1251
  },
1238
1252
  },
1239
1253
  },
1240
1254
  },
1241
1255
  isActive: true,
1242
1256
  orgId: 50074,
1243
- createdBy: '15000449',
1244
- updatedBy: '15000449',
1245
- createdAt: '2022-07-17T11:58:45.592Z',
1246
- updatedAt: '2022-07-17T11:58:45.592Z',
1257
+ createdBy: "15000449",
1258
+ updatedBy: "15000449",
1259
+ createdAt: "2022-07-17T11:58:45.592Z",
1260
+ updatedAt: "2022-07-17T11:58:45.592Z",
1247
1261
  totalCount: 8,
1248
1262
  },
1249
1263
  whatsappPreviewTemplateDataVid: {
1250
- mode: 'preview',
1251
- _id: '62d3f971b497b671d3bbf8f7',
1252
- name: 'creatives_whatsapp6',
1253
- type: 'WHATSAPP',
1264
+ mode: "preview",
1265
+ _id: "62d3f971b497b671d3bbf8f7",
1266
+ name: "creatives_whatsapp6",
1267
+ type: "WHATSAPP",
1254
1268
  versions: {
1255
1269
  $init: true,
1256
1270
  history: [],
1257
1271
  base: {
1258
1272
  content: {
1259
1273
  whatsapp: {
1260
- status: 'approved',
1261
- templateId: '720951875646523',
1262
- hostName: 'karixwhatsappbulk',
1263
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
1264
- accountId: '107499611940863',
1274
+ status: "approved",
1275
+ templateId: "720951875646523",
1276
+ hostName: "karixwhatsappbulk",
1277
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
1278
+ accountId: "107499611940863",
1265
1279
  templateEditor: false,
1266
1280
  karixFileHandle:
1267
- '4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y',
1281
+ "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
1268
1282
  videoUrl:
1269
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.MP4',
1270
- videoPreviewImg: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213/1040',
1271
- mediaType: 'VIDEO',
1283
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.MP4",
1284
+ videoPreviewImg:
1285
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213/1040",
1286
+ mediaType: "VIDEO",
1272
1287
  buttons: [
1273
1288
  {
1274
- phone_number: '+919738752617',
1275
- text: 'Call',
1276
- type: 'PHONE_NUMBER',
1289
+ phone_number: "+919738752617",
1290
+ text: "Call",
1291
+ type: "PHONE_NUMBER",
1277
1292
  index: 0,
1278
1293
  },
1279
1294
  {
1280
- url: 'https://docs.google.com/{{1}}',
1281
- text: 'Visit',
1282
- type: 'DYNAMIC_URL',
1295
+ url: "https://docs.google.com/{{1}}",
1296
+ text: "Visit",
1297
+ type: "DYNAMIC_URL",
1283
1298
  index: 1,
1284
1299
  },
1285
1300
  ],
1286
- buttonType: 'CTA',
1301
+ buttonType: "CTA",
1287
1302
  languages: [
1288
1303
  {
1289
1304
  content:
1290
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe',
1291
- language: 'en',
1305
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
1306
+ language: "en",
1292
1307
  },
1293
1308
  ],
1294
- category: 'MARKETING',
1295
- rejection_reason: '',
1309
+ category: "MARKETING",
1310
+ rejection_reason: "",
1296
1311
  },
1297
1312
  },
1298
1313
  },
1299
1314
  },
1300
1315
  isActive: true,
1301
1316
  orgId: 50074,
1302
- createdBy: '15000449',
1303
- updatedBy: '15000449',
1304
- createdAt: '2022-07-17T11:58:45.592Z',
1305
- updatedAt: '2022-07-17T11:58:45.592Z',
1317
+ createdBy: "15000449",
1318
+ updatedBy: "15000449",
1319
+ createdAt: "2022-07-17T11:58:45.592Z",
1320
+ updatedAt: "2022-07-17T11:58:45.592Z",
1306
1321
  totalCount: 8,
1307
1322
  },
1308
1323
  whatsappPreviewTemplateDataDoc: {
1309
- mode: 'preview',
1310
- _id: '62d3f971b497b671d3bbf8f7',
1311
- name: 'creatives_whatsapp6',
1312
- type: 'WHATSAPP',
1324
+ mode: "preview",
1325
+ _id: "62d3f971b497b671d3bbf8f7",
1326
+ name: "creatives_whatsapp6",
1327
+ type: "WHATSAPP",
1313
1328
  versions: {
1314
1329
  $init: true,
1315
1330
  history: [],
1316
1331
  base: {
1317
1332
  content: {
1318
1333
  whatsapp: {
1319
- status: 'approved',
1320
- templateId: '720951875646523',
1321
- hostName: 'karixwhatsappbulk',
1322
- accessToken: 'Bearer gDwEuRIm9icV6phixociSw==',
1323
- accountId: '107499611940863',
1334
+ status: "approved",
1335
+ templateId: "720951875646523",
1336
+ hostName: "karixwhatsappbulk",
1337
+ accessToken: "Bearer gDwEuRIm9icV6phixociSw==",
1338
+ accountId: "107499611940863",
1324
1339
  templateEditor: false,
1325
1340
  karixFileHandle:
1326
- '4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y',
1341
+ "4::aW1hZ2UvanBlZw==:ARZpmm0pMfsBvKepIjR-HG2HIw_78ynisr-riY1s4xpi2noK9QsvtvVfnZb5hUxks5HM5JHG0gCn_ZtPuJzya1SH3eq4Upn3M0eqsDLr4CzdPw:e:1658404714:259409122277300:100066839164237:ARbbCRjU-2ksqoUOp4Y",
1327
1342
  documentUrl:
1328
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.pdf',
1343
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/c9edc114-923b-4ac7-82d0-d6682213.pdf",
1329
1344
  whatsappDocParams: {},
1330
- mediaType: 'DOCUMENT',
1345
+ mediaType: "DOCUMENT",
1331
1346
  buttons: [
1332
1347
  {
1333
- phone_number: '+919738752617',
1334
- text: 'Call',
1335
- type: 'PHONE_NUMBER',
1348
+ phone_number: "+919738752617",
1349
+ text: "Call",
1350
+ type: "PHONE_NUMBER",
1336
1351
  index: 0,
1337
1352
  },
1338
1353
  {
1339
- url: 'https://docs.google.com/{{1}}',
1340
- text: 'Visit',
1341
- type: 'DYNAMIC_URL',
1354
+ url: "https://docs.google.com/{{1}}",
1355
+ text: "Visit",
1356
+ type: "DYNAMIC_URL",
1342
1357
  index: 1,
1343
1358
  },
1344
1359
  ],
1345
- buttonType: 'CTA',
1360
+ buttonType: "CTA",
1346
1361
  languages: [
1347
1362
  {
1348
1363
  content:
1349
- 'Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe',
1350
- language: 'en',
1364
+ "Hey {{1}}, Easier implementation, tracking, reporting and planning of promotions is now live! Check it out at {{2}}\nClick {{3}} to unsubscribe",
1365
+ language: "en",
1351
1366
  },
1352
1367
  ],
1353
- category: 'MARKETING',
1354
- rejection_reason: '',
1368
+ category: "MARKETING",
1369
+ rejection_reason: "",
1355
1370
  },
1356
1371
  },
1357
1372
  },
1358
1373
  },
1359
1374
  isActive: true,
1360
1375
  orgId: 50074,
1361
- createdBy: '15000449',
1362
- updatedBy: '15000449',
1363
- createdAt: '2022-07-17T11:58:45.592Z',
1364
- updatedAt: '2022-07-17T11:58:45.592Z',
1376
+ createdBy: "15000449",
1377
+ updatedBy: "15000449",
1378
+ createdAt: "2022-07-17T11:58:45.592Z",
1379
+ updatedAt: "2022-07-17T11:58:45.592Z",
1365
1380
  totalCount: 8,
1366
1381
  },
1367
1382
  whatsappPreviewTemplateData2: {
1368
- mode: 'preview',
1369
- _id: '62d3edc8b497b63ff5bbf8ea',
1370
- name: 'test_twilio_159425',
1371
- type: 'WHATSAPP',
1383
+ mode: "preview",
1384
+ _id: "62d3edc8b497b63ff5bbf8ea",
1385
+ name: "test_twilio_159425",
1386
+ type: "WHATSAPP",
1372
1387
  versions: {
1373
1388
  $init: true,
1374
1389
  history: [],
1375
1390
  base: {
1376
1391
  content: {
1377
1392
  whatsapp: {
1378
- status: 'approved',
1379
- templateId: 'HTee0274fb8dfdd45427bb678f875b0d54',
1380
- hostName: 'twiliowhatsapptrans',
1381
- accessToken: '4676323eb5d1f975b0987070c03a8efc',
1382
- accountId: 'AC41030cebba9e2f1ce37c78235da0ee18',
1393
+ status: "approved",
1394
+ templateId: "HTee0274fb8dfdd45427bb678f875b0d54",
1395
+ hostName: "twiliowhatsapptrans",
1396
+ accessToken: "4676323eb5d1f975b0987070c03a8efc",
1397
+ accountId: "AC41030cebba9e2f1ce37c78235da0ee18",
1383
1398
  templateEditor: false,
1384
- mediaType: 'TEXT',
1399
+ mediaType: "TEXT",
1385
1400
  languages: [
1386
1401
  {
1387
- content: 'Hi {{1}}, your payment is successful.',
1388
- language: 'en',
1402
+ content: "Hi {{1}}, your payment is successful.",
1403
+ language: "en",
1389
1404
  },
1390
1405
  ],
1391
- category: 'ALERT_UPDATE',
1406
+ category: "ALERT_UPDATE",
1392
1407
  rejection_reason: null,
1393
1408
  },
1394
1409
  },
@@ -1396,17 +1411,17 @@ export default {
1396
1411
  },
1397
1412
  isActive: true,
1398
1413
  orgId: 50371,
1399
- createdBy: '15000449',
1400
- updatedBy: '15000449',
1401
- createdAt: '2022-07-17T11:08:56.326Z',
1402
- updatedAt: '2022-07-17T11:08:56.326Z',
1414
+ createdBy: "15000449",
1415
+ updatedBy: "15000449",
1416
+ createdAt: "2022-07-17T11:08:56.326Z",
1417
+ updatedAt: "2022-07-17T11:08:56.326Z",
1403
1418
  totalCount: 7,
1404
1419
  },
1405
1420
  rcsPreviewTemplateData: {
1406
- mode: 'preview',
1407
- _id: '620e213d39bd394c58aeaaca',
1408
- name: 'amit123456',
1409
- type: 'RCS',
1421
+ mode: "preview",
1422
+ _id: "620e213d39bd394c58aeaaca",
1423
+ name: "amit123456",
1424
+ type: "RCS",
1410
1425
  versions: {
1411
1426
  $init: true,
1412
1427
  history: [],
@@ -1415,22 +1430,22 @@ export default {
1415
1430
  RCS: {
1416
1431
  cardContent: [
1417
1432
  {
1418
- title: 'title',
1419
- description: 'Desc',
1420
- mediaType: 'NONE',
1433
+ title: "title",
1434
+ description: "Desc",
1435
+ mediaType: "NONE",
1421
1436
  media: {
1422
- mediaUrl: '',
1423
- height: 'MEDIUM',
1437
+ mediaUrl: "",
1438
+ height: "MEDIUM",
1424
1439
  },
1425
1440
  },
1426
1441
  ],
1427
1442
  cardSettings: {
1428
- cardOrientation: 'VERTICAL',
1443
+ cardOrientation: "VERTICAL",
1429
1444
  },
1430
- cardType: 'STANDALONE',
1431
- contentType: 'RICHCARD',
1445
+ cardType: "STANDALONE",
1446
+ contentType: "RICHCARD",
1432
1447
  smsFallBackContent: {
1433
- message: '123',
1448
+ message: "123",
1434
1449
  },
1435
1450
  },
1436
1451
  },
@@ -1438,32 +1453,32 @@ export default {
1438
1453
  },
1439
1454
  isActive: true,
1440
1455
  orgId: 50371,
1441
- createdBy: '15000449',
1442
- updatedBy: '15000449',
1443
- createdAt: '2022-02-17T10:19:42.211Z',
1444
- updatedAt: '2022-02-17T10:19:42.211Z',
1456
+ createdBy: "15000449",
1457
+ updatedBy: "15000449",
1458
+ createdAt: "2022-02-17T10:19:42.211Z",
1459
+ updatedAt: "2022-02-17T10:19:42.211Z",
1445
1460
  totalCount: 12,
1446
- updatedByName: 'Ashish Karan fd',
1461
+ updatedByName: "Ashish Karan fd",
1447
1462
  },
1448
1463
  getCreativesParamsOutput: {
1449
1464
  _id: undefined,
1450
1465
  account: undefined,
1451
- mode: 'edit',
1466
+ mode: "edit",
1452
1467
  modeType: undefined,
1453
- type: 'WHATSAPP',
1454
- whatsappTemplateCategory: '',
1455
- whatsappTemplateLanguageCode: '',
1456
- whatsappTemplateName: '',
1468
+ type: "WHATSAPP",
1469
+ whatsappTemplateCategory: "",
1470
+ whatsappTemplateLanguageCode: "",
1471
+ whatsappTemplateName: "",
1457
1472
  },
1458
1473
  location: {
1459
- pathname: '/creatives/ui/v2',
1460
- search: '',
1461
- hash: '',
1462
- key: 'm54f43',
1474
+ pathname: "/creatives/ui/v2",
1475
+ search: "",
1476
+ hash: "",
1477
+ key: "m54f43",
1463
1478
  },
1464
1479
  match: {
1465
- path: '/creatives/ui/v2',
1466
- url: '/creatives/ui/v2',
1480
+ path: "/creatives/ui/v2",
1481
+ url: "/creatives/ui/v2",
1467
1482
  isExact: true,
1468
1483
  params: {},
1469
1484
  },
@@ -1474,24 +1489,24 @@ export default {
1474
1489
  proxyOrgList: [
1475
1490
  {
1476
1491
  orgID: 1001,
1477
- orgName: 'org1',
1492
+ orgName: "org1",
1478
1493
  },
1479
1494
  {
1480
1495
  orgID: 1002,
1481
- orgName: 'org2',
1496
+ orgName: "org2",
1482
1497
  },
1483
1498
  ],
1484
1499
  attributes: {
1485
1500
  USERNAME: {
1486
- value: 'capUser',
1501
+ value: "capUser",
1487
1502
  },
1488
1503
  EMAIL: {
1489
- value: 'capUser@capillary.com',
1504
+ value: "capUser@capillary.com",
1490
1505
  },
1491
1506
  },
1492
1507
  refID: 101,
1493
- orgName: 'org1',
1494
- orgID: '1001',
1508
+ orgName: "org1",
1509
+ orgID: "1001",
1495
1510
  },
1496
1511
  isLoggedIn: true,
1497
1512
  currentOrgDetails: {},
@@ -1500,10 +1515,10 @@ export default {
1500
1515
  localeLoading: false,
1501
1516
  },
1502
1517
  linePreviewTemplateData1: {
1503
- mode: 'preview',
1504
- _id: '62a810e4d4715c768d6ee9cf',
1505
- name: 'Demo Old Template 2(Multiple images)',
1506
- type: 'LINE',
1518
+ mode: "preview",
1519
+ _id: "62a810e4d4715c768d6ee9cf",
1520
+ name: "Demo Old Template 2(Multiple images)",
1521
+ type: "LINE",
1507
1522
  versions: {
1508
1523
  $init: true,
1509
1524
  history: [],
@@ -1511,101 +1526,101 @@ export default {
1511
1526
  content: {
1512
1527
  messages: [
1513
1528
  {
1514
- altText: 'Demo Old Template 2(Multiple images)',
1529
+ altText: "Demo Old Template 2(Multiple images)",
1515
1530
  template: {
1516
- type: 'image_carousel',
1531
+ type: "image_carousel",
1517
1532
  columns: [
1518
1533
  {
1519
1534
  action: {
1520
- uri: 'https://www.demo.com',
1521
- label: 'Demo Old 2',
1522
- type: 'uri',
1535
+ uri: "https://www.demo.com",
1536
+ label: "Demo Old 2",
1537
+ type: "uri",
1523
1538
  },
1524
1539
  imageUrl:
1525
- 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg',
1540
+ "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
1526
1541
  },
1527
1542
  {
1528
- imageUrl: '',
1543
+ imageUrl: "",
1529
1544
  },
1530
1545
  ],
1531
1546
  },
1532
1547
  },
1533
1548
  ],
1534
- to: '{{line_id}}',
1549
+ to: "{{line_id}}",
1535
1550
  },
1536
1551
  },
1537
1552
  },
1538
1553
  isActive: true,
1539
1554
  orgId: 1604,
1540
- createdBy: '15000449',
1541
- updatedBy: '15000449',
1542
- createdAt: '2022-06-14T04:39:00.665Z',
1543
- updatedAt: '2022-06-14T04:39:00.665Z',
1555
+ createdBy: "15000449",
1556
+ updatedBy: "15000449",
1557
+ createdAt: "2022-06-14T04:39:00.665Z",
1558
+ updatedAt: "2022-06-14T04:39:00.665Z",
1544
1559
  definition: {
1545
- mode: 'template',
1560
+ mode: "template",
1546
1561
  },
1547
1562
  totalCount: 1,
1548
- updatedByName: 'Ashish Karan fd',
1563
+ updatedByName: "Ashish Karan fd",
1549
1564
  },
1550
1565
  linePreviewTemplateData2: {
1551
- mode: 'preview',
1552
- _id: '629f7ecf134738019b2e332e',
1553
- name: 'ggg1',
1554
- type: 'LINE',
1566
+ mode: "preview",
1567
+ _id: "629f7ecf134738019b2e332e",
1568
+ name: "ggg1",
1569
+ type: "LINE",
1555
1570
  versions: {
1556
1571
  $init: true,
1557
1572
  history: [],
1558
1573
  base: {
1559
1574
  content: {
1560
- to: '{{line_id}}',
1575
+ to: "{{line_id}}",
1561
1576
  messages: [
1562
1577
  {
1563
- type: 'flex',
1564
- altText: 'ggg',
1578
+ type: "flex",
1579
+ altText: "ggg",
1565
1580
  contents: {
1566
1581
  contents: [
1567
1582
  {
1568
- type: 'bubble',
1583
+ type: "bubble",
1569
1584
  hero: {
1570
- type: 'image',
1571
- url: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg',
1572
- size: 'full',
1573
- aspectRatio: '1:1',
1574
- aspectMode: 'cover',
1585
+ type: "image",
1586
+ url: "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
1587
+ size: "full",
1588
+ aspectRatio: "1:1",
1589
+ aspectMode: "cover",
1575
1590
  },
1576
1591
  footer: {
1577
- type: 'box',
1578
- layout: 'vertical',
1579
- spacing: 'xs',
1592
+ type: "box",
1593
+ layout: "vertical",
1594
+ spacing: "xs",
1580
1595
  contents: [
1581
1596
  {
1582
- type: 'button',
1583
- style: 'link',
1584
- height: 'sm',
1597
+ type: "button",
1598
+ style: "link",
1599
+ height: "sm",
1585
1600
  action: {
1586
- type: 'message',
1587
- label: 'ggg',
1588
- text: 'ggg',
1601
+ type: "message",
1602
+ label: "ggg",
1603
+ text: "ggg",
1589
1604
  },
1590
1605
  },
1591
1606
  ],
1592
1607
  },
1593
1608
  },
1594
1609
  {
1595
- type: 'bubble',
1610
+ type: "bubble",
1596
1611
  hero: {},
1597
1612
  footer: {
1598
- type: 'box',
1599
- layout: 'vertical',
1600
- spacing: 'xs',
1613
+ type: "box",
1614
+ layout: "vertical",
1615
+ spacing: "xs",
1601
1616
  contents: [{}],
1602
1617
  },
1603
1618
  },
1604
1619
  {
1605
- type: 'bubble',
1620
+ type: "bubble",
1606
1621
  },
1607
1622
  ],
1608
- type: 'carousel',
1623
+ type: "carousel",
1609
1624
  },
1610
1625
  },
1611
1626
  ],
@@ -1614,14 +1629,136 @@ export default {
1614
1629
  },
1615
1630
  isActive: true,
1616
1631
  orgId: 1604,
1617
- createdBy: '15000449',
1618
- updatedBy: '15000449',
1619
- createdAt: '2022-06-07T16:37:35.447Z',
1620
- updatedAt: '2022-06-07T16:42:02.243Z',
1632
+ createdBy: "15000449",
1633
+ updatedBy: "15000449",
1634
+ createdAt: "2022-06-07T16:37:35.447Z",
1635
+ updatedAt: "2022-06-07T16:42:02.243Z",
1621
1636
  definition: {
1622
- mode: 'template',
1637
+ mode: "template",
1623
1638
  },
1624
1639
  totalCount: 1,
1625
- updatedByName: 'Ashish Karan fd',
1640
+ updatedByName: "Ashish Karan fd",
1641
+ },
1642
+ zaloTemplates: {
1643
+ selectedZaloAccount: {
1644
+ sourceTypeName: "ZALO",
1645
+ name: "capillary_zns",
1646
+ isActive: true,
1647
+ sourceTypeId: 29,
1648
+ configs: {
1649
+ accessToken: "Bearer 3f506142-b06c-4f7b-b922-44da363e77e7",
1650
+ promotionalMessagingSSID: "",
1651
+ transactionalMessagingSSID: "",
1652
+ },
1653
+ hostName: "",
1654
+ toMirror: true,
1655
+ id: 85,
1656
+ uuid: "fa66f53ca2bb4b93b02dfc5bd265e2fd",
1657
+ sourceAccountIdentifier: "4404293319006178133",
1658
+ commChannels: ["zalo"],
1659
+ },
1660
+ getAllTemplatesInProgress: false,
1661
+ weCrmAccountFetchingError: false,
1662
+ weCRMtemplates: [],
1663
+ templateError: {},
1664
+ fetchingWeCrmAccounts: false,
1665
+ fetchingUserList: false,
1666
+ isSearch: false,
1667
+ weCrmAccounts: [
1668
+ {
1669
+ sourceTypeName: "ZALO",
1670
+ name: "capillary_zns",
1671
+ isActive: true,
1672
+ sourceTypeId: 29,
1673
+ configs: {
1674
+ accessToken: "Bearer 3f506142-b06c-4f7b-b922-44da363e77e7",
1675
+ promotionalMessagingSSID: "",
1676
+ transactionalMessagingSSID: "",
1677
+ },
1678
+ toMirror: true,
1679
+ id: 85,
1680
+ uuid: "fa66f53ca2bb4b93b02dfc5bd265e2fd",
1681
+ sourceAccountIdentifier: "4404293319006178133",
1682
+ commChannels: ["zalo"],
1683
+ },
1684
+ ],
1685
+ userListFetchError: false,
1686
+ templates: [
1687
+ {
1688
+ name: "Test1",
1689
+ versions: {
1690
+ base: {
1691
+ content: {
1692
+ ZALO: {
1693
+ templateId: "268531",
1694
+ templateName: "Test1",
1695
+ status: "approved",
1696
+ listParams: [
1697
+ {
1698
+ name: "danh_xung",
1699
+ require: true,
1700
+ type: "STRING",
1701
+ maxLength: 30,
1702
+ minLength: 0,
1703
+ acceptNull: false,
1704
+ },
1705
+ {
1706
+ name: "name",
1707
+ require: true,
1708
+ type: "STRING",
1709
+ maxLength: 30,
1710
+ minLength: 0,
1711
+ acceptNull: false,
1712
+ },
1713
+ ],
1714
+ previewUrl:
1715
+ "https://account.zalo.cloud/znspreview/-e0cMil4NU5WUUAVzP7T_g==",
1716
+ },
1717
+ },
1718
+ },
1719
+ },
1720
+ type: "ZALO",
1721
+ },
1722
+ {
1723
+ name: "Test2",
1724
+ versions: {
1725
+ base: {
1726
+ content: {
1727
+ ZALO: {
1728
+ templateId: "268532",
1729
+ templateName: "Test2",
1730
+ status: "approved",
1731
+ listParams: [
1732
+ {
1733
+ name: "danh_xung",
1734
+ require: true,
1735
+ type: "STRING",
1736
+ maxLength: 30,
1737
+ minLength: 0,
1738
+ acceptNull: false,
1739
+ },
1740
+ {
1741
+ name: "name",
1742
+ require: true,
1743
+ type: "STRING",
1744
+ maxLength: 30,
1745
+ minLength: 0,
1746
+ acceptNull: false,
1747
+ },
1748
+ ],
1749
+ previewUrl:
1750
+ "https://account.zalo.cloud/znspreview/-e0cMil4NU5WUUAVzP7T_g==",
1751
+ },
1752
+ },
1753
+ },
1754
+ },
1755
+ type: "ZALO",
1756
+ },
1757
+ ],
1626
1758
  },
1759
+ zaloEditTemplateData: {
1760
+ _id: 42342,
1761
+ name: 'Test sample',
1762
+ type: 'ZALO'
1763
+ }
1627
1764
  };