{"id":586,"date":"2023-11-23T10:43:31","date_gmt":"2023-11-23T10:43:31","guid":{"rendered":"https:\/\/clouddukaan.com\/?page_id=586"},"modified":"2023-11-23T10:47:31","modified_gmt":"2023-11-23T10:47:31","slug":"new-ticket","status":"publish","type":"page","link":"https:\/\/clouddukaan.com\/index.php\/new-ticket\/","title":{"rendered":"New Ticket"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"586\" class=\"elementor elementor-586\">\n\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b1f472f e-flex e-con-boxed e-con\" data-id=\"b1f472f\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-707d2eb elementor-widget elementor-widget-shortcode\" data-id=\"707d2eb\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\">\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>Please sign in<\/h2>\n\t\t\t\t\t<form onsubmit=\"return false;\" class=\"wpsc-login wpsc-default-login\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<input type=\"text\" name=\"username\" placeholder=\"Username \/ Email address\" autocomplete=\"off\"\/>\n\t\t\t\t\t\t\t<input type=\"password\" name=\"password\" placeholder=\"Password\"\/>\n\t\t\t\t\t\t\t<div class=\"checkbox-container remember-me\">\n\t\t\t\t\t\t\t\t<input id=\"wpsc-remember-me\" type=\"checkbox\" name=\"remember_me\" value=\"1\"\/>\n\t\t\t\t\t\t\t\t<label for=\"wpsc-remember-me\">Remember me<\/label>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<button class=\"wpsc-button normal primary\" onclick=\"wpsc_submit_login_form(this)\">Sign In<\/button>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"wpsc_default_login\"\/>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_ajax_nonce\" value=\"cbc7730d66\"\/>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/form>\n\n\t\t\t\t\t<div class=\"auth-links\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"wpsc-link wpsc-forgot-password\" href=\"https:\/\/clouddukaan.com\/wp-login.php?action=lostpassword\">Forgot your password?<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"wpsc-link wpsc-otp-open-ticket\" href=\"https:\/\/clouddukaan.com\/index.php\/open-ticket\/\">Open existing ticket using one time password<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<script>\n\t\t\t\t\t\/**\n\t\t\t\t\t * Submit default login form\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_submit_login_form(el) {\n\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\n\t\t\t\t\t\tvar username = dataform.get('username').trim();\n\t\t\t\t\t\tvar password = dataform.get('password').trim();\n\t\t\t\t\t\tif (!username || !password) {\n\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twpsc_post_login_form(el, dataform);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Submit login form\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_post_login_form(el, dataform) {\n\n\t\t\t\t\t\tjQuery(el).text(supportcandy.translations.please_wait);\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: dataform,\n\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\tcontentType: false\n\t\t\t\t\t\t}).done(function (response) {\n\t\t\t\t\t\t\tif (response.success != 1) alert(supportcandy.translations.incorrect_login);\n\t\t\t\t\t\t}).fail(function (res) {\n\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t}).always(function () {\n\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Custom login\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_custom_login(el, url) {\n\n\t\t\t\t\t\tjQuery(el).text(supportcandy.translations.please_wait);\n\t\t\t\t\t\twindow.location.href = url;\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Get default registration page\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_get_default_registration() {\n\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\n\t\t\t\t\t\tvar data = { action: 'wpsc_get_default_registration' };\n\t\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (response) {\n\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(response);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Set default registration form\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_set_default_registration(el) {\n\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\n\t\t\t\t\t\tvar firstname = dataform.get('firstname').trim();\n\t\t\t\t\t\tvar lastname = dataform.get('lastname').trim();\n\t\t\t\t\t\tvar username = dataform.get('username').trim();\n\t\t\t\t\t\tvar email_address = dataform.get('email_address').trim();\n\t\t\t\t\t\tvar password = dataform.get('password').trim();\n\t\t\t\t\t\tvar confirm_password = dataform.get('confirm_password').trim();\n\t\t\t\t\t\tvar isUsername = dataform.get('is_username').trim();\n\n\t\t\t\t\t\tif (!firstname || !lastname || !username || !email_address || !password || !confirm_password) {\n\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!validateEmail(email_address)) {\n\t\t\t\t\t\t\talert(supportcandy.translations.incorrect_email);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (isUsername != 1) {\n\t\t\t\t\t\t\talert(supportcandy.translations.unsername_unavailable);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (password !== confirm_password) {\n\t\t\t\t\t\t\talert(supportcandy.translations.incorrect_password);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twpsc_authenticate_registration(el, dataform);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Post registration form\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_authenticate_registration(el, dataform) {\n\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: dataform,\n\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\tcontentType: false\n\t\t\t\t\t\t}).done(function (res) {\n\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\t\twpsc_get_default_registration();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(res);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).fail(function (res) {\n\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Register user\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_confirm_registration(el) {\n\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: dataform,\n\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\tcontentType: false\n\t\t\t\t\t\t}).done(function (res) {\n\t\t\t\t\t\t\tif (res.isSuccess == 1) {\n\t\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\t\twpsc_get_default_registration();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Get guest otp login screen\n\t\t\t\t\t *\n\t\t\t\t\t * @return void\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_get_guest_sign_in() {\n\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\n\t\t\t\t\t\tvar data = { action: 'wpsc_get_guest_sign_in' };\n\t\t\t\t\t\tjQuery.post(supportcandy.ajax_url, data, function (res) {\n\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\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} else {\n\t\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(res);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Send login OTP\n\t\t\t\t\t *\n\t\t\t\t\t * @return void\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_authenticate_guest_login(el) {\n\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\n\n\t\t\t\t\t\tvar email_address = dataform.get('email_address').trim();\n\t\t\t\t\t\tif ( ! email_address ) {\n\t\t\t\t\t\t\talert(supportcandy.translations.req_fields_missing);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!validateEmail(email_address)) {\n\t\t\t\t\t\t\talert(supportcandy.translations.incorrect_email);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tjQuery(el).text(supportcandy.translations.please_wait);\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: dataform,\n\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\tcontentType: false\n\t\t\t\t\t\t}).done(function (res) {\n\t\t\t\t\t\t\tif (typeof(res) == \"object\") {\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\t\twpsc_get_guest_sign_in();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery('.auth-inner-container').html(res);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).fail(function (res) {\n\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t\/**\n\t\t\t\t\t * Confirm guest login auth\n\t\t\t\t\t *\n\t\t\t\t\t * @return void\n\t\t\t\t\t *\/\n\t\t\t\t\tfunction wpsc_confirm_guest_login(el) {\n\n\t\t\t\t\t\tjQuery('.auth-inner-container').html(supportcandy.loader_html);\n\t\t\t\t\t\tvar dataform = new FormData(jQuery(el).closest('form')[0]);\n\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\turl: supportcandy.ajax_url,\n\t\t\t\t\t\t\ttype: 'POST',\n\t\t\t\t\t\t\tdata: dataform,\n\t\t\t\t\t\t\tprocessData: false,\n\t\t\t\t\t\t\tcontentType: false\n\t\t\t\t\t\t}).done(function (res) {\n\t\t\t\t\t\t\tif (res.isSuccess == 1) {\n\t\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\talert(supportcandy.translations.something_wrong);\n\t\t\t\t\t\t\t\twpsc_get_guest_sign_in();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t<\/script>\n\t\t\t<\/div>\n\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\t\t\t<\/script>\n\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","footnotes":""},"class_list":["post-586","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/pages\/586"}],"collection":[{"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/comments?post=586"}],"version-history":[{"count":4,"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/pages\/586\/revisions"}],"predecessor-version":[{"id":590,"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/pages\/586\/revisions\/590"}],"wp:attachment":[{"href":"https:\/\/clouddukaan.com\/index.php\/wp-json\/wp\/v2\/media?parent=586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}