 WeWork has agreed to sell itself in a blank-check deal that will result in the shared office-space provider becoming a publicly traded company almost two years after its initial public offering debacle. 