@webitel/ui-sdk 3.1.91 → 3.1.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.1.91",
3
+ "version": "3.1.92",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -0,0 +1,5 @@
1
+ const CrmSections = Object.freeze({
2
+ CONTACTS: 'contacts',
3
+ });
4
+
5
+ export default CrmSections;
@@ -5,6 +5,7 @@ const WebitelApplications = Object.freeze({
5
5
  HISTORY: 'history',
6
6
  AUDIT: 'audit',
7
7
  ANALYTICS: 'grafana',
8
+ CRM: 'crm',
8
9
  });
9
10
 
10
11
  export default WebitelApplications;
@@ -9,6 +9,7 @@ import { QueueType } from 'webitel-sdk/esm2015/enums';
9
9
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
10
10
  import AuditorSections
11
11
  from '../../enums/WebitelApplications/AuditorSections.enum';
12
+ import CrmSections from '../../enums/WebitelApplications/CrmSections.enum';
12
13
  import SupervisorSections
13
14
  from '../../enums/WebitelApplications/SupervisorSections.enum';
14
15
  import WebitelApplications
@@ -166,6 +167,12 @@ export default {
166
167
  [AuditorSections.SCORECARDS]: 'Scorecards',
167
168
  },
168
169
  },
170
+ [WebitelApplications.CRM]: {
171
+ name: 'CRM',
172
+ sections: {
173
+ [CrmSections.CONTACTS]: 'Contacts',
174
+ },
175
+ },
169
176
  [WebitelApplications.HISTORY]: { name: 'Call History' },
170
177
  [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
171
178
  [WebitelApplications.SUPERVISOR]: {
@@ -9,6 +9,7 @@ import { QueueType } from 'webitel-sdk/esm2015/enums';
9
9
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
10
10
  import AuditorSections
11
11
  from '../../enums/WebitelApplications/AuditorSections.enum';
12
+ import CrmSections from '../../enums/WebitelApplications/CrmSections.enum';
12
13
  import SupervisorSections
13
14
  from '../../enums/WebitelApplications/SupervisorSections.enum';
14
15
  import WebitelApplications
@@ -165,6 +166,12 @@ export default {
165
166
  [AuditorSections.SCORECARDS]: 'Анкеты',
166
167
  },
167
168
  },
169
+ [WebitelApplications.CRM]: {
170
+ name: 'CRM',
171
+ sections: {
172
+ [CrmSections.CONTACTS]: 'Контакты',
173
+ },
174
+ },
168
175
  [WebitelApplications.HISTORY]: { name: 'Call History' },
169
176
  [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
170
177
  [WebitelApplications.SUPERVISOR]: {
@@ -9,6 +9,7 @@ import { QueueType } from 'webitel-sdk/esm2015/enums';
9
9
  import AdminSections from '../../enums/WebitelApplications/AdminSections.enum';
10
10
  import AuditorSections
11
11
  from '../../enums/WebitelApplications/AuditorSections.enum';
12
+ import CrmSections from '../../enums/WebitelApplications/CrmSections.enum';
12
13
  import SupervisorSections
13
14
  from '../../enums/WebitelApplications/SupervisorSections.enum';
14
15
  import WebitelApplications
@@ -165,6 +166,12 @@ export default {
165
166
  [AuditorSections.SCORECARDS]: 'Анкети',
166
167
  },
167
168
  },
169
+ [WebitelApplications.CRM]: {
170
+ name: 'CRM',
171
+ sections: {
172
+ [CrmSections.CONTACTS]: 'Контакти',
173
+ },
174
+ },
168
175
  [WebitelApplications.HISTORY]: { name: 'Call History' },
169
176
  [WebitelApplications.ANALYTICS]: { name: 'Data Visualisation Tool' },
170
177
  [WebitelApplications.SUPERVISOR]: {
@@ -1,5 +1,6 @@
1
1
  import deepmerge from 'deepmerge';
2
2
  import deepCopy from 'deep-copy';
3
+ import CrmSections from '../../../enums/WebitelApplications/CrmSections.enum';
3
4
  import WebitelApplications from '../../../enums/WebitelApplications/WebitelApplications.enum';
4
5
  import SupervisorSections from '../../../enums/WebitelApplications/SupervisorSections.enum';
5
6
  import AdminSections from '../../../enums/WebitelApplications/AdminSections.enum';
@@ -159,6 +160,14 @@ const applicationsAccess = (value = true) => ({
159
160
  _locale: `WebitelApplications.${WebitelApplications.AUDIT}.sections.${AuditorSections.SCORECARDS}`,
160
161
  },
161
162
  },
163
+ [WebitelApplications.CRM]: {
164
+ _enabled: value,
165
+ _locale: `WebitelApplications.${WebitelApplications.CRM}.name`,
166
+ [CrmSections.CONTACTS]: {
167
+ _enabled: value,
168
+ _locale: `WebitelApplications.${WebitelApplications.CRM}.sections.${CrmSections.CONTACTS}`,
169
+ },
170
+ },
162
171
  });
163
172
 
164
173
  /**