diff --git a/package.json b/package.json index 5ef490b7c..2968deced 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-client", - "version": "24.02.2", + "version": "24.02.3", "private": true, "scripts": { "dev": "vite", diff --git a/src/modules/userinfo/store/_internals/lookups/ObjectsList.lookup.js b/src/modules/userinfo/store/_internals/lookups/ObjectsList.lookup.js index 265bdeb59..394204d90 100644 --- a/src/modules/userinfo/store/_internals/lookups/ObjectsList.lookup.js +++ b/src/modules/userinfo/store/_internals/lookups/ObjectsList.lookup.js @@ -22,10 +22,10 @@ export default Object.freeze([ route: RouteNames.GATEWAYS, }, // scope: gateways { - field: 'acr_routing', + field: 'acr_chat_plan', name: AdminSections.CHATPLAN, route: RouteNames.CHATPLAN, - }, // scope: acr_routing + }, // scope: acr_chat_plan { field: 'chats', name: AdminSections.CHAT_GATEWAYS, @@ -33,6 +33,11 @@ export default Object.freeze([ }, // scope: chats // LOOKUPS + { + field: 'dictionaries', + name: AdminSections.SKILLS, + route: RouteNames.SKILLS, + }, // scope: dictionaries { field: 'cc_list', name: AdminSections.BLACKLIST, @@ -43,27 +48,30 @@ export default Object.freeze([ name: AdminSections.CALENDARS, route: RouteNames.CALENDARS, }, // scope: calendars - { field: 'lookups', name: AdminSections.REGIONS, route: RouteNames.REGIONS }, // scope: lookups { - field: 'lookups', + field: 'dictionaries', + name: AdminSections.REGIONS, + route: RouteNames.REGIONS, + }, // scope: dictionaries + { + field: 'dictionaries', + name: AdminSections.BUCKETS, + route: RouteNames.BUCKETS, + }, + { + field: 'dictionaries', name: AdminSections.COMMUNICATIONS, route: RouteNames.COMMUNICATIONS, - }, // scope: lookups + }, // scope: dictionaries { - field: 'lookups', + field: 'dictionaries', name: AdminSections.PAUSE_CAUSE, route: RouteNames.PAUSE_CAUSE, - }, // scope: lookups + }, // scope: dictionaries { field: 'media_file', name: AdminSections.MEDIA, route: RouteNames.MEDIA }, // scope: media_file // CONTACT CENTER - { field: 'lookups', name: AdminSections.SKILLS, route: RouteNames.SKILLS }, // scope: lookups { field: 'cc_agent', name: AdminSections.AGENTS, route: RouteNames.AGENTS }, // scope: cc_agent - { - field: 'cc_bucket', - name: AdminSections.BUCKETS, - route: RouteNames.BUCKETS, - }, // scope: cc_bucket { field: 'cc_queue', name: AdminSections.QUEUES, route: RouteNames.QUEUES }, // scope: cc_queue { field: 'cc_queue', name: AdminSections.MEMBERS, route: RouteNames.MEMBERS }, // scope: cc_queue { @@ -109,6 +117,11 @@ export default Object.freeze([ name: AdminSections.TRIGGERS, route: RouteNames.TRIGGERS, }, + { + field: 'schema', + name: AdminSections.FLOW, + route: RouteNames.FLOW, + }, // PERMISSIONS { field: null, name: AdminSections.OBJECTS, route: RouteNames.OBJECTS }, // permissions: add diff --git a/src/modules/userinfo/store/_internals/scripts/convertScope.js b/src/modules/userinfo/store/_internals/scripts/convertScope.js index 405717543..9af85cdef 100644 --- a/src/modules/userinfo/store/_internals/scripts/convertScope.js +++ b/src/modules/userinfo/store/_internals/scripts/convertScope.js @@ -1,5 +1,3 @@ -import AdminSections - from '@webitel/ui-sdk/src/enums/WebitelApplications/AdminSections.enum'; import ObjectsList from '../lookups/ObjectsList.lookup'; const convertScope = (initialScope) => { @@ -17,19 +15,6 @@ const convertScope = (initialScope) => { }, {}); } - // temporary add full access to lookups and flow permissions - // as soon as they haven't implemented on backend - const flow = ObjectsList.find((obj) => obj.name === AdminSections.FLOW); - const communications = ObjectsList.find((obj) => obj.name === - AdminSections.COMMUNICATIONS); - const skills = ObjectsList.find((obj) => obj.name === AdminSections.SKILLS); - const pauseCauses = ObjectsList.find((obj) => obj.name === - AdminSections.PAUSE_CAUSE); - scope.flow = { ...flow, access: 'rxwd' }; - scope.communications = { ...communications, access: 'rxwd' }; - scope.skills = { ...skills, access: 'rxwd' }; - scope.pauseCauses = { ...pauseCauses, access: 'rxwd' }; - return scope; };