Dear client it is illegal to imprison someone without warrant and without complying with certain procedural formalities but in day to day matter it is very difficult to enforce unless you have some proof of the alleged imprisonment which seems illegal. in any case if your police station has cctv then you can approach the senior officer in police or even court against illegal detention and departmental steps will be taken against such officer but please also remember that you are on shaky wicket since you are also in breach of contract and can also be criminally proceeded against for cheating or criminal breach of trust and therefore try to also settle the due that you owe to your colleague.
You can take action against the police officer and will also paid compensation
As per your submission it reveals that this is a matter of harassment
You can file an application before superintendent of police
You can file private complaint before magistrate court
For advise you can mail me on
File a complaint before court immediately. For any further assistance, feel free to contact me on my e-mail "firstname.lastname@example.org"
Shubham Pabbi & Associates
and if you liked my advice, dont forget to rate and comment "shubham pabbi & associates" on google.