https://sharelearn.net/learn/courses/udemy-sharepoint-document-approving-with-javascript/
SharePoint. Document approving with JavaScript