Temporary staff or contract workers are only eligible for gratuity if they are legally considered as employees of the company.