1 line
37 KiB
JavaScript
1 line
37 KiB
JavaScript
|
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["hr-recruitment-RecruitmentPortalConfigViewController"],{1183:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"RecruitmentPortalConfigViewController\": () => (/* binding */ RecruitmentPortalConfigViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass RecruitmentPortalConfigViewController extends BaseViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tcompany_api: null,\n\t\t\tjob_applicant_fields_array: null,\n\t\t\tjob_applicant_background_fields_array: null,\n\t\t\tjob_applicant_availability_fields_array: null,\n\t\t\tjob_applicant_employment_history_fields_array: null,\n\t\t\tjob_applicant_reference_fields_array: null,\n\t\t\tjob_applicant_location_fields_array: null,\n\t\t\tjob_applicant_skill_fields_array: null,\n\t\t\tjob_applicant_education_fields_array: null,\n\t\t\tjob_applicant_membership_fields_array: null,\n\t\t\tjob_applicant_license_fields_array: null,\n\t\t\tjob_applicant_language_fields_array: null,\n\t\t\tjob_applicant_add_qualification_array: null\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\t\tthis.permission_id = 'job_applicant';\n\t\tthis.viewId = 'RecruitmentPortalConfig';\n\t\tthis.script_name = 'RecruitmentPortalConfigView';\n\t\tthis.table_name_key = 'recruitment_portal_config';\n\t\tthis.context_menu_name = $.i18n._( 'Portal Setting' );\n\t\tthis.api = TTAPI.APIRecruitmentPortalConfig;\n\t\tthis.company_api = TTAPI.APICompany;\n\n\t\tthis.render();\n\n\t\tthis.buildContextMenu();\n\n\t\tthis.initData();\n\t}\n\n\trender() {\n\t\tsuper.render();\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\tvar context_menu_model = {\n\t\t\texclude: ['default'],\n\t\t\tinclude: [\n\t\t\t\t'save',\n\t\t\t\t'cancel',\n\t\t\t\t'export_excel'\n\t\t\t]\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n\tinitOptions( callBack ) {\n\n\t\tvar options = [\n\t\t\t{ option_name: 'job_applicant_fields', field_name: 'job_applicant_fields', api: this.api },\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_background_fields',\n\t\t\t\tfield_name: 'job_applicant_background_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_availability_fields',\n\t\t\t\tfield_name: 'job_applicant_availability_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_employment_history_fields',\n\t\t\t\tfield_name: 'job_applicant_employment_history_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_reference_fields',\n\t\t\t\tfield_name: 'job_applicant_reference_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_location_fields',\n\t\t\t\tfield_name: 'job_applicant_location_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{ option_name: 'job_applicant_skill_fields', field_name: 'job_applicant_skill_fields', api: this.api },\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_education_fields',\n\t\t\t\tfield_name: 'job_applicant_education_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_membership_fields',\n\t\t\t\tfield_name: 'job_applicant_membership_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{ option_name: 'job_applicant_license_fields', field_name: 'job_applicant_license_fields', api: this.api },\n\t\t\t{\n\t\t\t\toption_name: 'job_applicant_language_fields',\n\t\t\t\tfield_name: 'job_applicant_language_fields',\n\t\t\t\tapi: this.api\n\t\t\t},\n\t\t\t{ option_name: 'job_applicant_add_qualification', field_name: 'enable_add_qualification', api: this.api }\n\t\t];\n\n\t\tthis.initDropDownOptions( options, function( result ) {\n\t\t\tif ( callBack ) {\n\t\t\t\tcallBack( result ); // First to initialize drop down options, and
|