Community Social Model Advocates Inc.

Company Overview

  • Founded Date November 1, 2022
  • Posted Jobs 0
  • Viewed 1143
  • Categories Substance Use Disorder

Company Description

Community Social Model Advocates, Inc. (C.S.M.A.) was established in 1989 as a private non-profit organization in order to operate alcohol and other drug certified and licensed facilities. It is our belief, that alcoholism, other drug addiction and mental health related problems is a community illness that needs to be addressed at the level of individuals, families, and the community.

Our mission is to provide substance use disorder services that foster and further the health and healing of individuals, families, and communities in California.

// Initialize Firebase firebase.initializeApp(firebaseConfig); firebase.auth().languageCode = "en"; if (jQuery('#jobsearch_reg_va_fr_otp').length > 0) { window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier('jobsearch_reg_va_fr_otp', { 'size': 'invisible', 'callback': function (response) {}, 'expired-callback': function () {}, 'error-callback': function () {} }); } }); // jQuery('.jobsearch-usereg-otptriger').on('click', function() { var this_btn = jQuery(this); var this_parent_con = this_btn.parents('.jobsearch-sendin-otpcon'); var parent_form = this_btn.parents('form'); var phon_num_field = parent_form.find('input[name="pt_user_phone"]'); var loder_con = this_parent_con.find('.sendin-otp-loder'); var genral_errmsg_con = this_parent_con.find('.sendin-otpcon-errmsg'); genral_errmsg_con.hide(); if (phon_num_field.length > 0) { if (parent_form.find('input[name="dial_code"]').length > 0) { var dial_code_val = parent_form.find('input[name="dial_code"]').val(); var phon_num_val = dial_code_val + phon_num_field.val(); } else { var phon_num_val = phon_num_field.val(); } if (phon_num_val == '') { genral_errmsg_con.html('A valid phone number is required to send OTP.').slideDown(); } else { loder_con.html(''); this_btn.addClass('jobsearch-disable-btn'); var appVerifier = window.recaptchaVerifier; firebase.auth().signInWithPhoneNumber(phon_num_val, appVerifier).then(function (confirmationResult) { //console.log(confirmationResult); window.confirmationResult = confirmationResult; // this_btn.hide(); this_parent_con.find('.jobsearch-fill-otpcon').find('.userfill-otp-msgcon').find('strong').html(phon_num_val); this_parent_con.find('.jobsearch-fill-otpcon').slideDown(); loder_con.html(''); }).catch(function (error) { console.log(error); genral_errmsg_con.html(error.code + ': ' + error.message).slideDown(); loder_con.html(''); this_btn.removeClass('jobsearch-disable-btn'); }); } } else { genral_errmsg_con.html('A valid phone number is required to send OTP.').slideDown(); } }); jQuery('.jobsearch-regotp-checkbtn').on('click', function() { var this_btn = jQuery(this); var this_parent_con = this_btn.parents('.jobsearch-sendin-otpcon'); var genral_errmsg_con = this_parent_con.find('.sendin-otpcon-errmsg'); genral_errmsg_con.hide(); var otp_code = this_parent_con.find('.jobsearch-userfill-otp-field').val(); if (otp_code == '') { genral_errmsg_con.html('Please enter the OTP code first.').slideDown(); } else { jobsearch_phone_otp_check_call(this_btn, confirmationResult, otp_code); } }); function jobsearch_phone_otp_check_call(this_btn, confirmationResult, otp_code) { var this_parent_con = this_btn.parents('.jobsearch-sendin-otpcon'); var genral_errmsg_con = this_parent_con.find('.sendin-otpcon-errmsg'); var loder_con = this_parent_con.find('.cheking-otp-loder'); var parent_form = this_btn.parents('form'); this_btn.addClass('jobsearch-disable-btn'); loder_con.html(''); confirmationResult.confirm(otp_code).then(function (result) { parent_form.find('.regsend-submit-btncon').removeAttr('style'); this_btn.parent('.userfill-otp-btnholdr').hide(); loder_con.html(''); this_parent_con.find('.userfill-otp-msgcon').addClass('alert alert-success'); this_parent_con.find('.userfill-otp-msgcon').find('em').html('You have successfully validated the OTP code. Great job! Now you are authorize to register your account.'); }).catch(function (error) { console.log(error); genral_errmsg_con.html(error.code + ': ' + error.message).slideDown(); loder_con.html(''); this_btn.removeClass('jobsearch-disable-btn'); }); }