i have created a Sharepoint 2013 workflow and using App Step in the workflow, i have saved the site as a template and created a new site using the javascript object model. The Sharepoint 2013 workflow App Step was not working fine until i manually enable the App Step trust in the newly created site. i am creating the site from site template using javascript object model and someone help in enabling the App Step trust using the javascript object model.