What is the role of NaOH in a given reaction. whether It act as a base to removal proton from amine or just to provide Na ion for the synthesis of sod. dithiocarbamate?

Proposed mechanism