code: function(company, team, agency, hideFinDetails) {
    debug('preparing url');
    var _url = '';
    if (team) {
      _url = '/teams/' + team;
      if (hideFinDetails) {
        _url = _url + '/hours';
      }
    } else if (agency) {
      _url = '/agencies/' + agency;
    }
  
    return 'timereports/v1/companies/' + company + _url;
  }
docs: Get by type
  
  @method _getUrlByType
  @param company {String} Company ID
  @param team {String} Team ID
  @param agency {String} Agency
  @param hideFinDetails {Boolean} Hides all financial details
  @return Relative api URL
  @private