updated cookie manger added cookie policy

This commit is contained in:
2021-11-11 10:51:04 +00:00
parent f7f474dfd2
commit 9d54b0cd2d
17 changed files with 713 additions and 51 deletions
+53
View File
@@ -461,6 +461,7 @@ export const getSearchDocumentDetails1 = (incidentID) => {
console.log("thiserror", error);
});
};
export const getSearchDocumentDetails1Paged = (incidentID, pageNumber) => {
//console.log(incidentID);
var token = getSASToken();
@@ -846,6 +847,58 @@ export const getMyRepresentationsProxy = (token, loggedInUserId) => {
});
};
export const deleteMyRepresentations = (myRepresentationsID) => {
var config = {
method: "delete",
url: "/api/proxy/pinswg_representationses(" + myRepresentationsID + ")",
headers: {
"OData-MaxVersion": "4.0",
"OData-Version": "4.0",
"Accept": "application/json",
"Prefer": 'odata.include-annotations="*",return=representation',
"Content-Type": "application/json",
"ServiceBusAuthorization": getSASToken(),
},
};
// console.log(config);
return axios(config)
.then((res) => {
//console.log("deleted ", res.data);
return res.data;
})
.catch((error) => {
console.log("this serror", error);
});
};
export const getRepresentations = (incidentID) => {
return axios
.get(
"/api/proxy/pinswg_representationses?$filter= _pinswg_case_value eq " +
incidentID +
" and pinswg_publishtoweb eq true&$count=true&$orderby=createdon desc",
azureHeaders(getSASToken())
)
.then((res) => res.data)
.catch((error) => {
console.log("this serror", error);
});
};
export const getRepresentationsProxy = (token, incidentID) => {
return axios
.get(
"/api/proxy/pinswg_representationses?$filter= _pinswg_case_value eq " +
incidentID +
"&$count=true&$orderby=createdon desc",
azureHeaders(token)
)
.then((res) => res.data)
.catch((error) => {
console.log("this serror", error);
});
};
export const getWatchedCases = (token, loggedInUserId) => {
return axios
.get(