Man accused of threatening to shoot up workplace gets probation