Integrability of multiple three-wave interactions