Temperature and flow-induced viscosity transitions for CTAB surfactant solutions