I am writing a contract that will store specific data in the table. And I want to trigger a node js function on my server that will call a specific action on a contract with specific parameters. The transaction should be signed and action should be called on the server with maximum security. Can someone tell me what is the process of calling actions using node RPC API? Because I can't figure out what parameters and functions should I use to do the equivalent with RPC API:
cleos wallet unlock
cleos push action contract_name action_name'[param1,param2]' -p contract_name