code: public JSONObject getByAgency(String company, String agency, HashMap<String, String> params) throws JSONException {
          return _getByType(company, null, agency, params, false);
      }
docs: Generating Agency Specific Reports
  
  @param   company Company ID
  @param   agency Agency ID
  @param   params Parameters
  @throws	JSONException If error occurred
  @return	{@link JSONObject}