function _getConfigKeys(session, callback) {
	const corporalCommandSettings = session.env('corporal_command_settings');
	const configGetSettings = corporalCommandSettings['config-get'];
	let configKeysForUser = configGetSettings.configKeys[_getConfigCacheKey(session)];
	if (_.isArray(configKeysForUser)) {
		return callback(null, configKeysForUser);
	}

	// Get the config for the current tenant
	RestAPI.Config.getTenantConfig(session.env('current').ctx, null, function (err, config) {
		if (err) {
			return callback(err);
		}

		// Aggregate all the config keys into an array for this user. Since some users
		// may have different configurations points available to them, we maintain a
		// separate cache per user
		configKeysForUser = configGetSettings.configKeys[_getConfigCacheKey(session)] = _.keys(config);

		return callback(null, configKeysForUser);
	});
}
/*!
 * Get the configuration modules for auto-complete, possibly from cache
 */
Get the configuration modules for auto-complete, possibly from cache
Get the configuration modules for auto - complete possibly from cache
function _getConfigKeys(session, callback) {
	const corporalCommandSettings = session.env('corporal_command_settings');
	const configGetSettings = corporalCommandSettings['config-get'];
	let configKeysForUser = configGetSettings.configKeys[_getConfigCacheKey(session)];
	if (_.isArray(configKeysForUser)) {
		return callback(null, configKeysForUser);
	}
	RestAPI.Config.getTenantConfig(session.env('current').ctx, null, function (err, config) {
		if (err) {
			return callback(err);
		}
		configKeysForUser = configGetSettings.configKeys[_getConfigCacheKey(session)] = _.keys(config);
		return callback(null, configKeysForUser);
	});
}
function _getConfigKeys ( session , callback ) { const corporalCommandSettings = session . env ( 'corporal_command_settings' ) ; const configGetSettings = corporalCommandSettings [ 'config-get' ] ; let configKeysForUser = configGetSettings . configKeys [ _getConfigCacheKey ( session ) ] ; if ( _ . isArray ( configKeysForUser ) ) { return callback ( null , configKeysForUser ) ; } RestAPI . Config . getTenantConfig ( session . env ( 'current' ) . ctx , null , function ( err , config ) { if ( err ) { return callback ( err ) ; } configKeysForUser = configGetSettings . configKeys [ _getConfigCacheKey ( session ) ] = _ . keys ( config ) ; return callback ( null , configKeysForUser ) ; } ) ; }
Get the configuration modules for auto-complete, possibly from cache
Get the configuration modules for auto - complete possibly from cache
// Get the config for the current tenant // Aggregate all the config keys into an array for this user. Since some users // may have different configurations points available to them, we maintain a // separate cache per user