Java script function to generate $L.src.url

Dear Experts,

There is a java script "urlCreator" which is used to generate $L.src.url. Bascially this script checks if it is invoked from Apporval notification than it returns the encrypted URL for apporval record otherwise it returns the URL for interaction record.

we have requirement where we have to send notification not using default "Apporval Added" notification and link should be for apporval record.

Has anyone created/updated the fucntion inside script "urlCreator" to generated on demand value for variable $L.src..url ?

 

Regards,