Config

The config contains basic information about the currently logged in account. Calling the getter function will return a promise that will be resolved with the config object that contains customerId, adminId, customer's dateFormat and timeFormat, language, timezone (admin's time zone), accountTimezone (customer's time zone) and all enabled flippers. This customerId and adminId is not suited for authentication. For authenticating customers an Authentication Token should be used.

It works in iframes as well, but the UI Kit and window.e.config must be present on top window, otherwise the promise won't resolve.

JavaScript
window.e.utils.getConfig().then(config => {
  console.log('customerId is: ' + config.customerId);
});

Creating Config Service

Method

NameDescription
window.e.utils.getConfig()Returns promise that resolves with the configuration.