Pl.go thro' this link for details discussed therein which will help you to understand.
First of all pl.tell us whether you are covered under the ESIC act or not. If yes, you should have taken enough compliance stipulations. If not you should be under the Maternity Benefit Act. The procedures & action to be taken will depend on your answer to the above observations.
You people should have some common sense before such developments takes place in your life. How you can afford to keep quite and after the event you are searching for remedies. Are your office people not guiding you what to do in the circumstances before hand? Sorry if I sound little harsh in my comments. But how could you expect us to help us in this kind of situation.
Pl.indicate full details, especially about any ESIC scheme is in place in your office or not.
10th December 2018 From India, Bangalore