Hello Gareth,
The problem for this error is that you probably haven't set the main structure initially (I mean window._genesys.widgets.main).
So with javascript, you cannot set elements/attributes in this structure directly (like window._genesys.widgets.main.them and window._genesys.widgets.main.themes).
It would have to be something like this:
window._genesys.widgets.main = {
theme: "mybrand",
themes: {
"mybrand": "cx-theme-mybrand"
}
};
But if you set this where I think you set this, it still won't work. You have to define the themes at widgets configuration level, before the Widgets plugin are loaded.
So instead - do this at the same time you define window._genesys.widgets.webchat.
window._genesys = {
widgets: {
main: {
timeFormat: 24,
lang: 'en',
theme: "mybrand",
themes: {
"mybrand": "cx-theme-mybrand"
},
mobileMode: 'auto',
mobileModeBreakpoint: 600
},
webchat: {
transport: {
type: 'purecloud-v2-sockets',
dataURL: 'https://api.mypurecloud.com',
deploymentKey: 'xxxxxxx',
orgGuid: 'yyyyyyyyy',
interactionData: {
routing: {
targetType: 'QUEUE',
targetAddress: 'ABCD',
priority: 2
}
}
},
userData: {}
}
}
};
Regards,
------------------------------
Jerome Saint-Marc
Genesys - Employees
------------------------------