A major Australian company will slash thousands of jobs as it embraces artificial intelligence in a sweeping overhaul of its operations.