docs: function OauthScopeMethods(models, config) {
        var scope, scopeDefinition, _i, _len, _ref;
        this.models = models;
        this.getScope = __bind(this.getScope, this);
        this.allScopeNamesAsArray = __bind(this.allScopeNamesAsArray, this);
        this.get = __bind(this.get, this);
        this.all = __bind(this.all, this);
        if (config && config.scopes) {
          _ref = config.scopes;
          for (_i = 0, _len = _ref.length; _i < _len; _i++) {
            scopeDefinition = _ref[_i];
            scope = new Scope(scopeDefinition);
            if (scope.isValid()) {
              this.loadedScopes[scope.name] = scope;
            } else {
              console.log("Invalid scope in config - skipped - " + (JSON.stringify(scopeDefinition)));
            }
          }
        }
      }