All-Source Intelligence Analyst (2024)

  • First Name *

  • Middle Name

  • Last Name *

  • Mobile Number *

  • Work Authorization *

  • Job Title *

  • Email *

  • Country

  • Address

  • State

  • City *

  • Zip Code

  • Resume *

Terms and conditions

'); } } var isReferral = "3"; if (isReferral == 1) { $("#JobSeekerReferenceBy").val(""); } $('.veteran_type_div').hide(); $(document).on('change', '#JobSeekerDetailIsVeteran', function() { var is_veteran = $('#JobSeekerDetailIsVeteran').val(); if (is_veteran != 1) { $('.veteran_type_div').hide(); $('#JobSeekerVeteranStatus').val(''); } else { $('.veteran_type_div').show(); } }); $('.hide_clearance').hide(); $('.clearance').change(function() { if ($('.clearance input[type="radio"]:checked').val() == 2) { $("select[name='data[JobSeeker][clearance_type]']").removeClass("error"); $('.hide_clearance').hide(); $('#JobSeekerClearanceType').val(''); } else { $("select[name='data[JobSeeker][clearance_type]']").removeClass("error"); $('.hide_clearance').show(); } }); $('.location_constraints_show').hide(); $('.relocation').change(function() { if ($('.relocation input[type="radio"]:checked').val() == 2) { $('.location_constraints_show').show(); } else { $('.location_constraints_show').hide(); } }); $(document).on('keypress', '#JobSeekerMobileNumber, #JobSeekerOtherPhone, #JobSeekerAlternativePhone, #JobSeekerPhone', function(event) { return isNumberAndCharCodeKey(event); }); function isNumberAndCharCodeKey(evt) { var charCode = (evt.which) ? evt.which : event.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode != 32 && charCode != 40 && charCode != 41 && charCode != 45 && charCode != 46 && charCode != 43)) { return false; } return true; } jQuery.validator.addMethod("linkedin", function(value, element) { return this.optional(element) || /(ftp|http|https):\/\/?(?:www\.)?(?:in\.)?linkedin.com(\w+:{0,1}\w*@)?(\S+)(:([0-9])+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/i.test(value); }, "Pleae enter valid linkedin url "); jQuery.validator.addMethod("facebook", function(value, element) { return this.optional(element) || /(ftp|http|https):\/\/?((w{3}\.)?)facebook.com\/.*/i.test(value); }, "Pleae enter valid facebook url "); jQuery.validator.addMethod("twitter", function(value, element) { return this.optional(element) || /(ftp|http|https):\/\/?((w{3}\.)?)twitter\.com\/(#!\/)?[a-z0-9_]+$/i.test(value); }, "Pleae enter valid Twitter url "); jQuery.validator.addMethod("videourl", function(value, element) { return this.optional(element) || /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/|www\.)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i.test(value); }, "Pleae enter valid video url "); var ssn_restriction = "1,2"; if (ssn_restriction != '') { var ssn_restriction_arr = ssn_restriction.split(','); if (ssn_restriction_arr.includes('1') && ssn_restriction_arr.includes('2')) { $.validator.addMethod("ssn", function(value, element) { return this.optional(element) || /^(\w{4}|\w{9}|[\w\-]{11})$/.test(value); }, "Please enter 4 or 9 digits valid SSN."); } else if (ssn_restriction_arr.includes('1')) { $.validator.addMethod("ssn", function(value, element) { return this.optional(element) || /^(\w{4})$/.test(value); }, "Please enter 4 digits valid SSN."); } else if (ssn_restriction_arr.includes('2')) { $.validator.addMethod("ssn", function(value, element) { return this.optional(element) || /^(\w{9}|[\w\-]{11})$/.test(value); }, "Please enter 9 digits valid SSN."); } } else { $.validator.addMethod("ssn", function(value, element) { return this.optional(element) || /^(\w{4}|\w{9}|[\w\-]{11})$/.test(value); }, "Please enter 4 or 9 digits valid SSN."); } $.validator.addMethod("mobile_numbers_validation", function(value, element) { return this.optional(element) || /^[\d-().+ ]{0,21}$/.test(value); //allows numerics,space, curly brackets(), hyphen(-), Pointer(.), plus(+) }, "Please enter Valid Number."); $(document).on('click', '#login_redirect', function() { }); // Script For Source finding Added By Narender var url_delete = location.hash; if (url_delete != '') { var del = url_delete.substring(url_delete.lastIndexOf('.')); var source_url = del.replace(".", ""); if (String(source_url) == "ladder") { $("#indeedApply").hide(); $("#awm_widget").hide(); } var job_id = "N0ZEVU1JL2JGT0UzZmdjejRhR2EyZz09"; $.ajax({ url: "/Jobs/source_find", type: "post", data: { source_url: source_url, job_id: job_id, source: url_delete }, success: function(datas) {} }); } (function(d, s, id) { var js, iajs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) { return; } js = d.createElement(s); js.id = id; js.async = true; js.src = "https://apply.indeed.com/indeedapply/static/scripts/app/bootstrap.js"; iajs.parentNode.insertBefore(js, iajs); }(document, 'script', 'indeed-apply-js')); $(".apply_without").click(function() { var company_id = "11334"; var enable_parser_in_easy_apply = ""; if (company_id != '' && enable_parser_in_easy_apply == 1) { $("#file_import").hide(); var apply_job_value = $("input[name='data[FormResume][add_applicant_type]']:checked").val(); if (apply_job_value == 1) { $("#file_import").show(); $("#doc_attachment1").show(); } $("#resume_modal").modal("show"); $("#doc_attachment1").html(""); $("#next_parse").prop("disabled", false); } else { $("#apply_without_reg").modal("show"); } // Script For Source finding Added By Narender var url_delete = location.hash; if (url_delete != '') { var del = url_delete.substring(url_delete.lastIndexOf('.')); var source_url = del.replace(".", ""); if (String(source_url) == "ladder") { $("#indeedApply").hide(); $("#awm_widget").hide(); } var job_id = "N0ZEVU1JL2JGT0UzZmdjejRhR2EyZz09"; $.ajax({ url: "/Jobs/source_find", type: "post", data: { source_url: source_url, job_id: job_id, source: url_delete }, success: function(datas) { res = JSON.parse(datas); $('#job_board_name').val(res.source); $('#job_source').val(res.source); $('#source_type').val(res.source_type); $('#job_source_type').val(res.source_type); } }); } }); $(".applicant_submission_type").click(function() { var value = $("input[name='data[FormResume][add_applicant_type]']:checked").val(); if (value != '') { $(".applicant_submission_type").removeClass('error'); $("#file_import").removeClass('error'); if (value == 1) { $("#file_import").show(); $("#doc_attachment1").show(); } else { $("#file_import").hide(); $("#doc_attachment").val(""); $("#doc_attachment1").html(''); $("#next_parse").prop("disabled", false); } } }); $("#file_import").on("click", function() { $("#doc_attachment").trigger("click"); }); $(document).on('change', '#doc_attachment', function() { var doc_types = ['doc', 'docx', 'pdf', 'txt', 'DOC', 'PDF']; var path = $(this).val(); var id = $(this).attr('id'); var pathArray = path.split('\\'); var start = path.lastIndexOf("."); var exe = path.substring(start + 1).toLowerCase(); var file_name = (typeof $(this)[0].files[0] != 'undefined') ? $(this)[0].files[0].name : ''; var found = false; $.each(doc_types, function(key, value) { if (value == exe) { found = true; } }); if (found) { $('#' + id + '1').html(''); $('#' + id).removeClass('error'); $("#file_import").removeClass('error'); $("#doc_attachment1").html(file_name); $('#file_error').html(''); } else { $('#' + id + '1').html("Invalid file type"); $('#' + id).addClass('error'); $('input[name=' + id + ']').val(''); } }); $(document).on("click", "#next_parse", function() { var doc_attach = $("#doc_attachment1").html(); if (doc_attach == "Invalid file type") { $('#ajax_loader').hide(); $(this).prop("disabled", false); $(".file_import").addClass('error'); return false; } else { var applicant_submission_type = $("input[name='data[FormResume][add_applicant_type]']:checked").val(); var company_id = 'UUVWNEVmeEdlMm04bW9OWXpZRW43QT09'; var job_id = "N0ZEVU1JL2JGT0UzZmdjejRhR2EyZz09"; var custom_job_application_id = "1"; var ref_email = ""; $(".applicant_submission_type").removeClass('error'); $('#ajax_loader').show(); if (applicant_submission_type != undefined) { $(".applicant_submission_type").removeClass('error'); if (applicant_submission_type == 1) { var file_name = $("#doc_attachment").val(); var filepath_name = file_name.replace(/^.*\\/, ""); if (file_name != '' && filepath_name != '') { $(this).prop("disabled", true); $("#form_resume").ajaxForm({ success: function(response) { res = JSON.parse(response); var message_cmp = res.message; if (res.message == "Invalid file type") { $('#ajax_loader').hide(); showAlertMessage(res.message, "failure"); } else if (res.status == "success") { $("#resume_modal").modal("hide"); $.ajax({ url: "/ApplicantProfiles/show_resume_detail/" + company_id + "/" + job_id + "/5", data: { 'res': res, 'custom_job_application_id': custom_job_application_id, 'ref_email': ref_email, 'applicant_submission_type': applicant_submission_type }, type: 'post', success: function(response) { $("#easy_apply_form").html(response); $('#ajax_loader').hide(); $("#apply_without_reg").modal("show"); setTimeout(function() { $("#JobSeekerEmail").trigger("change"); $("#JobSeekerCountry").trigger("change"); },1000); } }); } else { $('#ajax_loader').hide(); showAlertMessage(message_cmp, "failure"); $("#apply_without_reg").modal("show"); } } }).submit(); } else { $('#ajax_loader').hide(); $("#file_import").addClass('error'); } } else if (applicant_submission_type == 2) { $("#doc_attachment").val(""); $("#doc_attachment1").html(""); $("#resume_modal").hide(); $("#apply_without_reg").modal("show"); } } else { $('#ajax_loader').hide(); $(this).prop("disabled", false); $(".applicant_submission_type").addClass('error'); } } }); $(document).on('change', '#JobSeekerCountry', function() { var country_id = $(this).val(); get_ajax_states(country_id); $("#JobSeekerPostalCode").val(''); //code block for GDPR @ManikantaG on 18.07.2024 starts.. let country_str = '768'; let country_arr = country_str.split(","); let consent_type = '2'; let disable_gdpr_status = '0'; let jobseeker_consent_flag = $("#JobSeekerDetailCandidateConsentStatus").val(); let jobseeker_consent_expire_flag = $("#JobSeekerDetailCandidateConsentExpiry").val(); let jobseeker_country = $("#JobSeekerDetailCandidateCountry").val(); jobseeker_country = (jobseeker_country == 0) ? 0 : jobseeker_country; if(disable_gdpr_status == 0 && gdpr_const_expire == 0) { if(consent_type == 1) {//all applicants if(jobseeker_consent_flag == 0 || (jobseeker_consent_flag == 1 && jobseeker_consent_expire_flag == 1)) { $(".display_consent").css('display', 'block'); } else { $(".display_consent").css('display', 'none'); } } else { // based on applicant country if($.inArray(country_id,country_arr) != -1 && ($.inArray(jobseeker_country,country_arr) != -1 || jobseeker_country == 0) && (jobseeker_consent_flag == 0 || (jobseeker_consent_flag == 1 && jobseeker_consent_expire_flag == 1))) { $(".display_consent").css('display', 'block'); } else if($.inArray(country_id,country_arr) != -1 && jobseeker_country !=0 && (jobseeker_consent_flag == 0 || (jobseeker_consent_flag == 1 && jobseeker_consent_expire_flag == 1))) { $(".display_consent").css('display', 'block'); } else { $(".display_consent").css('display', 'none'); } } } //code block for GDPR @ManikantaG on 18.07.2024 ends.. }); //code block for GDPR @ManikantaG on 18.07.2024 starts.. $('input[name="data[JobSeekerDetail][consent_req]"]').change(function() { let consentreqVal = $(this).val(); if(consentreqVal == 1) { $('.consent-period-block').css('display','block'); } else { $('#consent_period').removeClass('error'); $('.consent-period-block').css('display','none'); } }); var timezone_offset_minutes = new Date().getTimezoneOffset(); timezone_offset_minutes = timezone_offset_minutes == 0 ? 0 : -timezone_offset_minutes; // Timezone difference in minutes such as 330 or -360 or 0 $("#JobSeekerDetailBrowserTimezoneOffset").val(timezone_offset_minutes); //code block for GDPR @ManikantaG on 18.07.2024 ends.. $('#JobSeekerState').change(function() { $("#JobSeekerPostalCode").val(''); }); function get_ajax_states(country_id) { var company_id = '11334'; $.ajax({ url: "/AjaxCalls/get_states" + "/" + country_id + "/" + company_id, type: "get", success: function(res) { if (country_id == 826) { $(".state_label").text(''); $(".state_label").text("County"); $(".zip_code_val").text("Zip Code"); } else if (country_id == 124) { $(".state_label").text(''); $(".state_label").text("Province"); $(".zip_code_val").text("Postal Code"); } else { $(".state_label").text(''); $(".state_label").text("State"); $(".zip_code_val").text("Zip Code"); } $("#JobSeekerState").html(res); // $("#JobSeekerState option:first").html(''); } }); } $(document).on("click", "#clear__skill_tags_id", function() { $('#technology').importTags(''); $('.skills_technology .technology').val(''); $('.skills_technology .tagsinput span.tag').remove(); }); $(document).on("click", "#clear_primay_skill_tags_id", function() { $('#profile_skills').importTags(''); $('.primary_technology .profile_skills').val(''); $('.primary_technology .tagsinput span.tag').remove(); }); $("#profile_skills_tag").addClass('formInput'); // if($('#technology').is(':visible')) { $('#technology').importTags(""); $('#technology').tagsInput({ width: 'auto', height: 'auto', 'defaultText': '', autocomplete_url: "/job_postings/get_technical_skills", autocomplete: { source: function(request, response) { $.ajax({ url: "/job_postings/get_technical_skills/" + request.term, dataType: "json", success: function(data) { response($.map(data, function(item) { return { label: item.ConfigTechnology.technology, value: item.ConfigTechnology.technology, } })); } }) } }, onAddTag: function() { if ($('#technology').val()) { $("#technology_tagsinput").removeClass('error'); $("label[for=technology]").hide(); } }, onRemoveTag: function() { if ($('#technology').val()) { $("#technology_tagsinput").removeClass('error'); $("label[for=technology]").hide(); } else { $("#technology_tagsinput").addClass('error'); $("label[for=technology]").shoclear_primay_skill_tags_idw(); } } }); // } $(document).on('change', "#technology_tag", function() { $('#technology').importTags($('#technology').val() + "," + $(this).val()); if ($('#technology').val()) { $("#technology_tagsinput").removeClass('error'); $("label[for=technology]").hide(); } else /*if (x != 'test')*/ { $("#technology_tagsinput").addClass('error'); $("label[for=technology]").show(); } }); $('#profile_skills').importTags(""); // if($('#profile_skills').is(':visible')) { $('#profile_skills').importTags(""); $('#profile_skills').importTags(""); $('#profile_skills').tagsInput({ width: 'auto', height: 'auto', 'defaultText': '', autocomplete_url: "/jobs/get_technical_skills", autocomplete: { source: function(request, response) { $.ajax({ url: "/jobs/get_technical_skills/" + request.term, dataType: "json", success: function(data) { console.log(data); response($.map(data, function(item) { return { label: item.ConfigTechnology.technology, value: item.ConfigTechnology.technology, } })); } }) } }, onRemoveTag: function() { if ($('#profile_skills').val()) { $("#profile_skills_tagsinput").removeClass('error'); $("label[for=profile_skills]").hide(); } else if (x != 'test') { $("#profile_skills_tagsinput").addClass('error'); $("label[for=profile_skills]").show(); } } }); // } $('#profile_skills_tag').keydown(function(event) { if (event.which == 13) { $(this).blur(); $(this).focus(); return false; } }); $(document).on('change', "#profile_skills_tag", function() { $('#profile_skills').importTags($('#profile_skills').val() + "," + $(this).val()); if ($('#profile_skills').val()) { $("#profile_skills_tagsinput").removeClass('error'); $("label[for=profile_skills]").hide(); } else if (x != 'test') { $("#profile_skills_tagsinput").addClass('error'); $("label[for=profile_skills]").show(); } }); $(".submission_field_multiple_select").multipleSelect({ filter: true, refresh: true, multiple: true, position: 'top', }); $(".custom_fields_multiple_select").multipleSelect({ filter: true, refresh: true, multiple: true, position: 'top', }); $('.custom_date_cls').datetimepicker({ autoclose: 1, startView: 2, minView: 2, timepicker: false, autoclose: true, pickerPosition: 'top-right' }); $('.date_of_birth').datetimepicker({ autoclose: 1, startView: 2, minView: 2, timepicker: false, autoclose: true, pickerPosition: 'top-right', endDate: new Date() }); $('.work_authorization_expiry').datetimepicker({ autoclose: 1, startView: 2, minView: 2, timepicker: false, autoclose: true, pickerPosition: 'top-right' }); $('#notice_period_serving_date').datetimepicker({ timepicker: false, weekStart: 1, todayBtn: 1, minView: 2, autoclose: 1, todayHighlight: 1, startView: 2, forceParse: 0, showMeridian: 1, startDate: '+0d', }).on("changeDate", function(selected) { $('#notice_period_serving_date').valid(); }); $('.custom_date_cls').datetimepicker({ autoclose: 1, startView: 2, minView: 2, timepicker: false, autoclose: true, pickerPosition: 'top-right' }); flag = false; secondary_flag = false; jQuery.validator.addMethod("aadhar_number", function(value, element) { return this.optional(element) || (/^[0-9]{12}$/.test(value)) }, "Please enter 12 digits valid Aadhar Card Number"); jQuery.validator.addMethod("pan_card_number", function(value, element) { return this.optional(element) || (/^[A-Z]{3}[PCHFATBLJG]{1}[A-Z]{1}[0-9]{4}[A-Z]{1}$/i.test(value)) }, "Invalid PAN Card Number"); jQuery.validator.addMethod("passport", function(value, element) { return this.optional(element) || (/^[A-Z0-9]{5,10}$/i.test(value)) }, "Please enter 5 to 10 characters valid Passport Number"); $(document).on('click', '.save_applicant', function() { var applicant_submission_type = $("#applicant_submission_type").val(); validator = $("#applicant_easy_apply_form").validate({}); if ($("input[name='data[JobSeeker][clearance]']").length > 0 && $("input[name='data[JobSeeker][clearance]']:checked").val() == 1 && $("select[name='data[JobSeeker][clearance_type]']").val() == '') { $("select[name='data[JobSeeker][clearance_type]']").addClass("error"); } else { $("select[name='data[JobSeeker][clearance_type]']").removeClass("error"); } if ($("input[name='data[JobSeeker][email]']").val() == '') { $("input[name='data[JobSeeker][email]']").addClass("error"); } else { $("input[name='data[JobSeeker][email]']").removeClass("error"); } if ($('input[name="data[JobSeeker][ssn]"]').length) { $('input[name="data[JobSeeker][ssn]"]').rules("add", { ssn: true }); } if ($('input[name="data[JobSeeker][mobile_number]"]').length > 0) $('input[name="data[JobSeeker][mobile_number]"]').rules("add", { mobile_numbers_validation: true }); if ($('input[name="data[JobSeeker][phone]"]').length > 0) $('input[name="data[JobSeeker][phone]"]').rules("add", { mobile_numbers_validation: true }); if ($('input[name="data[JobSeeker][alternative_phone]"]').length > 0) $('input[name="data[JobSeeker][alternative_phone]"]').rules("add", { mobile_numbers_validation: true }); if ($('input[name="data[JobSeeker][other_phone]"]').length > 0) $('input[name="data[JobSeeker][other_phone]"]').rules("add", { mobile_numbers_validation: true }); if ($('input[name="data[JobSeekerDetail][aadhar_number]"]').length) $('input[name="data[JobSeekerDetail][aadhar_number]"]').rules("add", { aadhar_number: true }); if ($('input[name="data[JobSeekerDetail][pan_card_number]"]').length) $('input[name="data[JobSeekerDetail][pan_card_number]"]').rules("add", { pan_card_number: true }); var element_id = $("#local_id_hidden").val(); var local_file = $("#local_file" + element_id).val(); var dropbox_file = $("#dropbox_file" + element_id).val(); var drive_file = $("#drive_file" + element_id).val(); if (local_file == '' && dropbox_file == '' && drive_file == '') { $(".more_documentsCustomMandatoryCls,.DocumentsCustomMandatoryCls").each(function() { $("#doc_attachmentname" + element_id).html("please select file"); $(this).rules("add", { required: true, // accept: "doc|docx|DOC|otf|pdf|txt|ppt|pptx", }); }); } else { $(".more_documentsCustomMandatoryCls,.DocumentsCustomMandatoryCls").each(function() { // $("#doc_attachmentname"+element_id).html(""); $(this).rules("remove"); }); } $('.ApplicantCustomMandatoryCls').each(function() { value = $(this).attr('field_name'); if (value != 'undefined' && value != undefined) { var obj = new Object(); obj["required"] = true; obj["messages"] = { required: '' }; if (value == "profile_skills") { secondary_flag = true; } if (value == "technology") { flag = true; } if (value == "work_authorization" || value == "experience" || value == "state" || value == "country" || value == "referred_by" || value == "tax_term" || value == "notice_period" || value == "applicant_employment_type" || value == "gender" || value == "race" || value == "is_veteran" || /*value == "veteran_status" ||*/ value == "disability" || value == "ownership" || /*value == "clearance" ||*/ value == "applicant_status") { dname = $(this).attr('name'); $(this).rules("add", { 'required': true, messages: { required: '' } }); } else if (value == "config_function" && $("select[name='data[JobSeekerDetail][config_function][]']").length > 0) { console.log(value); if ($("#JobSeekerDetailConfigFunction").multipleSelect("getSelects").length > 0) { $("#JobSeekerDetailConfigFunction").parent().find('.submission_field_multiple_select').removeClass('error'); } else { $("#JobSeekerDetailConfigFunction").parent().find('.submission_field_multiple_select').addClass('error'); } } else if (value == "industry") { if ($("#JobSeekerDetailIndustry").multipleSelect("getSelects").length > 0) { $("#JobSeekerDetailIndustry").parent().find('.submission_field_multiple_select').removeClass('error'); } else { $("#JobSeekerDetailIndustry").parent().find('.submission_field_multiple_select').addClass('error'); } } else if (value == "jobseeker_technology") { if ($("#JobSeekerJobseekerTechnology").multipleSelect("getSelects").length > 0) { $("#JobSeekerJobseekerTechnology").parent().find('.submission_field_multiple_select').removeClass('error'); } else { $("#JobSeekerJobseekerTechnology").parent().find('.submission_field_multiple_select').addClass('error'); } } else if (value == "selected_documents" || value == "additional_attachment" || value == "eform_ids" || value == "select_resume" || value == "relocate" || value == "veteran_status") { } else { $(this).rules("add", { 'required': true, messages: { required: '' } }); } } }); if (secondary_flag && $('#profile_skills').length > 0) { console.log(secondary_flag); console.log('secondary_flag'); if ($("#profile_skills").hasClass('error')) { $("#profile_skills_tagsinput").addClass('error'); } else { $("#profile_skills_tagsinput").removeClass('error'); } } if (flag && $("#technology").length > 0) { if ($("#technology").hasClass('error')) { $("#technology_tagsinput").addClass('error'); } else { $("#technology_tagsinput").removeClass('error'); } } /* Put the Custom Fields Mandatroy function */ var validate_fields = true; var valid_custom_field = 1; $('.CustomMandatoryCls').each(function() { if ($(this).hasClass('custom_check_box')) { dname = $(this).find('input').attr('name'); $('input[name="' + dname + '"]').rules("add", { required: true, minlength: 1, messages: { required: '' } }); } else if ($(this).hasClass('custom_fields_multiple_select')) { if ($(this).attr("name")) { dname = $(this).attr("name"); var id = $(this).attr("id"); if ($("#" + id).multipleSelect("getSelects").length > 0) { $("#" + id).parent().find('.custom_fields_multiple_select').removeClass('error'); } else { $("#" + id).parent().find('.custom_fields_multiple_select').addClass('error'); } } } else if ($(this).hasClass('CustomFieldsUploadDocument')) { file_name = $(this).attr('data-file_name'); if (file_name == '') { $(this).rules("add", { required: true }); } } else { $(this).rules("add", { 'required': true, messages: { required: '' } }); } }); /* gdpr consent settings validation @ManikantaG on 23.07.2024 starts */ // if ($('input[name="data[JobSeekerDetail][consent_req]"]').is(':visible')) { if($('input[name="data[JobSeekerDetail][consent_req]"]').is(':visible')) { $('input[name="data[JobSeekerDetail][consent_req]"]').rules("add", { required : true }); } /*else { $('input[name="data[JobSeekerDetail][consent_req]"]').rules("remove","required"); }*/ if($('select[name="data[JobSeekerDetail][consent_period]"]').is(':visible')) { $('select[name="data[JobSeekerDetail][consent_period]"]').rules("add", { required : true }); } /*else { $('select[name="data[JobSeekerDetail][consent_period]"]').rules("remove","required"); }*/ /*gdpr consent settings validation @ManikantaG on 23.07.2024 ends */ if ($('input[name="data[JobSeeker][email_address_1]"]').length > 0) $('input[name="data[JobSeeker][email_address_1]"]').rules("add", { email: true }); if ($('input[name="data[JobSeeker][email]"]').length > 0) $('input[name="data[JobSeeker][email]"]').rules("add", { email: true }); if ($('input[name="data[JobSeeker][linkedin_url]"]').length > 0) $('input[name="data[JobSeeker][linkedin_url]"]').rules("add", { linkedin: true }); if ($('input[name="data[JobSeeker][facebook_url]"]').length > 0) $('input[name="data[JobSeeker][facebook_url]"]').rules("add", { facebook: true }); if ($('input[name="data[JobSeeker][twitter_url]"]').length > 0) $('input[name="data[JobSeeker][twitter_url]"]').rules("add", { twitter: true }); if ($('input[name="data[JobSeeker][video_reference]"]').length > 0) $('input[name="data[JobSeeker][video_reference]"]').rules("add", { videourl: true }); var obj_validation = new Object(); x = validator.form(); console.log(x); console.log(validate_fields); if (x && validate_fields) { $(".save_applicant").attr('disabled', 'disabled'); $.ajax({ url: "/jobs/check_job_apply_no_reg/26fd45817c0a0bb1e951d17fa7df947c", type: 'post', data: { 'email': $("#JobSeekerEmail").val(), 'job_id': $("#JobSeekerJobId").val(), 'company_id': $("#JobSeekerCompanyId").val() }, dataType: 'json', success: function(res) { console.log(res); console.log(applicant_submission_type); if (parseInt(res.status) == 1) { $('#ajax_loader_save').show(); // $(".save_applicant").attr('disabled','disabled'); if (applicant_submission_type == 1) { $("#applicant_easy_apply_form").attr('action', "/Jobs/save_parsed_jobseeker"); } $("#applicant_easy_apply_form").ajaxForm({ dataType: 'json', success: function(response) { if (parseInt(response.status) == 1) { showAlertMessage(response.message, "success"); $("#applicant_easy_apply_form")[0].reset(); // setTimeout(function () { $('#ajax_loader_save').hide(); $(".save_applicant").removeAttr('disabled'); $("#apply_without_reg").modal("hide"); window.location.reload(); // window.location.href = response.redirect; // window.location = "/ApplicantProfiles/applicant_profiles_list"; // },2000) } else { showAlertMessage(response.message, "failure"); } } }).submit(); } else if (parseInt(res.status) == 2) { $('#ajax_loader_save').hide(); $(".save_applicant").removeAttr('disabled'); showAlertMessage(res.message, "failure"); } else { $('#ajax_loader_save').hide(); $(".save_applicant").removeAttr('disabled'); showAlertMessage("You have already applied for this job", "failure"); } }, complete: function() { // $("#apply_without_reg").modal('hide'); } }); } }); $(document).on('change','#JobSeekerEmail', function() { var regex = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; if (regex.test($.trim($("#JobSeekerEmail").val()))) { $.ajax({ url: "/jobs/validate_email/UUVWNEVmeEdlMm04bW9OWXpZRW43QT09", type: 'post', data: { 'email': $("#JobSeekerEmail").val(), 'job_id': $("#job_apply_job_id").val() }, dataType: 'json', success: function(res) { if (parseInt(res.status)) { $("#JobSeekerFirstname").val(res.JobSeeker.firstname); $("#JobSeekerMiddlename").val(res.JobSeeker.middlename); $("#JobSeekerLastname").val(res.JobSeeker.lastname); $("#JobSeekerMobileNumber").val(res.JobSeeker.mobile_number); //gdpr settings to display consent based on jobseeker consent expiry & status @ManikantaG on 19.07.2024 let seeker_consent_expiry = res.JobSeekerDetail.gdpr_consent_expiry_date; let seeker_consent_status = res.JobSeekerDetail.gdpr_consent_status; const d = new Date(); let today = d.toISOString().split('T')[0]; let seeker_country = res.JobSeeker.country; seeker_country = (seeker_country == null) ? 0 : seeker_country; $("#JobSeekerDetailCandidateCountry").val(seeker_country); let country_str = '768'; // country list in admin settings let country_arr = country_str.split(","); let consent_type = '2'; // based on applicant country let disable_gdpr_status = '0'; if(disable_gdpr_status == 0) { if(consent_type == 1) { //all applicants if(seeker_consent_status == 0) { $(".display_consent").css('display', 'block'); $("#JobSeekerDetailCandidateConsentStatus").val(0); $("#JobSeekerDetailCandidateConsentExpiry").val(0); } else if($.inArray(seeker_consent_status,[1,3]) && today > seeker_consent_expiry) { $(".display_consent").css('display', 'block'); $("#JobSeekerDetailCandidateConsentStatus").val(1); // setting hidden input value to 1 to use in country change $("#JobSeekerDetailCandidateConsentExpiry").val(1); // setting hidden input value to 1 to use in country change } else { gdpr_const_expire = 1; $(".display_consent").css('display', 'none'); $('.consent-period-block').css('display', 'none'); $("#JobSeekerDetailCandidateConsentStatus").val(0); $("#JobSeekerDetailCandidateConsentExpiry").val(0); } } else { // based on applicant country if(seeker_country != 0 || seeker_consent_status == 1 || seeker_consent_status == 0) { if($.inArray(seeker_country,country_arr) != -1) { if(seeker_consent_status == 0) { $(".display_consent").css('display', 'block'); $("#JobSeekerDetailCandidateConsentStatus").val(0); $("#JobSeekerDetailCandidateConsentExpiry").val(0); } else if($.inArray(seeker_consent_status,[1,3]) && today > seeker_consent_expiry) { $(".display_consent").css('display', 'block'); $("#JobSeekerDetailCandidateConsentStatus").val(1); // setting hidden input value to 1 to use in country change $("#JobSeekerDetailCandidateConsentExpiry").val(1); // setting hidden input value to 1 to use in country change } else { gdpr_const_expire = 1; $(".display_consent").css('display', 'none'); $('.consent-period-block').css('display', 'none'); $("#JobSeekerDetailCandidateConsentStatus").val(0); $("#JobSeekerDetailCandidateConsentExpiry").val(0); } } else if(seeker_country != 0 && $.inArray(seeker_consent_status,[1,3]) && today > seeker_consent_expiry) { gdpr_const_expire = 0; $(".display_consent").css('display', 'none'); $('.consent-period-block').css('display', 'none'); $("#JobSeekerDetailCandidateConsentStatus").val(1); $("#JobSeekerDetailCandidateConsentExpiry").val(1); } else if(seeker_country == 0 && $.inArray(seeker_consent_status,[1,3]) && today > seeker_consent_expiry) { $(".display_consent").css('display', 'none'); $("#JobSeekerDetailCandidateConsentStatus").val(1); // setting hidden input value to 1 to use in country change $("#JobSeekerDetailCandidateConsentExpiry").val(1); // setting hidden input value to 1 to use in country change } else { gdpr_const_expire = (seeker_consent_status == 0) ? 0 : 1; $(".display_consent").css('display', 'none'); $('.consent-period-block').css('display', 'none'); $("#JobSeekerDetailCandidateConsentStatus").val(0); $("#JobSeekerDetailCandidateConsentExpiry").val(0); } } } } } } }); } }); // function for getting child custom fields display $(".CustomChildFieldsRadio").each(function() { var parent_field_id = $(this).data('parentid'); var parent_field_value = $(this).val(); if (parent_field_id != '' && parent_field_value != '') { if ($(this).prop('checked') == true) { getCustomChildFields(parent_field_id, parent_field_value); } } }); $(".CustomChildFieldsDropdown").each(function() { var parent_field_id = $(this).data('parentid'); var parent_field_value = $(this).val(); if (parent_field_id != '' && parent_field_value != '') { getCustomChildFields(parent_field_id, parent_field_value); } }); $('body').on('change', '.CustomChildFieldsRadio', function() { var parent_field_id = $(this).data('parentid'); var parent_field_value = $(this).val(); if (parent_field_id != '' && parent_field_value != '') { getCustomChildFields(parent_field_id, parent_field_value); } else { $(".append_child_custom_fields_" + parent_field_id).html(''); } }); $('body').on('change', '.CustomChildFieldsDropdown', function() { var parent_field_id = $(this).data('parentid'); var parent_field_value = $(this).val(); if (parent_field_id != '' && parent_field_value != '') { getCustomChildFields(parent_field_id, parent_field_value); } else { $(".append_child_custom_fields_" + parent_field_id).html(''); } }); function getCustomChildFields(parent_field_id, parent_field_value) { job_seeker_id = ""; company_id = "11334"; $.ajax({ url: "/CustomFields/GetChildCustomFields", type: "post", data: { "parent_field_id": parent_field_id, "parent_field_value": parent_field_value, 'job_seeker_id': job_seeker_id, 'company_id': company_id }, success: function(response) { $(".append_child_custom_fields_" + parent_field_id).html(''); $(".append_child_custom_fields_" + parent_field_id).html(response); } }); } $('.formCancel,.close-icon').click(function() { var key_val = $("#local_id_hidden").val(); console.log(key_val); var company_id = "11334"; $('#apply_without_reg').modal('hide'); $('#doc_attachmentname' + key_val).html(''); $("#applicant_easy_apply_form")[0].reset(); $(".Documents").val(''); var enable_parser_in_easy_apply = ""; console.log("enable_parser_in_easy_apply test " + enable_parser_in_easy_apply); if (company_id != '' && enable_parser_in_easy_apply == 1) { $('#ajax_loader').hide(); window.location.reload(); } // window.location = "/ApplicantProfiles/applicant_profiles_list"; }); }); $("#print_page_link").click(function() { window.open("/jobs/print_jobsdetails/N0ZEVU1JL2JGT0UzZmdjejRhR2EyZz09/UUVWNEVmeEdlMm04bW9OWXpZRW43QT09", '', 'width=900,height=500,scrollbars=yes'); }); $("#emailpopup").click(function() { if (jobshare_validator != "test") jobshare_validator.resetForm(); $("#job_share_form")[0].reset(); $("#JobShareModal").modal("toggle"); }); $("#close_popup").click(function() { $("#popup").css('display', 'none'); $("#mailto").val(''); $("#mailto").removeClass('error'); }); /*******Validate share email********/ jobshare_validator = "test"; $("#btn_sendmail").click(function() { jobshare_validator = $("#job_share_form").validate({ rules: { 'data[JobPosting][share_emails]': { 'required': true, 'email': true } } }); var x = jobshare_validator.form(); if (x) { changeButtonClass('#btn_sendmail'); $("#job_share_form").ajaxForm({ dataType: "json", success: function(response) { changeBacktoOriginal('#btn_sendmail'); if (response == "success") { var msgtext = '

