Skip to content

Embedded configuration

We're now passing the main settings as named parameters to showGenesysUI() function.

As we add more features, the number of configuration options is going to grow.

Implement a Config class with settings for Embedded Genesys UI:

class Config {
   public apiUrl: string = 'https://api.sandbox.genesys-pgr.org';
   public clientId: string = 'clientid@genesys';
   public clientKey: string = 'changeme';
   public filter: object;
}

We will then call showGenesysUI like:

showGenesysUI(document.getElementById('genesys-container'), {
 apiUrl: 'https://...',
 clientId: '..',
 ...
});
Edited by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information