model/consoleState.js
function(user) {
        var config = _.cloneDeep($$config);

        var network = _.cloneDeep($$network.attributes);
        delete network.config;

        var persistence = _.cloneDeep($$persistence.attributes);
        delete persistence.config;

        var logging = _.cloneDeep($$logging.attributes);
        delete logging.config;
        delete logging.logCache;
        delete logging.eventCache;

        var permissions = user ? $$config.permissions[user] : null;

        return _.merge(_.cloneDeep($$config), {
            network: network,
            persistence: persistence,
            logging: logging,
            permissions: permissions
        });
    }
function(user) {
        var config = _.cloneDeep($$config);

        var network = _.cloneDeep($$network.attributes);
        delete network.config;

        var persistence = _.cloneDeep($$persistence.attributes);
        delete persistence.config;

        var logging = _.cloneDeep($$logging.attributes);
        delete logging.config;
        delete logging.logCache;
        delete logging.eventCache;

        var permissions = user ? $$config.permissions[user] : null;

        return _.merge(_.cloneDeep($$config), {
            network: network,
            persistence: persistence,
            logging: logging,
            permissions: permissions
        });
    }
function ( user ) { var config = _ . cloneDeep ( $$config ) ; var network = _ . cloneDeep ( $$network . attributes ) ; delete network . config ; var persistence = _ . cloneDeep ( $$persistence . attributes ) ; delete persistence . config ; var logging = _ . cloneDeep ( $$logging . attributes ) ; delete logging . config ; delete logging . logCache ; delete logging . eventCache ; var permissions = user ? $$config . permissions [ user ] : null ; return _ . merge ( _ . cloneDeep ( $$config ) , { network : network , persistence : persistence , logging : logging , permissions : permissions } ) ; }
Build an object representing the whole configuration of the server.
Build an object representing the whole configuration of the server .