Woonsocket-based CVS is laying off nearly 800 people and the impact on Rhode Island will be 19 jobs, 12 in its headquarters.