function getOccurrencesOfScript(url){var occurrences=0;var scripts=document.getElementsByTagName('script');for(var i=scripts.length;i--;){if(scripts[i].src==""){continue}if(String(scripts[i].src).startsWith(url)){occurrences++}}return occurrences}var gdprReferenceRequest="2";var gdprReferenceSession="2";if(gdprReferenceSession==""){alert("Parametri insufficienti per il plugin GDPR.")}var gdprId="3258595a313936384058595a3139363821";var gdprNome="Domenico";var gdprCognome="Chiricosta";var gdprSocieta="Digiting S.r.l.";var gdprEmail="commerciale@digiting.it";var gdprPEC="pec@digitingpec.it";var gdprSitoWeb="digiting.it";var gdprIndirizzo="Via Don Benedetto Baldi snc - 01019 Vetralla VT";var gdprCellulare="3401234790";var gdprCodiceFiscale="02163490564";var gdprPartitaIVA="02163490564";var gdprIconaVisibile="S";if(gdprSocieta==""){gdprSocieta=gdprNome+" "+gdprCognome}var pluginAppenaInstallato=false;var gdprPathCookieName="digiting/";if(gdprPathCookieName.endsWith("/")){gdprPathCookieName=gdprPathCookieName.substring(0,gdprPathCookieName.length-1)}var gdprReferenceCookieName="2";var gdprSuffixCookie=gdprPathCookieName+"_"+gdprReferenceCookieName;var gdprExpiredCookieDateInDays=182;var gdprPrefixCookie="DG_GDPR_COOKIE_"+gdprSuffixCookie+"_";var gdprIdCategoryNecessario="1";var gdprHead;var gdprBody;var dg_gdpr_cookie_not_setting=0;var dg_gdpr_cookie_required_not_setting=0;var dg_gdpr_cookie_not_required_not_setting=0;var dg_gdpr_cookie_category={};var seChiamanteAutorizzato=true;if((gdprSitoWeb).includes(window.location.hostname)){if(!(window.self!==window.top)){seChiamanteAutorizzato=true}else{seChiamanteAutorizzato=false}}else{seChiamanteAutorizzato=false}window.addEventListener("load",function(evt){if(seChiamanteAutorizzato){document.addEventListener("click",function(e){e=e||window.event;var target=e.target||e.srcElement;if(target.id=="ID_DIV_GDPR_DIALOG"){gdprHideDialog(document.getElementById("ID_DIV_GDPR_DIALOG"))}else if(target.id=="ID_DIV_GDPR_DIALOG_REFUSE_COMUNICATION"){gdprHideDialog(document.getElementById("ID_DIV_GDPR_DIALOG_REFUSE_COMUNICATION"))}},false);gdprHead=document.getElementsByTagName("head")[0];gdprBody=document.getElementsByTagName("body")[0];gdprOnReadyCode()}});function gdprOnReadyCode(){gdprSetCookie("cookie1_test",getCurrentMillisecond(),gdprExpiredCookieDateInDays);if(getOccurrencesOfScript("https://www.piattaformasicura.it/DigitingMainProject/MainProject/gdpr_external_plugin.php")>1){sendEmailToWebsiteGDPRAdministrator("Errore PLUGIN GDPR","Si comunica che e' stato inserito piu' volte, lo script per l'installazione del PLUGIN GDPR.
Si prega di controllare il codice e correggere l'errore.")}var DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM=gdprGetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM");if(DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM==""){pluginAppenaInstallato=true;gdprSetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM",getCurrentMillisecond(),gdprExpiredCookieDateInDays);DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM=gdprGetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM")}if(gdprGetCookie(gdprPrefixCookie+"UUID")==""){gdprSetCookie(gdprPrefixCookie+"UUID",gdprGetUUID(),gdprExpiredCookieDateInDays)}var differenza=getCurrentMillisecond()-parseInt(DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM);var differenzaInMinuti=((differenza/(1000*60))%60);var differenzaInOre=(differenza/(1000*60*60));var differenzaInGiorni=(differenza/(24*60*60*1000));if(pluginAppenaInstallato||differenzaInGiorni>30){console.log("Differenza giorni superata ("+differenzaInGiorni+") oppure plugin appena installato ("+pluginAppenaInstallato+")");sendCookieToServerJson(true);gdprSetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM",getCurrentMillisecond(),gdprExpiredCookieDateInDays)}else{console.log("getCategoryAndCookieFromServerJson()");getCategoryAndCookieFromServerJson()}}function sendCookieToServerJson(getCategory){var cookieForUrl="";var cookies=getCookiesArray();let sendCookieToServer=false;for(var clientCookieName in cookies){clientCookieName=clientCookieName.replace(" ","_");cookieForUrl+=clientCookieName+"_COKSEP_";let clientCookieNameTrovato=false;for(var key in dg_gdpr_cookie_category){var cookiesOfCategoryTemp=dg_gdpr_cookie_category[key].COOKIE;for(var key_ in cookiesOfCategoryTemp){var serverCookieName=cookiesOfCategoryTemp[key_].NOME_COOKIE;serverCookieName=serverCookieName.replace(" ","_");if(clientCookieName==serverCookieName){clientCookieNameTrovato=true}}}if(!clientCookieNameTrovato){sendCookieToServer=true}}var xhttp=new XMLHttpRequest();var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=register_cookie_from_monitoring_plugin_json&"+"cookie="+cookieForUrl;xhttp.open("POST",urlTemp,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.onreadystatechange=function(){if(xhttp.readyState==4&&xhttp.status==200){if(getCategory){getCategoryAndCookieFromServerJson()}}};xhttp.send()}function getCategoryAndCookieFromServerJson(){var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=user_gdpr_cookie_privacy_with_category_json";var xhttp=new XMLHttpRequest();xhttp.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var json=JSON.parse(this.response);dg_gdpr_cookie_category=json.data;gdprAppend(gdprBody,"div",gdprAlert(gdprAlertStartContent()));if(gdprIconaVisibile=="S"){gdprAppend(gdprBody,"a",gdprIcon())}gdprRefreshGDPRCookieStatus(true);gdprDeleteAllCookieNotAccepted()}};xhttp.open("POST",urlTemp,true);xhttp.send()}function gdprSendToServerCookieCategorySeletion(){var cookieCategoryForUrl="";for(var key in dg_gdpr_cookie_category){var idTemp=dg_gdpr_cookie_category[key].ID_CATEGORIA;var nomeTemp=dg_gdpr_cookie_category[key].NOME_CATEGORIA;nomeTemp=nomeTemp.replace(" ","_");let categorySelection=JSON.parse(gdprGetCookie(gdprPrefixCookie+"CATEGORY_SELECTION"));cookieCategoryForUrl+=gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()+"-"+categorySelection[gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()]+"_COKSEP_"}var xhttp=new XMLHttpRequest();var d=new Date();var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"IP=18.191.93.32&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"DATA="+d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate()+" "+d.getHours()+"_"+d.getMinutes()+"_"+d.getSeconds()+"&"+"ID_USER="+gdprId+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=register_cookie_category_selection_from_gdpr_plugin_json&"+"cookieCategory="+cookieCategoryForUrl;xhttp.open("POST",urlTemp,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.onreadystatechange=function(){if(xhttp.readyState==4&&xhttp.status==200){sendCookieToServerJson(false)}};xhttp.send()}function gdprChangeAlertContent(param){if(param=="1"){document.getElementById("ID_DIV_GDPR_ALERT_CONTENT").innerHTML=gdprAlertStartContent()}else if(param=="2"){document.getElementById("ID_DIV_GDPR_ALERT_CONTENT").innerHTML=gdprAlertConsensContent();document.getElementById("GDPR_INFORMATIVA").innerHTML='Loading...';getUserDataFromServer()}else if(param=="3"){document.getElementById("ID_DIV_GDPR_ALERT_CONTENT").innerHTML=gdprAlertContactDPOContent()}}function gdprAlert(html){var html='
🔒
'}function gdprManageUsernameInFormRequestContact(this_,id){if(this_.checked){document.getElementById(id).style.display="table-row"}else{document.getElementById(id).style.display="none"}}function sendEmailToWebsiteGDPRAdministrator(titolo,messaggio){var xhttp=new XMLHttpRequest();var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=send_email_to_website_gdpr_administrator&"+"TITOLO="+titolo+"&"+"MESSAGGIO="+messaggio;xhttp.open("POST",urlTemp,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.onreadystatechange=function(){if(xhttp.readyState==4&&xhttp.status==200){}};xhttp.send()}function gdprSetCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString()+";";var path="path=/;";var domain="domain="+window.location.hostname+";";var samesite="samesite=none; secure;";document.cookie=cname+"="+cvalue+";"+expires+""+path+""+domain+""+""+samesite+""}function gdprGetCookie(cname){var name=cname+"=";var decodedCookie=document.cookie;var ca=decodedCookie.split(';');for(var i=0;i