var getcalendaractive = '1';
                    if (2 > 1) {
                        var set_new_consular_id = '3';
                        var set_new_exit_office_id = $('.office').val();
                        var set_new_service_type_id = $('.officetype').val();
                        var set_new_calendar_type = $('.setnewcalendarstatus').val();


                        if (($('.setnewcalendarstatus').val() == "1" || $('.setnewcalendarstatus').val() == "2" || $('.setnewcalendarstatus').val() == "3") && (getcalendaractive == "1")) {
                            $.ajax({
                                url: "https://ir-appointment.visametric.com/ir/appointment-form/personal/getdate",
                                type: "POST",
                                async: false,
                                data: {
                                    consularid: set_new_consular_id,
                                    exitid: set_new_exit_office_id,
                                    servicetypeid: set_new_service_type_id,
                                    calendarType: set_new_calendar_type,
                                    totalperson: personCount,
                                    mailConfirmCode: $('#mailConfirmCodeControl').val()
                                },
                                success: function (getvaliddates) {

                                    var enableDays = getvaliddates;
                                    $("#datepicker").datepicker({
                                        maxViewMode: 2,
                                        weekStart: 1,
                                        beforeShowDay: function (date) {
                                            if (enableDays.indexOf(formatDate(date)) < 0)
                                                return {
                                                    enabled: false
                                                }
                                            else
                                                return {
                                                    enabled: true
                                                }
                                        },
                                        startDate: "+1d",
                                        endDate: "+2m",
                                        todayHighlight: true,
                                        format: "dd-mm-yyyy",
                                        clearBtn: true,
                                        autoclose: true
                                    });

                                },
                                error: function (jqXHR, textStatus, errorThrown) {
                                    // console.log(textStatus, errorThrown);
                                }
                            });

                        }
                        var get_office_calendar_status = ($('.setnewcalendarstatus').val());

                        if ((get_office_calendar_status == "1" || get_office_calendar_status == "2" || get_office_calendar_status == "3") && getcalendaractive == "1") {
                            $('.calendar_office_open').show();
                            $('.calendar_office_close').hide();
                        } else {
                            $('.calendar_office_open').hide();
                            $('.calendar_office_close').show();
                            $('.setcalendarinfo').hide();
                        }


                        var set_app_country = '3';
                        var set_app_city = $(".city option:selected").html();
                        var set_app_office = $(".office option:selected").html();
                        var set_app_service_type = $(".officetype option:selected").html();
                        var set_app_person_count = $(".totalPerson option:selected").html();

                        if (set_app_country == "1") {
                            set_app_country = "National-Student";
                        } else if (set_app_country == "2") {
                            set_app_country = "Schengen";
                        } else if (set_app_country == "3") {
                            set_app_country = "Legalization";
                        } else if (set_app_country == "4") {
                            set_app_country = "National-Working";
                        }

                        $(".set_app_country").html("<b>Ù†ÙˆØ¹ Ø¯Ø±Ø®ÙˆØ§Ø³Øª:</b> " + set_app_country + '');
                        $(".set_app_city").html("<b>Ø´Ù‡Ø± Ù…Ø­Ù„ Ø²Ù†Ø¯Ú¯ÛŒ:</b> " + set_app_city + '');
                        $(".set_app_office").html("<b>Ù…Ø±Ú©Ø² Ø¯Ø±ÛŒØ§Ù�Øª Ù…Ø¯Ø§Ø±Ú©:</b> " + set_app_office + '');
                        $(".set_app_service_type").html("<b>Ù†ÙˆØ¹ Ø®Ø¯Ù…Ø§Øª:</b> " + set_app_service_type + '');
                        $(".set_app_person_count").html("<b>ØªØ¹Ø¯Ø§Ø¯ Ù…ØªÙ‚Ø§Ø¶ÛŒØ§Ù†:</b> " + set_app_person_count + '');

                        $(".set_app_date").html("<b>ØªØ§Ø±ÛŒØ®:</b>");
                        $(".set_app_time").html("<b>Ø²Ù…Ø§Ù†:</b>");

                        var country_id_service = '3';
                        var office_id_service = $('.office').val();
                        var service_type_id_service = $('.officetype').val();

                        $.ajax({
                            url: "https://ir-appointment.visametric.com/ir/appointment-form/personal/getservices",
                            type: "POST",
                            async: false,
                            data: {
                                country_id: country_id_service,
                                service_type_id: service_type_id_service,
                                office_id: office_id_service,
                                languageID: '1'
                            },
                            success: function (response) {
                                if (response) {
                                    $('.getajaxservice').html(response);
                                }

                            },
                            error: function (jqXHR, textStatus, errorThrown) {
                                // console.log(textStatus, errorThrown);
                            }
                        });
                        passiveTab('appCalendarLi', 'appCalendar');
                    }

function passiveTab(valLi, valTab) {
                $('.appCountLi').removeClass('active');
                $('.appPersonalInfoLi').removeClass('active');
                $('.appServicesLi').removeClass('active');
                $('.appPreviewLi').removeClass('active');
                $('.appCalendarLi').removeClass('active');
                $('.appCreditCardLi').removeClass('active');

                $('#appCount').removeClass('active in');
                $('#appPersonalInfo').removeClass('active in');
                $('#appServices').removeClass('active in');
                $('#appPreview').removeClass('active in');
                $('#appCalendar').removeClass('active in');
                $('#appCreditCard').removeClass('active in');

                $('.' + valLi + '').addClass('active');
                $('#' + valTab + '').addClass('active in');.    Write me a shortened code of this  text


                window.scrollTo(0, 0);
            }