WestJet pilot strike averted as parties agree to mediation