Default policy recover

I accidentally deleted the default policy which was made using js code, how do I recover that policy? if i try to create the same, I don’t get the option to select the code/js/rule policy