Text this: Bethe ansatz approach for dissipation: exact solutions of quantum many-body dynamics under loss