55 *--------------------------------------------------------------------------------------------*/
66
77import { TENANT_ID } from '../chatPreview/components/send-editor/common/config' ;
8+ import i18n from '../../locale/i18n' ;
9+ import chatScreenshot from '../../assets/images/appConfig/chat-screenshot.jpg' ;
10+ import heatmapScreenshot from '../../assets/images/appConfig/heatmap-screenshot.jpg' ;
811const { origin } = window . location ;
912let baseUrl = '' ;
1013if ( process . env . PACKAGE_MODE === 'spa' ) {
@@ -20,6 +23,25 @@ export const configMap = {
2023 node : "startNodeStart" ,
2124 urls : {
2225 customHistoryUrl : ""
26+ } ,
27+ appConfig : {
28+ appChatStyle : {
29+ name : 'appChatStyle' ,
30+ label : 'appChatStyle' ,
31+ options : [
32+ {
33+ value : 'default' ,
34+ label : i18n . t ( 'default' ) ,
35+ image : chatScreenshot ,
36+ } ,
37+ {
38+ value : 'heatMap' ,
39+ label : i18n . t ( 'heatMap' ) ,
40+ image : heatmapScreenshot ,
41+ } ,
42+ ] ,
43+ rules : [ { required : true , message : 'appChatStyleCannotBeEmpty' } ] ,
44+ } ,
2345 }
2446 } ,
2547 {
@@ -96,6 +118,30 @@ export const configMap = {
96118 node : "startNodeStart" ,
97119 urls : {
98120 customHistoryUrl : `${ baseUrl } /v1/api/public/genericables/68dc66a6185cf64c801e55c97fc500e4?limit=10&offset=0`
121+ } ,
122+ appConfig : {
123+ appChatStyle : {
124+ name : 'appChatStyle' ,
125+ label : 'appChatStyle' ,
126+ options : [
127+ {
128+ value : 'default' ,
129+ label : i18n . t ( 'default' ) ,
130+ image : chatScreenshot ,
131+ } ,
132+ {
133+ value : 'heatMap' ,
134+ label : i18n . t ( 'heatMap' ) ,
135+ image : heatmapScreenshot ,
136+ } ,
137+ {
138+ value : 'default1' ,
139+ label : i18n . t ( 'default' ) ,
140+ image : heatmapScreenshot ,
141+ } ,
142+ ] ,
143+ rules : [ { required : true , message : 'appChatStyleCannotBeEmpty' } ] ,
144+ } ,
99145 }
100146 } ,
101147 {
0 commit comments