@webex/webex-core
Version:
Plugin handling for Cisco Webex
88 lines (85 loc) • 2.45 kB
JavaScript
;
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
_Object$defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _storage = require("./lib/storage");
var _credentialsConfig = _interopRequireDefault(require("./credentials-config"));
/*!
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
*/
/* eslint camelcase: [0] */
var _default = exports.default = {
maxAppLevelRedirects: 10,
maxLocusRedirects: 5,
maxAuthenticationReplays: 1,
maxReconnectAttempts: 1,
onBeforeLogout: [],
trackingIdPrefix: 'webex-js-sdk',
trackingIdSuffix: '',
AlternateLogger: undefined,
credentials: new _credentialsConfig.default(),
fedramp: process.env.ENABLE_FEDRAMP || false,
services: {
/**
* A list of services that are available prior to catalog collection.
*
* @type {Object}
*/
discovery: {
/**
* The hydra discovery url.
*
* @type {string}
*/
hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',
/**
* load balanced region info url
*/
sqdiscovery: process.env.SQDISCOVERY_SERVICE_URL || 'https://ds.ciscospark.com/v1/region',
/**
* The u2c discovery url
*
* @type {string}
*/
u2c: process.env.U2C_SERVICE_URL || 'https://u2c.wbx2.com/u2c/api/v1'
},
/**
* When true, considers all urls in `allowedDomains` as safe for auth tokens
*
* @type {boolean}
*/
validateDomains: true,
/**
* services that don't need auth validation
*/
servicesNotNeedValidation: ['webex-appapi-service'],
/**
* Contains a list of allowed domain host addresses.
*
* @type {Array<string>}
*/
allowedDomains: []
},
device: {
preDiscoveryServices: {
hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',
hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1'
},
validateDomains: true
},
metrics: {
type: ['behavioral', 'operational']
},
payloadTransformer: {
predicates: [],
transforms: []
},
storage: {
boundedAdapter: _storage.MemoryStoreAdapter,
unboundedAdapter: _storage.MemoryStoreAdapter
}
};
//# sourceMappingURL=config.js.map