Viscosity functions of shear flows for fractional Jeffreys fluids