Job has been shared successfully.

'; showAlertMessage('Job has been shared successfully', 'success'); } $("#JobShareModal").modal("toggle"); } }).submit(); } }); /***************/ if ($('input[name="data[JobSeeker][linkedin_url]"]').is(':visible')) { $('input[name="data[JobSeeker][linkedin_url]"]').rules("add", { linkedin: true, }); } if ($('input[name="data[JobSeeker][facebook_url]"]').is(':visible')) { $('input[name="data[JobSeeker][facebook_url]"]').rules("add", { facebook: true, }); } if ($('input[name="data[JobSeeker][twitter_url]"]').is(':visible')) { $('input[name="data[JobSeeker][twitter_url]"]').rules("add", { twitter: true, }); } if ($('input[name="data[JobSeeker][video_reference]"]').is(':visible')) { $('input[name="data[JobSeeker][video_reference]"]').rules("add", { videourl: true, }); } if ($('input[name="data[JobSeeker][email_address_1]"]').is(':visible')) { $('input[name="data[JobSeeker][email_address_1]"]').rules("add", { email: true, messages: { email: '' } }); } $(document).on('change', '.resume_file_cls', function() { change_check_files_validation(); }); function change_check_files_validation() { validator_apply = $("#frm_apply_job_without_reg").validate({ errorPlacement: function(error, element) { //just nothing, empty var first_word = element.attr("name"); if (first_word.indexOf("doc_file") >= 0) error.insertAfter(".import-contact-block"); }, }); // Start of removing file upload rules when one of file source was given var element_id = $("#local_id_hidden").val(); var local_file = $("#local_file" + element_id).val(); var dropbox_file = $("#dropbox_file" + element_id).val(); var drive_file = $("#drive_file" + element_id).val(); if (local_file == '' && dropbox_file == '' && drive_file == '') { $(".more_documentsCustomMandatoryCls").each(function() { $(this).rules("add", { required: true, accept: "doc|docx|DOC|otf|pdf|txt|ppt|pptx", //jpg|png|JPG|PNG| }); }); } else { $(".more_documentsCustomMandatoryCls").each(function() { $(this).rules("remove"); }); } validator_apply.form(); validator = $("#frm_apply_job_without_reg").validate({}); $('#JobSeekerSsn').click(function() { if ($('input[name="data[JobSeeker][ssn]"]').length) { $('input[name="data[JobSeeker][ssn]"]').rules("add", { ssn: true }); } }); } // File upload Validation $(document).on('change', '.CustomFieldsUploadDocument', function() { categories = $(this).attr('data-file_type'); upload_limit = $(this).attr('data-max_upload_limit'); exist_file_name = $(this).attr('data-file_name'); categories_arr = categories.split(","); // console.log(categories_arr); var path = $(this).val(); var id = $(this).attr('id'); var cust_id = $(this).attr('data-id'); var pathArray = path.split('\\'); var start = path.lastIndexOf("."); var exe = path.substring(start + 1); var filter_file_type = $.inArray(exe, categories_arr) > -1; var get_file_size = $(this)[0].files[0].size / 1024 / 1024; if (filter_file_type == true && (get_file_size < upload_limit)) { $('#' + id).removeClass('error'); $(this).parent().find('.fakeBrowse').removeClass('error'); $('#file_error_message_' + cust_id).html(pathArray[pathArray.length - 1]) $('.resume_display_name_' + cust_id).html(''); } else { if (get_file_size > upload_limit) { $('#file_error_message_' + cust_id).html("Exceeded max file size"); } else { $('#file_error_message_' + cust_id).html("Upload Valid Format File"); } $('#' + id).addClass('error'); $(this).parent().find('.fakeBrowse').addClass('error'); $('#' + id).val(''); $('.resume_display_name_' + cust_id).html(exist_file_name); } }); $(document).on('click', '.download_cfield_attachment', function(event) { event.preventDefault(); var document_id = $(this).attr('data-doc_value'); var path_url = $(this).attr('data-path_url'); var downloadpath = path_url + 'CustomFields/DownloadCustomFieldDoc' + '/' + document_id; window.location = downloadpath; }); $(document).on('change', '#JobSeekerDetailNoticePeriod', function() { var notice_period_val = $(this).val(); if (notice_period_val == 6) { $('.notice_period_current_serving_date').show(); } else { $('.notice_period_current_serving_date').hide(); $('#notice_period_serving_date').val(''); } });

