function resolveScopes(models) {
    models.forEach(function (model) {
        var options = getScopeOptions(model.prototype);
        if (options) {
            Object
                .keys(options)
                .forEach(function (key) { return resolveScope(key, model, options[key]); });
        }
    });
}
/**
 * Resolves scopes and adds them to the specified models
 */
Resolves scopes and adds them to the specified models
Resolves scopes and adds them to the specified models
function resolveScopes(models) {
    models.forEach(function (model) {
        var options = getScopeOptions(model.prototype);
        if (options) {
            Object
                .keys(options)
                .forEach(function (key) { return resolveScope(key, model, options[key]); });
        }
    });
}
function resolveScopes ( models ) { models . forEach ( function ( model ) { var options = getScopeOptions ( model . prototype ) ; if ( options ) { Object . keys ( options ) . forEach ( function ( key ) { return resolveScope ( key , model , options [ key ] ) ; } ) ; } } ) ; }
Resolves scopes and adds them to the specified models
Resolves scopes and adds them to the specified models