3 var ReportService = function ( $http ) {
7 getReportData: function(requestInfo) {
8 return $http.post("error-report",requestInfo);
11 getReportTimeStamp: function () {
12 const today = new Date();
13 const se = String(today.getSeconds()).padStart(2, '0');
14 const mi = String(today.getMinutes()).padStart(2, '0');
15 const hr = String(today.getHours()).padStart(2, '0');
16 const dd = String(today.getDate()).padStart(2, '0');
17 const mm = String(today.getMonth() + 1).padStart(2, '0');
18 const yyyy = today.getFullYear();
20 return hr + '-' + mi + '-' + se + "_" + dd + '-' + mm + '-' + yyyy;
27 appDS2.factory("ReportService", ["$http", ReportService]);