All-Source Intelligence Analyst (2024)
Top Articles
Steph and Ayesha Curry welcome fourth baby and reveal his name
Riley Curry Bio, Alter, Familienleben und alles, was Sie über sie wissen müssen
Mybranch Becu
Spectrum Gdvr-2007
My Arkansas Copa
Nyu Paralegal Program
Midflorida Overnight Payoff Address
Optum Medicare Support
Graveguard Set Bloodborne
Natureza e Qualidade de Produtos - Gestão da Qualidade
Superhot Unblocked Games
SXSW Film & TV Alumni Releases – July & August 2024
Mani Pedi Walk Ins Near Me
The Cure Average Setlist
Craiglist Tulsa Ok
Rams vs. Lions highlights: Detroit defeats Los Angeles 26-20 in overtime thriller
Shasta County Most Wanted 2022
ZURU - XSHOT - Insanity Mad Mega Barrel - Speelgoedblaster - Met 72 pijltjes | bol
Earl David Worden Military Service
Ruse For Crashing Family Reunions Crossword
Boscov's Bus Trips
Craigslist Northfield Vt
Soulstone Survivors Igg
John Chiv Words Worth
Ceramic tiles vs vitrified tiles: Which one should you choose? - Building And Interiors
Bocca Richboro
Labcorp.leavepro.com
Miles City Montana Craigslist
27 Fantastic Things to do in Lynchburg, Virginia - Happy To Be Virginia
Weather October 15
Tamil Movies - Ogomovies
The Goonies Showtimes Near Marcus Rosemount Cinema
A Man Called Otto Showtimes Near Carolina Mall Cinema
The Monitor Recent Obituaries: All Of The Monitor's Recent Obituaries
Gerber Federal Credit
Pill 44615 Orange
Tokyo Spa Memphis Reviews
Frcp 47
Los Garroberros Menu
2008 DODGE RAM diesel for sale - Gladstone, OR - craigslist
Tillman Funeral Home Tallahassee
Paperless Employee/Kiewit Pay Statements
Columbia Ms Buy Sell Trade
Entry of the Globbots - 20th Century Electro​-​Synthesis, Avant Garde & Experimental Music 02;31,​07 - Volume II, by Various
Rage Of Harrogath Bugged
20 Mr. Miyagi Inspirational Quotes For Wisdom
Hello – Cornerstone Chapel
Waco.craigslist
9294027542
Diario Las Americas Rentas Hialeah
Michaelangelo's Monkey Junction
sin city jili
Latest Posts
All About Steph and Ayesha Curry's 4 Kids
31 Of The Best Songs About Pregnancy And Having A Baby
Article information

Author: Kieth Sipes

Last Updated:

Views: 6261

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.