code: function resourcesFunction(url, paramDefaults, actions, options) {
                  if (config.resourcesFunction == undefined) {
                      return $injector.get("$resource")(url, paramDefaults, actions, options);
                  } else {
                      return config.resourcesFunction(url, paramDefaults, actions, options);
                  }
              }
docs: Returns the Angular $resource method which is configured with the given parameters.
  
  @param {string} url the url at which the resource is available
  @param {object} paramDefaults optional $resource method parameter defaults
  @param {object} actions optional $resource method actions
  @param {object} options additional $resource method options
  @returns {*}