Integrable models for photon entanglement in NitrogenVacancy defects in diamond