A dog who spent 10 years with the same family was left heartbroken after they welcomed a new baby and gave him up