{"id":68,"date":"2022-08-10T10:00:30","date_gmt":"2022-08-10T08:00:30","guid":{"rendered":"http:\/\/www.garvinservice.it\/test\/?page_id=68"},"modified":"2025-04-02T06:56:42","modified_gmt":"2025-04-02T04:56:42","slug":"tickets","status":"publish","type":"page","link":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/","title":{"rendered":"Fondo Energetico<br>Val d&#8217;Agri<br><h2>Annualit\u00e0 2024<\/h2>"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.garvinservice.it\/fevda2024_calvello\/Calvello_fevda.jpg\" alt=\"\" style=\"width:200px;height:auto\"\/><\/figure><\/div>\n\n<p><font face=\"Arial\" size=\"2\"><b>Comune di Calvello<\/b><\/font><\/p>\n\n\n\t\t\t<div id=\"wpsc-container\" style=\"display:none;\">\r\n\t\t\t\t<div class=\"wpsc-shortcode-container\">\r\n\t\t\t\t\t\t\t\t<div class=\"wpsc-auth-container\">\r\n\t\t\t\t<div class=\"auth-inner-container\">\r\n\t\t\t\t\t<h2>Si prega di accedere<\/h2>\r\n\t\t\t\t\t<form onsubmit=\"return false;\" class=\"wpsc-login wpsc-default-login\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button class=\"wpsc-button normal primary\" onclick=\"wpsc_custom_login( this, 'https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-login.php?redirect_to=https%3A%2F%2Fwww.garvinservice.it%2Ffevda2024_calvello%2Fwp-json%2Fwp%2Fv2%2Fpages%2F68' )\">Accedi<\/button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<\/form>\r\n\r\n\t\t\t\t\t<div class=\"auth-links\">\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t<script>\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Submit default login form\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_submit_login_form(el) {\r\n\r\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\r\n\t\t\t\t\t\tvar username = dataform.get('username').trim();\r\n\t\t\t\t\t\tvar password = dataform.get('password').trim();\r\n\t\t\t\t\t\tif (!username || !password) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twpsc_post_login_form(el, dataform);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Submit login form\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_post_login_form(el, dataform) {\r\n\r\n\t\t\t\t\t\tjQuery(el).text(supportcandy.translations.please_wait);\r\n\t\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\r\n\t\t\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\t\t\tdata: dataform,\r\n\t\t\t\t\t\t\tprocessData: false,\r\n\t\t\t\t\t\t\tcontentType: false\r\n\t\t\t\t\t\t}).done(function (response) {\r\n\t\t\t\t\t\t\tif (response.success != 1) alert(supportcandy.translations.incorrect_login);\r\n\t\t\t\t\t\t}).fail(function (res) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t}).always(function () {\r\n\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Custom login\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_custom_login(el, url) {\r\n\r\n\t\t\t\t\t\tjQuery(el).text(supportcandy.translations.please_wait);\r\n\t\t\t\t\t\twindow.location.href = url;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Get default registration page\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_get_default_registration() {\r\n\r\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\r\n\t\t\t\t\t\tvar data = { action: 'wpsc_get_default_registration' };\r\n\t\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\r\n\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(response);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Set default registration form\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_set_default_registration(el) {\r\n\r\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\r\n\t\t\t\t\t\tvar firstname = dataform.get('firstname').trim();\r\n\t\t\t\t\t\tvar lastname = dataform.get('lastname').trim();\r\n\t\t\t\t\t\tvar username = dataform.get('username').trim();\r\n\t\t\t\t\t\tvar email_address = dataform.get('email_address').trim();\r\n\t\t\t\t\t\tvar password = dataform.get('password').trim();\r\n\t\t\t\t\t\tvar confirm_password = dataform.get('confirm_password').trim();\r\n\t\t\t\t\t\tvar isUsername = dataform.get('is_username').trim();\r\n\r\n\t\t\t\t\t\tif (!firstname || !lastname || !username || !email_address || !password || !confirm_password) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!validateEmail(email_address)) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.incorrect_email);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (isUsername != 1) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.unsername_unavailable);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (password !== confirm_password) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.incorrect_password);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twpsc_authenticate_registration(el, dataform);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Post registration form\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_authenticate_registration(el, dataform) {\r\n\r\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\r\n\t\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\r\n\t\t\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\t\t\tdata: dataform,\r\n\t\t\t\t\t\t\tprocessData: false,\r\n\t\t\t\t\t\t\tcontentType: false\r\n\t\t\t\t\t\t}).done(function (res) {\r\n\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\r\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\t\twpsc_get_default_registration();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(res);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}).fail(function (res) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Register user\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_confirm_registration(el) {\r\n\r\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\r\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\r\n\t\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\r\n\t\t\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\t\t\tdata: dataform,\r\n\t\t\t\t\t\t\tprocessData: false,\r\n\t\t\t\t\t\t\tcontentType: false\r\n\t\t\t\t\t\t}).done(function (res) {\r\n\t\t\t\t\t\t\tif (res.isSuccess == 1) {\r\n\t\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\t\twpsc_get_default_registration();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Get guest otp login screen\r\n\t\t\t\t\t *\r\n\t\t\t\t\t * @return void\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_get_guest_sign_in() {\r\n\r\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\r\n\t\t\t\t\t\tvar data = { action: 'wpsc_get_guest_sign_in' };\r\n\t\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (res) {\r\n\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\r\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(res);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Send login OTP\r\n\t\t\t\t\t *\r\n\t\t\t\t\t * @return void\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_authenticate_guest_login(el) {\r\n\r\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\r\n\r\n\t\t\t\t\t\tvar email_address = dataform.get('email_address').trim();\r\n\t\t\t\t\t\tif ( ! email_address ) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!validateEmail(email_address)) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.incorrect_email);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tjQuery(el).text(supportcandy.translations.please_wait);\r\n\t\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\r\n\t\t\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\t\t\tdata: dataform,\r\n\t\t\t\t\t\t\tprocessData: false,\r\n\t\t\t\t\t\t\tcontentType: false\r\n\t\t\t\t\t\t}).done(function (res) {\r\n\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\r\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\t\twpsc_get_guest_sign_in();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(res);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}).fail(function (res) {\r\n\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/**\r\n\t\t\t\t\t * Confirm guest login auth\r\n\t\t\t\t\t *\r\n\t\t\t\t\t * @return void\r\n\t\t\t\t\t *\/\r\n\t\t\t\t\tfunction wpsc_confirm_guest_login(el) {\r\n\r\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\r\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\r\n\t\t\t\t\t\tjQuery.ajax({\r\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\r\n\t\t\t\t\t\t\ttype: 'POST',\r\n\t\t\t\t\t\t\tdata: dataform,\r\n\t\t\t\t\t\t\tprocessData: false,\r\n\t\t\t\t\t\t\tcontentType: false\r\n\t\t\t\t\t\t}).done(function (res) {\r\n\t\t\t\t\t\t\tif (res.isSuccess == 1) {\r\n\t\t\t\t\t\t\t\twindow.location.reload();\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\r\n\t\t\t\t\t\t\t\twpsc_get_guest_sign_in();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t<\/script>\r\n\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t\r\n\t\t\t<div class=\"wpsc-page-snippets\" style=\"display: none;\">\r\n\t\t\t\t<div class=\"wpsc-editor-attachment upload-waiting\">\r\n\t\t\t\t\t<div class=\"attachment-label\"><\/div>\r\n\t\t\t\t\t<div class=\"attachment-remove\" onclick=\"wpsc_remove_attachment(this)\">\r\n\t\t\t\t\t<svg aria-hidden=\"true\" class=\"svg-inline--fa fa-times fa-w-11\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 352 512\"><path fill=\"currentColor\" d=\"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z\"><\/path><\/svg>\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"attachment-waiting\"><\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t<\/div>\r\n\t\t\t\r\n\t\t\t<script type=\"text\/javascript\">\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get ticket list\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_ticket_list(is_humbargar = false) {\r\n\r\n\t\t\t\t\tsupportcandy.current_section = 'ticket-list';\r\n\r\n\t\t\t\t\tif (is_humbargar) wpsc_toggle_humbargar();\r\n\r\n\t\t\t\t\tif (wpsc_is_description_text()) {\r\n\t\t\t\t\t\tif ( !confirm(supportcandy.translations.warning_message)){\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}  else {\r\n\t\t\t\t\t\t\tvar is_tinymce = (typeof tinyMCE != \"undefined\") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden();\r\n\t\t\t\t\t\t\tif (is_tinymce && tinymce.get('description')) {\r\n\t\t\t\t\t\t\t\tvar description = tinyMCE.get('description').setContent('');\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tvar description = jQuery('#description').val('');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tticket_id = jQuery('#wpsc-current-ticket').val();\r\n\t\t\t\t\t\t\twpsc_clear_saved_draft_reply( ticket_id );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar id = supportcandy.current_ticket_id;\r\n\t\t\t\t\tif (id) {\r\n\t\t\t\t\t\tdelete supportcandy.current_ticket_id;\r\n\t\t\t\t\t\twpsc_get_individual_ticket(id);\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\/\/ set flag to differenciate between ticket list and individual ticket\r\n\t\t\t\t\tsupportcandy.ticketListIsIndividual = false;\r\n\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav.ticket-list, .wpsc-humbargar-menu-item.ticket-list').addClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.ticket_list);\r\n\r\n\t\t\t\t\t\/\/ set url\r\n\t\t\t\t\tvar url = new URL(window.location.href);\r\n\t\t\t\t\tvar search_params = url.searchParams;\r\n\t\t\t\t\tsearch_params.set('wpsc-section', 'ticket-list');\r\n\t\t\t\t\tsearch_params.delete('ticket-id');\r\n\t\t\t\t\turl.search = search_params.toString();\r\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\r\n\r\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\r\n\r\n\t\t\t\t\tvar data = {\r\n\t\t\t\t\t\taction: 'wpsc_get_ticket_list',\r\n\t\t\t\t\t\t_ajax_nonce: supportcandy.nonce\r\n\t\t\t\t\t};\r\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\r\n\t\t\t\t\t\tdata[key] = value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (typeof supportcandy.ticketList != 'undefined' && typeof supportcandy.ticketList.filters != 'undefined') {\r\n\t\t\t\t\t\tdata.filters = supportcandy.ticketList.filters;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\r\n\t\t\t\t\t\tjQuery('.wpsc-body').html(response);\r\n\t\t\t\t\t\twpsc_reset_responsive_style();\r\n\t\t\t\t\t});\r\n\t\t\t\t\twpsc_delete_auto_draft();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get individual ticket\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_individual_ticket(id) {\r\n\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav.ticket-list, .wpsc-humbargar-menu-item.ticket-list').addClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.ticket_list);\r\n\r\n\t\t\t\t\t\/\/ set url\r\n\t\t\t\t\tvar url = new URL(window.location.href);\r\n\t\t\t\t\tvar search_params = url.searchParams;\r\n\t\t\t\t\tsearch_params.set('wpsc-section', 'ticket-list');\r\n\t\t\t\t\tsearch_params.set('ticket-id', id);\r\n\t\t\t\t\turl.search = search_params.toString();\r\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\r\n\r\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\r\n\r\n\t\t\t\t\t\/\/ set flag to differenciate between ticket list and individual ticket\r\n\t\t\t\t\tsupportcandy.ticketListIsIndividual = true;\r\n\r\n\t\t\t\t\tvar data = {\r\n\t\t\t\t\t\taction: 'wpsc_get_individual_ticket',\r\n\t\t\t\t\t\tticket_id: id,\r\n\t\t\t\t\t};\r\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\r\n\t\t\t\t\t\tdata[key] = value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\r\n\t\t\t\t\t\tjQuery('.wpsc-body').html(response);\r\n\t\t\t\t\t\twpsc_reset_responsive_style();\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get create ticket form\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_ticket_form(is_humbargar = false) {\r\n\t\t\t\t\t\t\t\t\t\t\twindow.location = \"https:\/\/www.garvinservice.it\/fevda2024\/fevda2024_info.htm\";\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tsupportcandy.current_section = 'new-ticket';\r\n\r\n\t\t\t\t\tif (is_humbargar) wpsc_toggle_humbargar();\r\n\r\n\t\t\t\t\tif (wpsc_is_description_text()) {\r\n\t\t\t\t\t\tif ( confirm(supportcandy.translations.warning_message)){\r\n\t\t\t\t\t\t\tcurrent_ticket = jQuery('#wpsc-current-ticket').val();\r\n\t\t\t\t\t\t\twpsc_clear_saved_draft_reply( current_ticket );\r\n\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav.new-ticket, .wpsc-humbargar-menu-item.new-ticket').addClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.new_ticket);\r\n\r\n\t\t\t\t\t\/\/ set url\r\n\t\t\t\t\tvar url = new URL(window.location.href);\r\n\t\t\t\t\tvar search_params = url.searchParams;\r\n\t\t\t\t\tsearch_params.set('wpsc-section', 'new-ticket');\r\n\t\t\t\t\tsearch_params.delete('ticket-id');\r\n\t\t\t\t\turl.search = search_params.toString();\r\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\r\n\r\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\r\n\r\n\t\t\t\t\tvar data = {\r\n\t\t\t\t\t\taction: 'wpsc_get_ticket_form',\r\n\t\t\t\t\t\t_ajax_nonce: supportcandy.nonce\r\n\t\t\t\t\t};\r\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\r\n\t\t\t\t\t\tdata[key] = value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\r\n\t\t\t\t\t\tjQuery('.wpsc-body').html(response);\r\n\t\t\t\t\t\twpsc_reset_responsive_style();\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get agent settings\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_user_profile(is_humbargar = false) {\r\n\r\n\t\t\t\t\tsupportcandy.current_section = 'my-profile';\r\n\r\n\t\t\t\t\tif (is_humbargar) wpsc_toggle_humbargar();\r\n\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav.my-profile, .wpsc-humbargar-menu-item.my-profile').addClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.my_profile);\r\n\r\n\t\t\t\t\t\/\/ set url\r\n\t\t\t\t\tvar url = new URL(window.location.href);\r\n\t\t\t\t\tvar search_params = url.searchParams;\r\n\t\t\t\t\tsearch_params.set('wpsc-section', 'my-profile');\r\n\t\t\t\t\tsearch_params.delete('ticket-id');\r\n\t\t\t\t\turl.search = search_params.toString();\r\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\r\n\r\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\r\n\r\n\t\t\t\t\tvar data = { action: 'wpsc_get_user_profile' };\r\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\r\n\t\t\t\t\t\tdata[key] = value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\r\n\t\t\t\t\t\tjQuery('.wpsc-body').html(response);\r\n\t\t\t\t\t\twpsc_reset_responsive_style();\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get agent settings\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_agent_profile(is_humbargar = false) {\r\n\r\n\t\t\t\t\tsupportcandy.current_section = 'agent-profile';\r\n\r\n\t\t\t\t\tif (is_humbargar) wpsc_toggle_humbargar();\r\n\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-tickets-nav.agent-profile, .wpsc-humbargar-menu-item.agent-profile').addClass('active');\r\n\t\t\t\t\tjQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.agent_profile);\r\n\r\n\t\t\t\t\t\/\/ set url\r\n\t\t\t\t\tvar url = new URL(window.location.href);\r\n\t\t\t\t\tvar search_params = url.searchParams;\r\n\t\t\t\t\tsearch_params.set('wpsc-section', 'agent-profile');\r\n\t\t\t\t\tsearch_params.delete('ticket-id');\r\n\t\t\t\t\turl.search = search_params.toString();\r\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\r\n\r\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\r\n\r\n\t\t\t\t\tvar data = { action: 'wpsc_get_agent_profile' };\r\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\r\n\t\t\t\t\t\tdata[key] = value;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\r\n\t\t\t\t\t\tjQuery('.wpsc-body').html(response);\r\n\t\t\t\t\t\twpsc_reset_responsive_style();\r\n\t\t\t\t\t\tjQuery('.wpsc-ap-nav.general').trigger('click');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get agent dashboard\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_agent_dashboard(is_humbargar = false) {\r\n\r\n\t\t\t\t\tsupportcandy.current_section = 'dashboard';\r\n\r\n\t\t\t\t\tif (is_humbargar) {\r\n\t\t\t\t\t\twpsc_toggle_humbargar();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjQuery( '.wpsc-tickets-nav, .wpsc-humbargar-menu-item' ).removeClass( 'active' );\r\n\t\t\t\t\tjQuery( '.wpsc-tickets-nav.dashboard, .wpsc-humbargar-menu-item.dashboard' ).addClass( 'active' );\r\n\t\t\t\t\tjQuery( '.wpsc-humbargar-title' ).html( supportcandy.humbargar_titles.dashboard );\r\n\r\n\t\t\t\t\t\/\/ set url\r\n\t\t\t\t\tvar url = new URL(window.location.href);\r\n\t\t\t\t\tvar search_params = url.searchParams;\r\n\t\t\t\t\tsearch_params.set('wpsc-section', 'dashboard');\r\n\t\t\t\t\tsearch_params.delete('ticket-id');\r\n\t\t\t\t\turl.search = search_params.toString();\r\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\r\n\t\t\t\t\tjQuery( '.wpsc-body' ).html( supportcandy.loader_html );\r\n\r\n\t\t\t\t\tvar data = { action: 'wpsc_get_agent_dashboard' };\r\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\r\n\t\t\t\t\t\tdata[key] = value;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tjQuery.post(\r\n\t\t\t\t\t\tsupportcandy.ajax_url,\r\n\t\t\t\t\t\tdata,\r\n\t\t\t\t\t\tfunction (response) {\r\n\t\t\t\t\t\t\tjQuery( '.wpsc-body' ).html( response );\r\n\t\t\t\t\t\t\twpsc_reset_responsive_style();\r\n\t\t\t\t\t\t\tjQuery( '.wpsc-ap-nav.general' ).trigger( 'click' );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\/**\r\n\t\t\t\t * Get create ticket as guest\r\n\t\t\t\t *\/\r\n\t\t\t\tfunction wpsc_get_guest_ticket_form() {\r\n\r\n\t\t\t\t\tjQuery('.wpsc-shortcode-container').html('<div class=\"wpsc-body\"><\/div>');\r\n\t\t\t\t\twpsc_get_ticket_form();\r\n\t\t\t\t}\r\n\t\t\t<\/script>\r\n\t\t\t\n","protected":false},"excerpt":{"rendered":"<p>Comune di Calvello<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/pages\/68"}],"collection":[{"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":44,"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/pages\/68\/revisions"}],"predecessor-version":[{"id":15381,"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/pages\/68\/revisions\/15381"}],"wp:attachment":[{"href":"https:\/\/www.garvinservice.it\/fevda2024_calvello\/wp-json\/wp\/v2\/media?parent=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}