{"id":29,"date":"2020-01-30T10:17:12","date_gmt":"2020-01-30T04:17:12","guid":{"rendered":"http:\/\/localhost\/ithelpdesk\/?page_id=29"},"modified":"2023-12-12T14:52:00","modified_gmt":"2023-12-12T08:52:00","slug":"create-ticket","status":"publish","type":"page","link":"https:\/\/ithelpdesk.babylonit.com\/?page_id=29","title":{"rendered":"Create Ticket"},"content":{"rendered":"\n<p><strong>\t\t\t<div id=\"wpsc-container\" style=\"display:none;\">\n\t\t\t\t<div class=\"wpsc-shortcode-container\" style=\"border: none !important;\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpsc-body\"><\/div>\n\t\t\t\t\t\t\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<div class=\"wpsc-page-snippets\" style=\"display: none;\">\n\t\t\t\t<div class=\"wpsc-editor-attachment upload-waiting\">\n\t\t\t\t\t<div class=\"attachment-label\"><\/div>\n\t\t\t\t\t<div class=\"attachment-remove\" onclick=\"wpsc_remove_attachment(this)\">\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>\n\t\t\t\t\t<div class=\"attachment-waiting\"><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t<script type=\"text\/javascript\">\n\t\t\t\t\/**\n\t\t\t\t * Get create ticket form\n\t\t\t\t *\/\n\t\t\t\tfunction wpsc_get_ticket_form() {\n\n\t\t\t\t\tif (wpsc_is_description_text()) {\n\t\t\t\t\t\tif ( confirm(supportcandy.translations.warning_message)) {\n\t\t\t\t\t\t\tcurrent_ticket = jQuery('#wpsc-current-ticket').val();\n\t\t\t\t\t\t\twpsc_clear_saved_draft_reply( current_ticket );\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\n\n\t\t\t\t\tif (supportcandy.is_reload != 1) {\n\t\t\t\t\t\twpsc_scroll_top();\n\t\t\t\t\t} else { supportcandy.is_reload = 0 }\n\n\t\t\t\t\tvar url = new URL(window.location.href);\n\t\t\t\t\tvar search_params = url.searchParams;\n\n\t\t\t\t\tvar data = {\n\t\t\t\t\t\taction: 'wpsc_get_ticket_form',\n\t\t\t\t\t\t_ajax_nonce: supportcandy.nonce\n\t\t\t\t\t};\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\n\t\t\t\t\t\tdata[key] = value;\n\t\t\t\t\t});\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\n\t\t\t\t\t\tjQuery('.wpsc-body').html(response);\n\t\t\t\t\t\twpsc_reset_responsive_style();\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t\/**\n\t\t\t\t * Get individual ticket\n\t\t\t\t *\/\n\t\t\t\tfunction wpsc_get_individual_ticket(id) {\n\n\t\t\t\t\tjQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active');\n\t\t\t\t\tjQuery('.wpsc-tickets-nav.ticket-list, .wpsc-humbargar-menu-item.ticket-list').addClass('active');\n\t\t\t\t\tjQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.ticket_list);\n\n\t\t\t\t\t\/\/ set url\n\t\t\t\t\tvar url = new URL(window.location.href);\n\t\t\t\t\tvar search_params = url.searchParams;\n\t\t\t\t\tsearch_params.set('wpsc-section', 'ticket-list');\n\t\t\t\t\tsearch_params.set('ticket-id', id);\n\t\t\t\t\turl.search = search_params.toString();\n\t\t\t\t\twindow.history.replaceState({}, null, url.toString());\n\n\t\t\t\t\tjQuery('.wpsc-body').html(supportcandy.loader_html);\n\n\t\t\t\t\t\/\/ set flag to differenciate between ticket list and individual ticket\n\t\t\t\t\tsupportcandy.ticketListIsIndividual = true;\n\n\t\t\t\t\tvar data = {\n\t\t\t\t\t\taction: 'wpsc_get_individual_ticket',\n\t\t\t\t\t\tticket_id: id,\n\t\t\t\t\t};\n\t\t\t\t\tsearch_params.forEach(function(value, key) {\n\t\t\t\t\t\tdata[key] = value;\n\t\t\t\t\t});\n\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\n\t\t\t\t\tjQuery('.wpsc-body').html(response);\n\t\t\t\t\twpsc_reset_responsive_style();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t<\/script>\n\t\t\t<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-29","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=\/wp\/v2\/pages\/29"}],"collection":[{"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":1,"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=\/wp\/v2\/pages\/29\/revisions"}],"predecessor-version":[{"id":71878,"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=\/wp\/v2\/pages\/29\/revisions\/71878"}],"wp:attachment":[{"href":"https:\/\/ithelpdesk.babylonit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}