UNPKG

cluedin-widget

Version:

This is the project for creating and managing widgets in CluedIn.

44 lines (42 loc) 1.51 kB
const protocol = "https://"; const token = __cluedIn.token; const clientId = __cluedIn.org; const env = __cluedIn.env || 'production'; const urlConfig = { development: { auth: protocol + 'auth.cerebro.technology:1338/', api: protocol + 'api.cerebro.technology:1339/', app: protocol + clientId + '.cluedin.test:3000/', cdnUrl: 'https://s3-eu-west-1.amazonaws.com/cluedindev/', mainDomain: '.cluedin.test:3000/' }, test: { auth: protocol + 'auth.cerebro.technology:1338/', api: protocol + 'api.cerebro.technology:1339/', app: protocol + clientId + '.singlepageapp.be/', cdnUrl: 'https://s3.eu-central-1.amazonaws.com/cluedintest/', mainDomain: '.singlepageapp.be/' }, production: { auth: protocol + 'auth.cluedin.net/', api: protocol + 'api.cluedin.net/', app: protocol + clientId + '.cluedin.net/', cdnUrl: 'https://s3-eu-west-1.amazonaws.com/staticcluedin/', mainDomain: '.cluedin.test/' } }; const url = urlConfig[ env ]; module.exports = { DOM: { typeAttribute: 'cluedInType', idAttribute: 'id' }, image: require( './image' )( url.cdnUrl ), token: token, clientId: clientId, location: require( './location' )( protocol, url.mainDomain, clientId, env ), url: url, excludedProviders: require( './excludedProvider' ), providers: require( './provider' )( url.cdnUrl ), entity: require( './entity' ) };