'; $('#select_div_'+employeeId).html(email_list); if ( $( "#per_"+employeeId ).length ) { $('.per_def_'+employeeId).show(); $('#per_but_'+employeeId).prop('disabled', false); $('#per_but_'+employeeId).removeClass('crm-but-disable'); $('#persist_'+employeeId).hide(); } if ( $( "#qm_"+employeeId ).length ) { $('#qm_but_'+employeeId).prop('disabled', false); $('#qm_but_'+employeeId).removeClass('crm-but-disable'); $('#quickmail_'+employeeId).hide(); } }); } }); } function OLDunlockAndProcessResearchEmailListwiseAPIOLD(employeeId,first_name,middle,last_name,email_format_guessed1,company_domain) { var imageLoading= $('.loadingImage').html(); var image_url = 'https://app.lead411.com/assets/images/'; $('.inSpan'+employeeId).html('Processing'+imageLoading); $('.researchEmail'+employeeId).removeAttr("onclick"); $('.researchEmail'+employeeId).attr("style","cursor:wait;"); var param = ''; $.ajax({ type: 'POST', url: "https://app.lead411.com/profile_page/unlock_employee_record", async:false, data: {employee_id:employeeId, export_type:'' }, success: function(data) { var obj = jQuery.parseJSON(data); // param = obj.status; if(obj.status == 'success'){ // processResearchEmailListwiseAPI(employeeId,first_name,middle,last_name,email_format_guessed1,company_domain); // if(obj.phone!='' && obj.phone!=null){ // $('.inSpanUnlockEmployeePhone'+employeeId).html(""+obj.phone+""); // } else{ // $('.inSpanUnlockEmployeePhone'+employeeId).html("Not Available"); // } }else if(obj.status == 'insufficient_quota'){ $.jGrowl(obj.msg, { sticky: false, theme: 'success'}); }else{ $.jGrowl(obj.msg, { sticky: false, theme: 'error'}); } } }); } function processResearchEmailListwiseAPI(employeeId,first_name,middle,last_name,email_format_guessed1,company_domain) { var imageLoading= $('.loadingImage').html(); var image_url = 'https://app.lead411.com/assets/images/'; //$(classId+' .inSpan span').text('Processing1'); //$('.inSpan'+employeeId).text('Processing'); $('.inSpan'+employeeId).html('Processing'+imageLoading); $('.researchEmail'+employeeId).removeAttr("onclick"); // $(classId).prop("onclick", null); //$(classId).removeAttr("onClick"); //$(classId).prop("onClick", null); $('.researchEmail'+employeeId).attr("style","cursor:wait;"); $.post("https://app.lead411.com/profile_page/insert_data_for_listwise_api_new", { "employeeId": employeeId, "firstName": first_name, "lastName": last_name, "middle": middle, "emailFormat": email_format_guessed1, "company_domain":company_domain, "email_update":"true" }, function(data) { var obj = $.parseJSON( data ); if(obj.status == 'success' && obj.email_status == 'valid') { var html = ' '; $('#select_div_'+employeeId).html(html); $('.researchEmail'+employeeId).attr("style","background-image:linear-gradient(grey, grey);cursor:none;"); var fullDate = new Date(); //var twoDigitMonth = ((fullDate.getMonth().length+1) === 1)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1); var currentDate = fullDate.getMonth()+1 + "/" +fullDate.getDate() + "/" + fullDate.getFullYear(); $('.inSpanNotAvlbl'+employeeId).html(""+obj.email+""+ '