VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/tech_preview/hr/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/tech_preview/hr/form_module_input_form_systems.js
form_module.primitiveTypeList = [
    "phone_type", "phone", "personal_document_type", "personal_document", "dependent_persons",
    "org", "employee", "position", "position_2", "language", "company",
    "marital_status_type", "sex_type",
    "email_type", "email", "reminder", "type_of_task", "task", "meeting",
    "holidays", "working_form", "shift_general", "shift_worktime", "shift_timekeeping", "worktime_checkins",
    "worktime_machines", "worktime_logs", "training_programs", "training_lecturer_type",
    "training_method", "training_status", "asset_category", "assets", "instruments_and_tools", "warehouses",
    "asset_handover_lines", "asset_handover", "asset_recall_lines", "asset_recall", "config_line",
    "allowance_policy_groups", "allowance_policies", "instruments_and_tools_handover", "instruments_and_tools_handover_lines",
    "training_program_groups", "insurance_policies", "leave_policies", "leave_policy_groups",
    "insurance_policy_groups", "benefit_policy_groups", "benefit_policies", "bonus_policy_groups", "punishment_policy_groups",
    "tax_policy_groups", "advance_payment_policy_groups", "late_early_checkin_policy_groups", "bonus_policies", "punishment_policies",
    "advance_payment_policies", "late_early_checkin_policies", "tax_rate_lines", "tax_policies", "salary_policy_groups", "trade_union_policy_groups",
    "other_liability_policy_groups", "salary_policies", "trade_union_policies", "other_liability_policies", "insurance_policies_applied_to_employee",
    "employment_contract_types", "social_network", "education_history", "skill", "work_history", "bank_account",
    "nations", "cities", "ethnics", "religions", "bonus_policies_applied_to_employee", "punishment_policies_applied_to_employee",
    "benefit_policies_applied_to_employee", "allowance_policies_applied_to_employee", "tax_policies_applied_to_employee", "trade_union_policies_applied_to_employee",
    "other_liability_policies_applied_to_employee", "leave_policies_applied_to_employee", "late_early_checkin_policies_applied_to_employee",
    "advance_payment_policies_applied_to_employee", "salary_decisions_applied_to_employee", "salary_policies_applied_to_employee", "employment_contracts",
    "bonus_list", "bonus_list_details", "training_lecturer", "people", "training_participant", "request_advance_payment", "examination_session",
    "examination_session_status", "examination_participant_status", "examination_participant", "examination_lecturer",
    "request_leave", "shift_schedule", "shift_schedule_ot", "punishment_list", "day_off_lines", "request_late_early_checkin",
    "allowance_list", "benefit_list", "other_liability_list", "salary_adjustment_list", "asset_category", "instruments_and_tools_category",
    "projects", "project_applied_to_employee", "test", "document_types", "document_groups", "document_templates", "documents",
    "template_groups", "task_templates", "meeting_templates", "email_templates", "onboarding", "geographical_positions", "document_properties", "test_image",
    "offboarding_types", "offboarding_reasons", "partner_class", "partner", "contact", "work_flow_groups", "work_flows", "objects", "type_of_activity", "lesson_categories",
    "overtime_policy_groups", "overtime_policies", "type_of_overtime_request", "overtime_request", "overtime_policies_applied_to_employee", "punishment_list_details",
    "allowance_list_details", "benefit_list_details", "other_liability_list_details", "salary_adjustment_list_details", "onboarding_status", "offboarding_status", "offboarding",
    "leave_assessment", "scorecard_report_line", "scorecard_report", "approval_resignation", "workdays_accumulation_method", "block_rounding_method"
];

