@capillarytech/creatives-library 3.4.3 → 3.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config/app.js CHANGED
@@ -4,7 +4,6 @@
4
4
  const config = {
5
5
  production: {
6
6
  api_endpoint: '/arya/api/v1/creatives',
7
- campaigns_api_endpoint: '/iris/v2/campaigns',
8
7
  auth_endpoint: '/arya/api/v1/auth',
9
8
  arya_endpoint: '/arya/api/v1',
10
9
  login_url: 'auth/login',
@@ -15,7 +14,6 @@ const config = {
15
14
  },
16
15
  development: {
17
16
  api_endpoint: 'https://nightly.capillary.in/arya/api/v1/creatives',
18
- campaigns_api_endpoint: 'https://nightly.capillary.in/iris/v2/campaigns',
19
17
  auth_endpoint: 'https://nightly.capillary.in/arya/api/v1/auth',
20
18
  arya_endpoint: 'https://nightly.capillary.in/arya/api/v1',
21
19
  subscription_api_endpoint: 'https://nightly.capillary.in/arya/api/v1/org-settings/subscription',
package/index.js CHANGED
@@ -39,10 +39,6 @@ import WeChatRichMediaEdit from './v2Containers/WeChat/RichmediaTemplates/Edit';
39
39
  import weChatRichMediaEditReducer from './v2Containers/WeChat/RichmediaTemplates/Edit/reducer';
40
40
  import weChatRichMediaEditSaga from './v2Containers/WeChat/RichmediaTemplates/Edit/sagas';
41
41
 
42
- import Facebook from './v2Containers/Facebook';
43
- import facebookReducer from './v2Containers/Facebook/reducer';
44
- import facebookSaga from './v2Containers/Facebook/sagas';
45
-
46
42
  import MobilepushCreate from './v2Containers/MobilePush/Create';
47
43
  import mobilepushCreateReducer from './v2Containers/MobilePush/Create/reducer';
48
44
  import mobilepushCreateSaga from './v2Containers/MobilePush/Create/sagas';
@@ -85,7 +81,6 @@ const MobilePushEditContainer = {MobilepushEdit, mobilepushEditReducer, mobilepu
85
81
  const LineCreateContainer = {LineCreate, lineCreateReducer, lineCreateSaga};
86
82
  const LineEditContainer = {LineEdit, lineEditReducer, lineEditSaga};
87
83
  const TemplatesV2Container = {TemplatesV2, templateReducer, templateSaga};
88
- const FacebookContainer = {Facebook, facebookReducer, facebookSaga};
89
84
 
90
85
  export {default as TagList} from './v2Containers/TagList/index';
91
86
  export {default as TagListSaga} from './v2Containers/TagList/sagas';
@@ -122,5 +117,4 @@ export { CapContainer,
122
117
  TemplatesV2Container,
123
118
  CreativesContainer,
124
119
  updateCharCount,
125
- FacebookContainer,
126
120
  };
package/initialState.js CHANGED
@@ -42,8 +42,5 @@ export default {
42
42
  },
43
43
  creativesContainer: {
44
44
 
45
- },
46
- facebook: {
47
-
48
45
  },
49
46
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "3.4.3",
4
+ "version": "3.4.5",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/routes.js CHANGED
@@ -628,8 +628,6 @@ export default function createRoutes(store) {
628
628
  import('v2Containers/WeChat/RichmediaTemplates/Edit/reducer'),
629
629
  import('v2Containers/Assets/Gallery/reducer'),
630
630
  import('v2Containers/Assets/Gallery/sagas'),
631
- import('v2Containers/Facebook/sagas'),
632
- import('v2Containers/Facebook/reducer'),
633
631
  ]);
634
632
 
635
633
  const renderRoute = loadModule(cb);
@@ -637,7 +635,7 @@ export default function createRoutes(store) {
637
635
  importModules.then(([reducer,
638
636
  sagas, component,
639
637
  capReducer, capSagas,
640
- creativesContainerReducer,
638
+ creativesContainerReducer,
641
639
  smsCreateReducer, smsCreateSaga, smsEditReducer, smsEditSaga,
642
640
  emailReducer, emailSaga,
643
641
  callTaskReducer, callTaskSagas,
@@ -647,7 +645,6 @@ export default function createRoutes(store) {
647
645
  weChatRichmediaTemplatesCreateSagas, weChatRichmediaTemplatesCreateReducer,
648
646
  weChatRichmediaTemplatesEditSagas, weChatRichmediaTemplatesEditReducer,
649
647
  galleryReducer, gallerySagas,
650
- facebookSagas, facebookReducer,
651
648
  ]) => {
652
649
  injectReducer('templates', reducer.default);
653
650
  injectReducer('cap', capReducer.default);
@@ -662,7 +659,6 @@ export default function createRoutes(store) {
662
659
  injectReducer('weChatRichmediaCreate', weChatRichmediaTemplatesCreateReducer.default);
663
660
  injectReducer('weChatRichmediaEdit', weChatRichmediaTemplatesEditReducer.default);
664
661
  injectReducer('gallery', galleryReducer.default);
665
- injectReducer('facebook', facebookReducer.default);
666
662
  injectSagas(gallerySagas.default);
667
663
  injectSagas(sagas.default);
668
664
  injectSagas(capSagas.default);
@@ -675,7 +671,6 @@ export default function createRoutes(store) {
675
671
  injectSagas(weChatMapTemplatesSagas.default);
676
672
  injectSagas(weChatRichmediaTemplatesCreateSagas.default);
677
673
  injectSagas(weChatRichmediaTemplatesEditSagas.default);
678
- injectSagas(facebookSagas.default);
679
674
  renderRoute(component);
680
675
  });
681
676
  importModules.catch(errorLoading);
package/services/api.js CHANGED
@@ -8,13 +8,11 @@ import pathConfig from '../config/path';
8
8
  import getSchema from './getSchema';
9
9
  import * as API from '../utils/ApiCaller';
10
10
  let API_ENDPOINT = config.development.api_endpoint;
11
- let CAMPAIGNS_API_ENDPOINT = config.development.campaigns_api_endpoint;
12
11
  let API_AUTH_ENDPOINT = config.development.auth_endpoint;
13
12
  let ARYA_ENDPOINT = config.development.arya_endpoint;
14
13
  let SUBSCRIPTION_API_ENDPOINT = config.development.subscription_api_endpoint;
15
14
  if (process.env.NODE_ENV === 'production') {
16
15
  API_ENDPOINT = config.production.api_endpoint;
17
- CAMPAIGNS_API_ENDPOINT = config.production.campaigns_api_endpoint;
18
16
  API_AUTH_ENDPOINT = config.production.auth_endpoint;
19
17
  ARYA_ENDPOINT = config.production.arya_endpoint;
20
18
  SUBSCRIPTION_API_ENDPOINT = config.production.subscription_api_endpoint;
@@ -77,7 +75,7 @@ function request(url, options) {
77
75
  .then(parseJSON);
78
76
  }
79
77
 
80
- function getAPICallObject(method, body, isFileUpload = false, loadCampaignHeaders = false) {
78
+ function getAPICallObject(method, body, isFileUpload = false) {
81
79
  const token = loadItem('token');
82
80
  const orgID = loadItem('orgID');
83
81
  const user = loadItem('user');
@@ -90,24 +88,16 @@ function getAPICallObject(method, body, isFileUpload = false, loadCampaignHeader
90
88
  };
91
89
  }
92
90
 
93
- if (loadCampaignHeaders) {
94
- headers['X-CAP-ORG'] = orgID;
95
-
96
- if (token !== undefined) {
97
- headers['X-CAP-CT'] = token;
98
- }
99
- } else {
100
- if (user && user.refID) {
101
- headers['X-CAP-REMOTE-USER'] = user.refID;
102
- }
91
+ if (user && user.refID) {
92
+ headers['X-CAP-REMOTE-USER'] = user.refID;
93
+ }
103
94
 
104
- if (process.env.NODE_ENV !== 'production' && orgID !== undefined) {
105
- headers['X-CAP-API-AUTH-ORG-ID'] = orgID;
106
- }
95
+ if (process.env.NODE_ENV !== 'production' && orgID !== undefined) {
96
+ headers['X-CAP-API-AUTH-ORG-ID'] = orgID;
97
+ }
107
98
 
108
- if (process.env.NODE_ENV !== 'production' && token !== undefined) {
109
- headers.Authorization = `Bearer ${token}`;
110
- }
99
+ if (process.env.NODE_ENV !== 'production' && token !== undefined) {
100
+ headers.Authorization = `Bearer ${token}`;
111
101
  }
112
102
 
113
103
  const requestObj = {
@@ -349,9 +339,3 @@ export const getUnsubscribeUrl = () => {
349
339
  const url = `${SUBSCRIPTION_API_ENDPOINT}/unsubscribeUrl`;
350
340
  return request(url, getAPICallObject('POST', body));
351
341
  };
352
-
353
- export const getMarketingObjectives = (channel) =>
354
- request(
355
- `${CAMPAIGNS_API_ENDPOINT}/socialObjectives?channel=${channel}`,
356
- getAPICallObject('GET', null, false, true),
357
- );
@@ -127,18 +127,11 @@
127
127
  "creatives.componentsV2.Header.save": "Save",
128
128
  "creatives.componentsV2.ImagePreview.close": "close",
129
129
  "creatives.componentsV2.ImagePreview.loadingImage": "Loading images !!!!",
130
- "creatives.componentsV2.NavigationBar.businessProcesses": "Workbench",
131
- "creatives.componentsV2.NavigationBar.campaign": "Campaigns",
132
130
  "creatives.componentsV2.NavigationBar.header": "This is the NavigationBar component!",
133
131
  "creatives.componentsV2.NavigationBar.insights": "Insights+",
134
132
  "creatives.componentsV2.NavigationBar.logout": "Logout",
135
- "creatives.componentsV2.NavigationBar.loyaltyProgram": "Loyalty+",
136
- "creatives.componentsV2.NavigationBar.memberCare": "Member Care",
137
133
  "creatives.componentsV2.NavigationBar.orgSettings": "Organisation settings",
138
134
  "creatives.componentsV2.NavigationBar.selectedProductDefault": "Engage+",
139
- "creatives.componentsV2.NavigationBar.storeCare": "Store Care",
140
- "creatives.componentsV2.NavigationBar.storePerformance": "Store Performance",
141
- "creatives.componentsV2.NavigationBar.wecrm": "Wecrm",
142
135
  "creatives.componentsV2.NewCallTask.callTaskTitle": "Call Task title",
143
136
  "creatives.componentsV2.NewCallTask.description": "Description",
144
137
  "creatives.componentsV2.NewCallTask.done": "Done",
@@ -916,7 +909,6 @@
916
909
  "creatives.containersV2.Email.Save": "Save",
917
910
  "creatives.containersV2.Email.Subject": "Subject",
918
911
  "creatives.containersV2.Email.Tags": "Tags",
919
- "creatives.containersV2.Email.addLabel": "Add label",
920
912
  "creatives.containersV2.Email.alert": "Alert",
921
913
  "creatives.containersV2.Email.alertMessage": "Alert",
922
914
  "creatives.containersV2.Email.alphabetically": "Alphabetically",
@@ -942,7 +934,6 @@
942
934
  "creatives.containersV2.Email.emailSubject": "Enter email subject",
943
935
  "creatives.containersV2.Email.emailSubjectNotEmplty": "Email subject cannot be empty.",
944
936
  "creatives.containersV2.Email.emailText": "Email",
945
- "creatives.containersV2.Email.english": "English",
946
937
  "creatives.containersV2.Email.goBackTemporaryChangesLost": "Do you really want to go back? All your temporary changes will be lost!",
947
938
  "creatives.containersV2.Email.h3emailPreview": "Email preview",
948
939
  "creatives.containersV2.Email.h3imageSelection": "Image selection",
@@ -992,48 +983,6 @@
992
983
  "creatives.containersV2.EmailWrapper.useEditorDesc": "Create using in-built template",
993
984
  "creatives.containersV2.EmailWrapper.zipUpload": "Upload zip file",
994
985
  "creatives.containersV2.EmailWrapper.zipUploadDesc": "Upload compressed file (Zip) containing HTML & images",
995
- "creatives.containersV2.Facebook.fbAccount": "Facebook Account",
996
- "creatives.containersV2.Facebook.fbAdCampaignSetDetailsDescription": "Once this message is approved, a campaign and an ad set will be created on Facebook Ad Manager with the same name as the current campaign and message name.",
997
- "creatives.containersV2.Facebook.fbAdCampaignSetDetailsTitle": "Ad campaign & ad set details",
998
- "creatives.containersV2.Facebook.fbAdSetName": "Ad set name",
999
- "creatives.containersV2.Facebook.fbAdsDescription": "You may create ads in Facebook Ad Manager under the below mentioned ad set. The performance of these ads will be reported here in Engage+.",
1000
- "creatives.containersV2.Facebook.fbAdsDetailOne": "Only FB campaign & ad set creation is supported in Engage+",
1001
- "creatives.containersV2.Facebook.fbAdsDetailThree": "You can create ads later in Facebook ad manager.",
1002
- "creatives.containersV2.Facebook.fbAdsDetailTwo": "You can proceed with an empty content block",
1003
- "creatives.containersV2.Facebook.fbAdsTitle": "Facebook ads",
1004
- "creatives.containersV2.Facebook.fbAudience": "Audience",
1005
- "creatives.containersV2.Facebook.fbCampaignName": "FB Campaign name",
1006
- "creatives.containersV2.Facebook.fbChange": "Change",
1007
- "creatives.containersV2.Facebook.fbConfirm": "Confirm",
1008
- "creatives.containersV2.Facebook.fbMarketingObjective": "FB Marketing objective",
1009
- "creatives.containersV2.Facebook.fbMarketingObjectiveAppInstallTitle": "App Installs",
1010
- "creatives.containersV2.Facebook.fbMarketingObjectiveAppInstallsDescription": "Get more people to install your app.",
1011
- "creatives.containersV2.Facebook.fbMarketingObjectiveAwareness": "Awareness",
1012
- "creatives.containersV2.Facebook.fbMarketingObjectiveBrandAwarenessDescription": "Increase awareness for your brand by reaching people who are more likely to be interested in it.",
1013
- "creatives.containersV2.Facebook.fbMarketingObjectiveBrandAwarenessTitle": "Brand awareness",
1014
- "creatives.containersV2.Facebook.fbMarketingObjectiveCatalogSalesDescription": "Create ads that automatically show items from your catalog based on your target audience.",
1015
- "creatives.containersV2.Facebook.fbMarketingObjectiveCatalogSalesTitle": "Catalog Sales",
1016
- "creatives.containersV2.Facebook.fbMarketingObjectiveConsideration": "Consideration",
1017
- "creatives.containersV2.Facebook.fbMarketingObjectiveConversionsDescription": "Drive valuable actions on your website, app or in Messenger.",
1018
- "creatives.containersV2.Facebook.fbMarketingObjectiveConversionsTitle": "Conversions",
1019
- "creatives.containersV2.Facebook.fbMarketingObjectiveEngagementDescription": "Get more post engagements",
1020
- "creatives.containersV2.Facebook.fbMarketingObjectiveEngagementTitle": "Engagement",
1021
- "creatives.containersV2.Facebook.fbMarketingObjectiveLeadGenerationDescription": "Drive more sales leads, such as email addresses, from people interested in your brand or business.",
1022
- "creatives.containersV2.Facebook.fbMarketingObjectiveLeadGenerationTitle": "Lead Generation",
1023
- "creatives.containersV2.Facebook.fbMarketingObjectiveMessagesDescription": "Get more people to send messages to your business in Messenger.",
1024
- "creatives.containersV2.Facebook.fbMarketingObjectiveMessagesTitle": "Messages",
1025
- "creatives.containersV2.Facebook.fbMarketingObjectiveReachDescription": "Show your ad to the maximum number of people.",
1026
- "creatives.containersV2.Facebook.fbMarketingObjectiveReachTitle": "Reach",
1027
- "creatives.containersV2.Facebook.fbMarketingObjectiveStoreTrafficDescription": "Drive visits to your physical stores by showing ads to people who are nearby.",
1028
- "creatives.containersV2.Facebook.fbMarketingObjectiveStoreTrafficTitle": "Store Traffic",
1029
- "creatives.containersV2.Facebook.fbMarketingObjectiveTrafficDescription": "Send more people to a destination such as a website, app or Messenger conversation.",
1030
- "creatives.containersV2.Facebook.fbMarketingObjectiveTrafficTitle": "Traffic",
1031
- "creatives.containersV2.Facebook.fbMarketingObjectiveVideoViewsDescription": "Get more people to view your video content.",
1032
- "creatives.containersV2.Facebook.fbMarketingObjectiveVideoViewsTitle": "Video Views",
1033
- "creatives.containersV2.Facebook.fbNoAudienceSelected": "Not Selected",
1034
- "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDescription": "Objectives help break reporting into a more granular level",
1035
- "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDone": "Done",
1036
- "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveTitle": "Facebook Marketing Objective",
1037
986
  "creatives.containersV2.Line.Create.Campaigns": "Campaigns",
1038
987
  "creatives.containersV2.Line.Create.Creatives": "Creatives",
1039
988
  "creatives.containersV2.Line.Create.Image": "Image",
@@ -1360,7 +1309,6 @@
1360
1309
  "creatives.containersV2.TemplatesV2.creativesDesc": "These are pre-built templates which you could use to customize your message content.",
1361
1310
  "creatives.containersV2.TemplatesV2.edit": "Edit",
1362
1311
  "creatives.containersV2.TemplatesV2.email": "Email",
1363
- "creatives.containersV2.TemplatesV2.facebook": "Facebook",
1364
1312
  "creatives.containersV2.TemplatesV2.gallery": "Gallery",
1365
1313
  "creatives.containersV2.TemplatesV2.header": "This is TemplatesV2 container !",
1366
1314
  "creatives.containersV2.TemplatesV2.pushNotification": "Push notification",
@@ -1430,8 +1378,6 @@
1430
1378
  "creatives.containersV2.richMedia.Create.delete": "delete",
1431
1379
  "creatives.containersV2.richMedia.Create.deleteContent": "Do you really want to delete? All your temporary changes will be lost!",
1432
1380
  "creatives.containersV2.richMedia.Create.emptyTemplateName": "Cannot leave template name empty",
1433
- "creatives.containersV2.richMedia.Create.existingMedia": "Existing media",
1434
- "creatives.containersV2.richMedia.Create.existingMediaHeader": "Rich media templates",
1435
1381
  "creatives.containersV2.richMedia.Create.fileContentFailed": "Failed to get File content",
1436
1382
  "creatives.containersV2.richMedia.Create.formEmpty": "Cannot leave form empty",
1437
1383
  "creatives.containersV2.richMedia.Create.header": "This is Create container !",
@@ -1449,7 +1395,6 @@
1449
1395
  "creatives.containersV2.richMedia.Create.resolutionText": "Resolution 360 x 200",
1450
1396
  "creatives.containersV2.richMedia.Create.sameTemplateExists": "Template with the same name exists",
1451
1397
  "creatives.containersV2.richMedia.Create.saveSuccess": "Template saved successfully",
1452
- "creatives.containersV2.richMedia.Create.searchText": "Search Templates",
1453
1398
  "creatives.containersV2.richMedia.Create.somethingWentWrong": "Something went wrong!!",
1454
1399
  "creatives.containersV2.richMedia.Create.sourceIdentMissing": "Please provide source account identifier",
1455
1400
  "creatives.containersV2.richMedia.Create.sourceLinkEmpty": "Cannot leave source link field empty",
@@ -1467,7 +1412,6 @@
1467
1412
  "creatives.containersV2.richMedia.Create.visibility": "visibility",
1468
1413
  "creatives.containersV2.richMedia.Create.wrongFormatFile": "Wrong file upoaded. Please upload image file",
1469
1414
  "creatives.containersV2.richMedia.Create.wrongUrl": "Enter correct URL",
1470
- "creatives.containersV2.richMedia.create.templateNameAlreadyExists": "Template name already exists",
1471
1415
  "customdatepicker.cancel": "Cancel",
1472
1416
  "customdatepicker.done": "Done",
1473
1417
  "reon.components.Cap.Workbench": "WorkBench",
@@ -127,18 +127,11 @@
127
127
  "creatives.componentsV2.Header.save": "",
128
128
  "creatives.componentsV2.ImagePreview.close": "",
129
129
  "creatives.componentsV2.ImagePreview.loadingImage": "",
130
- "creatives.componentsV2.NavigationBar.businessProcesses": "",
131
- "creatives.componentsV2.NavigationBar.campaign": "",
132
130
  "creatives.componentsV2.NavigationBar.header": "",
133
131
  "creatives.componentsV2.NavigationBar.insights": "",
134
132
  "creatives.componentsV2.NavigationBar.logout": "",
135
- "creatives.componentsV2.NavigationBar.loyaltyProgram": "",
136
- "creatives.componentsV2.NavigationBar.memberCare": "",
137
133
  "creatives.componentsV2.NavigationBar.orgSettings": "",
138
134
  "creatives.componentsV2.NavigationBar.selectedProductDefault": "",
139
- "creatives.componentsV2.NavigationBar.storeCare": "",
140
- "creatives.componentsV2.NavigationBar.storePerformance": "",
141
- "creatives.componentsV2.NavigationBar.wecrm": "",
142
135
  "creatives.componentsV2.NewCallTask.callTaskTitle": "",
143
136
  "creatives.componentsV2.NewCallTask.description": "",
144
137
  "creatives.componentsV2.NewCallTask.done": "",
@@ -916,7 +909,6 @@
916
909
  "creatives.containersV2.Email.Save": "",
917
910
  "creatives.containersV2.Email.Subject": "",
918
911
  "creatives.containersV2.Email.Tags": "",
919
- "creatives.containersV2.Email.addLabel": "",
920
912
  "creatives.containersV2.Email.alert": "",
921
913
  "creatives.containersV2.Email.alertMessage": "",
922
914
  "creatives.containersV2.Email.alphabetically": "",
@@ -942,7 +934,6 @@
942
934
  "creatives.containersV2.Email.emailSubject": "",
943
935
  "creatives.containersV2.Email.emailSubjectNotEmplty": "",
944
936
  "creatives.containersV2.Email.emailText": "",
945
- "creatives.containersV2.Email.english": "",
946
937
  "creatives.containersV2.Email.goBackTemporaryChangesLost": "",
947
938
  "creatives.containersV2.Email.h3emailPreview": "",
948
939
  "creatives.containersV2.Email.h3imageSelection": "",
@@ -992,48 +983,6 @@
992
983
  "creatives.containersV2.EmailWrapper.useEditorDesc": "",
993
984
  "creatives.containersV2.EmailWrapper.zipUpload": "",
994
985
  "creatives.containersV2.EmailWrapper.zipUploadDesc": "",
995
- "creatives.containersV2.Facebook.fbAccount": "",
996
- "creatives.containersV2.Facebook.fbAdCampaignSetDetailsDescription": "",
997
- "creatives.containersV2.Facebook.fbAdCampaignSetDetailsTitle": "",
998
- "creatives.containersV2.Facebook.fbAdSetName": "",
999
- "creatives.containersV2.Facebook.fbAdsDescription": "",
1000
- "creatives.containersV2.Facebook.fbAdsDetailOne": "",
1001
- "creatives.containersV2.Facebook.fbAdsDetailThree": "",
1002
- "creatives.containersV2.Facebook.fbAdsDetailTwo": "",
1003
- "creatives.containersV2.Facebook.fbAdsTitle": "",
1004
- "creatives.containersV2.Facebook.fbAudience": "",
1005
- "creatives.containersV2.Facebook.fbCampaignName": "",
1006
- "creatives.containersV2.Facebook.fbChange": "",
1007
- "creatives.containersV2.Facebook.fbConfirm": "",
1008
- "creatives.containersV2.Facebook.fbMarketingObjective": "",
1009
- "creatives.containersV2.Facebook.fbMarketingObjectiveAppInstallTitle": "",
1010
- "creatives.containersV2.Facebook.fbMarketingObjectiveAppInstallsDescription": "",
1011
- "creatives.containersV2.Facebook.fbMarketingObjectiveAwareness": "",
1012
- "creatives.containersV2.Facebook.fbMarketingObjectiveBrandAwarenessDescription": "",
1013
- "creatives.containersV2.Facebook.fbMarketingObjectiveBrandAwarenessTitle": "",
1014
- "creatives.containersV2.Facebook.fbMarketingObjectiveCatalogSalesDescription": "",
1015
- "creatives.containersV2.Facebook.fbMarketingObjectiveCatalogSalesTitle": "",
1016
- "creatives.containersV2.Facebook.fbMarketingObjectiveConsideration": "",
1017
- "creatives.containersV2.Facebook.fbMarketingObjectiveConversionsDescription": "",
1018
- "creatives.containersV2.Facebook.fbMarketingObjectiveConversionsTitle": "",
1019
- "creatives.containersV2.Facebook.fbMarketingObjectiveEngagementDescription": "",
1020
- "creatives.containersV2.Facebook.fbMarketingObjectiveEngagementTitle": "",
1021
- "creatives.containersV2.Facebook.fbMarketingObjectiveLeadGenerationDescription": "",
1022
- "creatives.containersV2.Facebook.fbMarketingObjectiveLeadGenerationTitle": "",
1023
- "creatives.containersV2.Facebook.fbMarketingObjectiveMessagesDescription": "",
1024
- "creatives.containersV2.Facebook.fbMarketingObjectiveMessagesTitle": "",
1025
- "creatives.containersV2.Facebook.fbMarketingObjectiveReachDescription": "",
1026
- "creatives.containersV2.Facebook.fbMarketingObjectiveReachTitle": "",
1027
- "creatives.containersV2.Facebook.fbMarketingObjectiveStoreTrafficDescription": "",
1028
- "creatives.containersV2.Facebook.fbMarketingObjectiveStoreTrafficTitle": "",
1029
- "creatives.containersV2.Facebook.fbMarketingObjectiveTrafficDescription": "",
1030
- "creatives.containersV2.Facebook.fbMarketingObjectiveTrafficTitle": "",
1031
- "creatives.containersV2.Facebook.fbMarketingObjectiveVideoViewsDescription": "",
1032
- "creatives.containersV2.Facebook.fbMarketingObjectiveVideoViewsTitle": "",
1033
- "creatives.containersV2.Facebook.fbNoAudienceSelected": "",
1034
- "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDescription": "",
1035
- "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDone": "",
1036
- "creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveTitle": "",
1037
986
  "creatives.containersV2.Line.Create.Campaigns": "",
1038
987
  "creatives.containersV2.Line.Create.Creatives": "",
1039
988
  "creatives.containersV2.Line.Create.Image": "",
@@ -1360,7 +1309,6 @@
1360
1309
  "creatives.containersV2.TemplatesV2.creativesDesc": "",
1361
1310
  "creatives.containersV2.TemplatesV2.edit": "",
1362
1311
  "creatives.containersV2.TemplatesV2.email": "",
1363
- "creatives.containersV2.TemplatesV2.facebook": "",
1364
1312
  "creatives.containersV2.TemplatesV2.gallery": "",
1365
1313
  "creatives.containersV2.TemplatesV2.header": "",
1366
1314
  "creatives.containersV2.TemplatesV2.pushNotification": "",
@@ -1430,8 +1378,6 @@
1430
1378
  "creatives.containersV2.richMedia.Create.delete": "",
1431
1379
  "creatives.containersV2.richMedia.Create.deleteContent": "",
1432
1380
  "creatives.containersV2.richMedia.Create.emptyTemplateName": "",
1433
- "creatives.containersV2.richMedia.Create.existingMedia": "",
1434
- "creatives.containersV2.richMedia.Create.existingMediaHeader": "",
1435
1381
  "creatives.containersV2.richMedia.Create.fileContentFailed": "",
1436
1382
  "creatives.containersV2.richMedia.Create.formEmpty": "",
1437
1383
  "creatives.containersV2.richMedia.Create.header": "",
@@ -1449,7 +1395,6 @@
1449
1395
  "creatives.containersV2.richMedia.Create.resolutionText": "",
1450
1396
  "creatives.containersV2.richMedia.Create.sameTemplateExists": "",
1451
1397
  "creatives.containersV2.richMedia.Create.saveSuccess": "",
1452
- "creatives.containersV2.richMedia.Create.searchText": "",
1453
1398
  "creatives.containersV2.richMedia.Create.somethingWentWrong": "",
1454
1399
  "creatives.containersV2.richMedia.Create.sourceIdentMissing": "",
1455
1400
  "creatives.containersV2.richMedia.Create.sourceLinkEmpty": "",
@@ -1467,7 +1412,6 @@
1467
1412
  "creatives.containersV2.richMedia.Create.visibility": "",
1468
1413
  "creatives.containersV2.richMedia.Create.wrongFormatFile": "",
1469
1414
  "creatives.containersV2.richMedia.Create.wrongUrl": "",
1470
- "creatives.containersV2.richMedia.create.templateNameAlreadyExists": "",
1471
1415
  "customdatepicker.cancel": "",
1472
1416
  "customdatepicker.done": "",
1473
1417
  "reon.components.Cap.Workbench": "",
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import styled from 'styled-components';
10
- import { isEmpty, forEach } from 'lodash';
10
+ import { isEmpty, forEach, find } from 'lodash';
11
11
  import { loadItem } from 'services/localStorageApi';
12
12
  import { intlShape, injectIntl } from 'react-intl';
13
13
  import TopBar from '../TopBar';
@@ -86,16 +86,14 @@ class NavigationBar extends React.Component {
86
86
 
87
87
  getProductsList = () => {
88
88
  const { formatMessage } = this.props.intl;
89
+ const { campaignOrgV2Status } = this.props;
89
90
  const { currentOrgDetails } = this.props.userData;
90
91
  const productsList = [];
91
92
  if (!isEmpty(currentOrgDetails)) {
92
93
  forEach(currentOrgDetails.module_details, (module) => {
93
94
  if (module.name.toLowerCase() !== PRODUCT_MASTERS) {
94
- const productName = module.code;
95
- const intlProductName = messages[productName];
96
- const moduleName = intlProductName ? formatMessage(intlProductName) : module.name.toLowerCase();
97
95
  productsList.push({
98
- value: moduleName,
96
+ value: module.name.toLowerCase(),
99
97
  url: module.url,
100
98
  key: module.code,
101
99
  });
@@ -103,6 +101,12 @@ class NavigationBar extends React.Component {
103
101
  });
104
102
  //below changes are temporary and should be fixed once we get correct modules list
105
103
  //changing campaigns module name to engage+
104
+ if ( !campaignOrgV2Status ) {
105
+ const campaignsModule = find(productsList, ['value', 'campaigns']);
106
+ if (campaignsModule) {
107
+ campaignsModule.value = 'Engage+';
108
+ }
109
+ }
106
110
  //adding insights+ to module list
107
111
  productsList.push({
108
112
  value: formatMessage(messages.insights),
@@ -220,6 +224,7 @@ NavigationBar.propTypes = {
220
224
  intl: intlShape.isRequired,
221
225
  location: PropTypes.object,
222
226
  type: PropTypes.string,
227
+ campaignOrgV2Status: PropTypes.bool,
223
228
  };
224
229
 
225
230
  export default injectIntl(NavigationBar);
@@ -29,32 +29,4 @@ export default defineMessages({
29
29
  id: `${scope}.logout`,
30
30
  defaultMessage: 'Logout',
31
31
  },
32
- businessProcesses: {
33
- id: `${scope}.businessProcesses`,
34
- defaultMessage: 'Workbench',
35
- },
36
- campaign: {
37
- id: `${scope}.campaign`,
38
- defaultMessage: 'Engage+',
39
- },
40
- wecrm: {
41
- id: `${scope}.wecrm`,
42
- defaultMessage: 'Wecrm',
43
- },
44
- loyaltyProgram: {
45
- id: `${scope}.loyaltyProgram`,
46
- defaultMessage: 'Loyalty+',
47
- },
48
- storePerformance: {
49
- id: `${scope}.storePerformance`,
50
- defaultMessage: 'Store Performance',
51
- },
52
- memberCare: {
53
- id: `${scope}.memberCare`,
54
- defaultMessage: 'Member Care',
55
- },
56
- storeCare: {
57
- id: `${scope}.storeCare`,
58
- defaultMessage: 'Store Care',
59
- },
60
32
  });
@@ -12,7 +12,6 @@ import MobilepushWrapper from '../MobilepushWrapper';
12
12
  import EmailPreviewV2 from '../../v2Components/EmailPreviewV2';
13
13
  import MobilePushPreview from '../../v2Components/MobilePushPreviewV2';
14
14
  import WechatWrapper from '../WeChat/Wrapper';
15
- import Facebook from '../Facebook';
16
15
  import { RICH_MEDIA, MAP_TEMPLATE, CREATE } from '../WeChat/Wrapper/constants';
17
16
  import CallTask from '../CallTask';
18
17
  import MobliPushEdit from '../MobilePush/Edit';
@@ -31,7 +30,6 @@ function getWechatTemplateType(mode, templateData, weChatTemplateType = '') {
31
30
  }
32
31
  return weChatTemplateType;
33
32
  }
34
-
35
33
  function SlideBoxContent(props) {
36
34
  const {
37
35
  slidBoxContent,
@@ -69,7 +67,6 @@ function SlideBoxContent(props) {
69
67
  selectedWeChatAccount,
70
68
  weChatMaptemplateStep,
71
69
  onWeChatMaptemplateStepChange,
72
- onFacebookSubmit,
73
70
  } = props;
74
71
  const type = messageDetails.type.toLowerCase(); // type is context in get tags values : outbound | dvs | referral | loyalty | coupons
75
72
  const query = { type: !isFullMode && 'embedded', module: isFullMode ? 'default' : 'library', isEditFromCampaigns: (templateData || {}).isEditFromCampaigns};
@@ -90,7 +87,6 @@ function SlideBoxContent(props) {
90
87
  let isMpushPreview = false;
91
88
  let isEditCallTask = false;
92
89
  let isEditMPush = false;
93
- let isEditFacebook = false;
94
90
  const isEmailCreate = slidBoxContent === 'createTemplate' && channel === constants.EMAIL;
95
91
  if (templateData && channel) {
96
92
  channel = templateData.type;// for edit mode with template data
@@ -99,7 +95,6 @@ function SlideBoxContent(props) {
99
95
  isEditMPush = slidBoxContent === 'editTemplate' && channel === constants.MOBILE_PUSH;
100
96
  isEditEmailWithId = slidBoxContent === 'editTemplate' && channel === constants.EMAIL && templateData._id;
101
97
  isEmailEditWithContent = slidBoxContent === 'editTemplate' && channel === constants.EMAIL && !templateData._id;
102
- isEditFacebook = slidBoxContent === 'editTemplate' && channel === constants.FACEBOOK;
103
98
  isPreview = slidBoxContent === 'preview' && channel === constants.SMS;
104
99
  isEmailPreview = slidBoxContent === 'preview' && channel === constants.EMAIL;
105
100
  isMpushPreview = slidBoxContent === 'preview' && channel === constants.MOBILE_PUSH;
@@ -121,8 +116,6 @@ function SlideBoxContent(props) {
121
116
  channelsToHide={channelsToHide}
122
117
  forwardedTags={forwardedTags}
123
118
  channelsToDisable={channelsToDisable}
124
- messageDetails={messageDetails}
125
- onFacebookSubmit={onFacebookSubmit}
126
119
  />
127
120
  )}
128
121
  {isPreview && (
@@ -309,16 +302,6 @@ function SlideBoxContent(props) {
309
302
  onValidationFail={onValidationFail}
310
303
  selectedOfferDetails={selectedOfferDetails}/>
311
304
  }
312
- {
313
- isEditFacebook && (
314
- <Facebook
315
- templateData={templateData}
316
- messageDetails={messageDetails}
317
- cap={cap}
318
- onFacebookSubmit={onFacebookSubmit}
319
- />
320
- )
321
- }
322
305
  </CreativesWrapper>
323
306
  );
324
307
  }
@@ -358,6 +341,5 @@ SlideBoxContent.propTypes = {
358
341
  selectedWeChatAccount: PropTypes.object,
359
342
  onWeChatMaptemplateStepChange: PropTypes.func,
360
343
  weChatMaptemplateStep: PropTypes.string,
361
- onFacebookSubmit: PropTypes.func,
362
344
  };
363
345
  export default SlideBoxContent;
@@ -12,6 +12,5 @@ export const LINE = "LINE";
12
12
  export const CALL_TASK = "CALL_TASK";
13
13
  export const MOBILE_PUSH = "MOBILEPUSH";
14
14
  export const WECHAT = "WECHAT";
15
- export const FACEBOOK = "FACEBOOK";
16
15
  export const SHOW_CONTANER_LOADER = "app/CreativesContainer/SHOW_CONTANER_LOADER";
17
16
  export const HIDE_CONTAINER_LOADER = "app/CreativesContainer/HIDE_CONTAINER_LOADER";
@@ -207,14 +207,6 @@ class Creatives extends React.Component {
207
207
  };
208
208
  break;
209
209
  }
210
- case constants.FACEBOOK: {
211
- creativesTemplateData = {
212
- selectedMarketingObjective: templateData.selectedMarketingObjective,
213
- edit: true,
214
- type: channel,
215
- };
216
- break;
217
- }
218
210
  default:
219
211
  break;
220
212
  }
@@ -473,7 +465,7 @@ class Creatives extends React.Component {
473
465
  }
474
466
  render() {
475
467
  const {slidBoxContent, isGetFormData, showSlideBox, templateData, currentChannel, emailCreateMode, templateStep, isLoadingContent, mobilePushCreateMode, isDiscardMessage, weChatTemplateType, weChatMaptemplateStep} = this.state;
476
- const {isFullMode, creativesMode, cap, isUploading, channelsToHide, selectedWeChatAccount, forwardedTags, channelsToDisable, selectedOfferDetails, getCreativesData} = this.props;
468
+ const {isFullMode, creativesMode, cap, isUploading, channelsToHide, selectedWeChatAccount, forwardedTags, channelsToDisable, selectedOfferDetails} = this.props;
477
469
  const mapTemplateCreate = slidBoxContent === 'createTemplate' && weChatTemplateType === MAP_TEMPLATE && templateStep !== 'modeSelection';
478
470
  /* TODO: Instead of passing down same props separately to each component down, write common function to these props and pass it accordingly */
479
471
  return (
@@ -538,7 +530,6 @@ class Creatives extends React.Component {
538
530
  weChatMaptemplateStep={weChatMaptemplateStep}
539
531
  selectedWeChatAccount={selectedWeChatAccount}
540
532
  onWeChatMaptemplateStepChange={this.onWeChatMaptemplateStepChange}
541
- onFacebookSubmit={getCreativesData}
542
533
  />
543
534
  }
544
535
  footer={this.shouldShowFooter() &&
@@ -286,12 +286,4 @@ export default defineMessages({
286
286
  id: 'creatives.containersV2.Email.h3imageSelection',
287
287
  defaultMessage: 'Image selection',
288
288
  },
289
- "English": {
290
- id: 'creatives.containersV2.Email.english',
291
- defaultMessage: 'English',
292
- },
293
- "Add label": {
294
- id: 'creatives.containersV2.Email.addLabel',
295
- defaultMessage: 'Add label',
296
- },
297
289
  });