WeWork planning to cut thousands of jobs