form_module.requireFormType = [
    "structure", "array", "treetable", "phone", "personal_document", "dependent_persons", "org", "employee", "position", "position_2", "company",
    "email", "task", "meeting", "instruments_and_tools_handover", "instruments_and_tools_handover_lines",
    "holidays", "shift_general", "shift_worktime", "shift_timekeeping", "worktime_checkins", "worktime_machines", "worktime_logs", "training_programs",
    "assets", "instruments_and_tools", "warehouses", "asset_handover", "asset_handover_lines",
    "asset_recall_lines", "asset_recall", "config_line", "allowance_policy_groups", "allowance_policies",
    "training_program_groups", "insurance_policies", "leave_policies", "leave_policy_groups",
    "insurance_policy_groups", "benefit_policy_groups", "benefit_policies", "bonus_policy_groups", "punishment_policy_groups",
    "tax_policy_groups", "advance_payment_policy_groups", "late_early_checkin_policy_groups", "bonus_policies", "punishment_policies",
    "advance_payment_policies", "late_early_checkin_policies", "tax_rate_lines", "tax_policies", "salary_policy_groups", "trade_union_policy_groups",
    "other_liability_policy_groups", "salary_policies", "trade_union_policies", "other_liability_policies", "insurance_policies_applied_to_employee",
    "employment_contract_types", "social_network", "education_history", "skill", "work_history", "bank_account",
    "nations", "cities", "ethnics", "religions", "bonus_policies_applied_to_employee", "punishment_policies_applied_to_employee",
    "benefit_policies_applied_to_employee", "allowance_policies_applied_to_employee", "tax_policies_applied_to_employee", "trade_union_policies_applied_to_employee",
    "other_liability_policies_applied_to_employee", "leave_policies_applied_to_employee",
    "late_early_checkin_policies_applied_to_employee", "advance_payment_policies_applied_to_employee",
    "salary_decisions_applied_to_employee", "salary_policies_applied_to_employee", "employment_contracts",
    "bonus_list", "bonus_list_details", "training_lecturer", "people", "training_participant",
    "request_advance_payment", "examination_session", "examination_participant", "examination_lecturer", "request_leave",
    "shift_schedule", "shift_schedule_ot", "punishment_list", "day_off_lines", "request_late_early_checkin", "allowance_list", "benefit_list",
    "other_liability_list", "salary_adjustment_list", "asset_category", "instruments_and_tools_category", "projects", "project_applied_to_employee", "test",
    "document_types", "document_groups", "document_templates", "documents",
    "template_groups", "task_templates", "meeting_templates", "email_templates", "onboarding", "geographical_positions", "document_properties", "test_image",
    "offboarding_types", "offboarding_reasons", "partner_class", "partner", "contact", "work_flow_groups", "work_flows", "objects", "lesson_categories",
    "overtime_policy_groups", "overtime_policies", "overtime_request", "overtime_policies_applied_to_employee", "punishment_list_details", "allowance_list_details",
    "benefit_list_details", "other_liability_list_details"
];

form_module.defaultInputFormForPrimitiveType = function() {
    var resolveFunc = function (content, rs) {
        content = EncodingClass.string.duplicate(content);
        content.forEach(function(elt){
            if (elt.name.indexOf(LanguageModule.text("txt_system")) == -1) elt.name = elt.name + " (" + LanguageModule.text("txt_system") + ")"
            elt.id = elt.formid;
        });
        rs(content);
    };
    var waitFunc = function (resolveFunc) {
        return function (rs, waitFunc, varname) {
            if (window[varname] == "ready") {
                resolveFunc(cache_forms_data.input_form_system_load, rs);
            }
            else {
                setTimeout(function (rs, waitFunc, varname) {
                    return function () {
                        waitFunc(rs, waitFunc, varname);
                    }
                } (rs, waitFunc, varname), 10);
            }
        }
    } (resolveFunc);
    switch (cache_forms_status) {
        case "none":
            return new Promise(function (resolveFunc) {
                return function(rs, rj) {
                    FormClass.api_call({
                        url: "database_load.php",
                        params: [
                            {name: "task", value: "input_form_system_load"}
                        ],
                        func: function(success, message) {
                            if (success) {
                                if (message.substr(0, 2) == "ok"){
                                    var content = EncodingClass.string.toVariable(message.substr(2));
                                    resolveFunc(content, rs);
                                }
                                else {
                                    console.log(message);
                                    rj(message)
                                }
                            }
                            else {
                                console.log(message);
                                rj(message)
                            }
                        }
                    })
                }
            } (resolveFunc));
        case "ready":
            return new Promise(function (resolveFunc, content) {
                return function(resolve, reject) {
                    resolveFunc(content, resolve);
                }
            } (resolveFunc, cache_forms_data.input_form_system_load));
        case "pending":
        default:
            return new Promise(function (waitFunc, varname) {
                return function(resolve, reject) {
                    waitFunc(resolve, waitFunc, varname);
                }
            } (waitFunc, "cache_forms_status"));
    }
};

VaKeR 2022