{"id":150,"date":"2024-11-03T16:58:07","date_gmt":"2024-11-03T13:28:07","guid":{"rendered":"https:\/\/support.sanjabsys.com\/?page_id=150"},"modified":"2024-11-12T09:52:52","modified_gmt":"2024-11-12T06:22:52","slug":"ticketopen","status":"publish","type":"page","link":"https:\/\/support.sanjabsys.com\/?page_id=150","title":{"rendered":"ticketopen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\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<div class=\"wpsc-auth-container\">\n\t\t\t\t<div class=\"auth-inner-container\">\n\t\t\t\t\t<h2>\u0646\u0645\u0627\u06cc\u0634 \u062a\u06cc\u06a9\u062a \u0645\u0648\u062c\u0648\u062f<\/h2>\n\t\t\t\t\t<form onsubmit=\"return false;\" class=\"wpsc-login wpsc-authenticate-open-ticket\">\n\n\t\t\t\t\t\t<input type=\"text\" name=\"ticket_id\" placeholder=\"\u0634\u0646\u0627\u0633\u0647 \u062a\u06cc\u06a9\u062a\" value=\"\" autocomplete=\"off\"\/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"email_address\" placeholder=\"\u0622\u062f\u0631\u0633 \u0627\u06cc\u0645\u06cc\u0644\" autocomplete=\"off\"\/>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<button class=\"wpsc-button normal primary\" onclick=\"wpsc_authenticate_open_ticket(this)\">\u062b\u0628\u062a<\/button>\n\t\t\t\t\t\t<button class=\"wpsc-button normal secondary\" onclick=\"window.location.reload();\">\u0627\u0646\u0635\u0631\u0627\u0641<\/button>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"wpsc_authenticate_open_ticket\"\/>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"_ajax_nonce\" value=\"8c7a76daaa\">\n\t\t\t\t\t<\/form>\n\t\t\t\t\t<script>\n\t\t\t\t\t\t\/**\n\t\t\t\t\t\t * Load OTP verification\n\t\t\t\t\t\t *\/\n\t\t\t\t\t\tfunction wpsc_authenticate_open_ticket(el) {\n\n\t\t\t\t\t\t\tconst form = jQuery(el).closest('form')[0];\n\t\t\t\t\t\t\tconst dataform = new FormData(form);\n\n\t\t\t\t\t\t\tif (!dataform.get('ticket_id').trim() || !dataform.get('email_address').trim()) {\n\t\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tvar authContainer = jQuery(el).closest('.wpsc-auth-container');\n\t\t\t\t\t\t\tauthContainer.html(supportcandy.loader_html);\n\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\turl: supportcandy.ajax_url,\n\t\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\t\tdata: dataform,\n\t\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\t\tcontentType: false\n\t\t\t\t\t\t\t}).done(function (res) {\n\t\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\n\t\t\t\t\t\t\t\t\tif (res.ticket_url) {\n\t\t\t\t\t\t\t\t\t\twindow.location.href = res.ticket_url;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tauthContainer.html(res);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}).fail(function (data) {\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t\t}); \n\t\t\t\t\t\t}\n\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/div>\n\t\t\t\t<style>\n\t\t\t\t\t.wpsc-it-container {\n\t\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\t}\n\t\t\t\t\t.wpsc-it-reply-section-container {\n\t\t\t\t\t\tpadding-left: 3px;\n\t\t\t\t\t}\n\t\t\t\t<\/style>\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_individual_ticket() {\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 = { action: 'wpsc_get_individual_ticket', ticket_id: 0 };\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).done(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}).fail(function(response){\n\t\t\t\t\t\tjQuery('.wpsc-body').html('<div style=\"display:flex; justify-content:center; margin:0 15px 15px; width:100%;\">\u062f\u0633\u062a\u0631\u0633\u06cc \u063a\u06cc\u0631\u0645\u062c\u0627\u0632!<\/div>');\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t<\/script>\n\t\t\t<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/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":{"footnotes":""},"class_list":["post-150","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=\/wp\/v2\/pages\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150"}],"version-history":[{"count":2,"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=\/wp\/v2\/pages\/150\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=\/wp\/v2\/pages\/150\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/support.sanjabsys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}