CBS has agreed to buy Viacom, and employees at the takeover target are hoping their turnaround efforts will be enough to save their jobs.