For the purposes of eligibility for a deferred salary leave, being on a maternity leave is considered being at work. So if the eligibility requirement calls for 4 consecutive years of work, then a maternity leave is considered as one of those years.