Spinning loop amplitudes in anti–de Sitter space