diff --git a/core/admin/dashboard/index.php b/core/admin/dashboard/index.php index 76cc8e34..e1ff48d3 100644 --- a/core/admin/dashboard/index.php +++ b/core/admin/dashboard/index.php @@ -11,7 +11,6 @@ include APP_BASE_PATH.'header.php'; include APP_BASE_PATH.'modulejslibs.inc.php'; ?>
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=(a=(a=(a=(a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_","")).replace("_download_",'
')).replace(/_id_/g,e)).replace(/_status_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"downloadTemplate",value:function(e){var t={t:this.table,sa:"downloadTemplate",mod:"admin=data"};t.req=JSON.stringify({id:e});var a=modJs.getCustomActionUrl("ca",t);window.open(a,"_blank")}}]),a}(i.default),m=function(e){c(a,e);var t=d(a);function a(){return o(this,a),t.apply(this,arguments)}return s(a,[{key:"getDataMapping",value:function(){return["id","name","data_import_definition","status"]}},{key:"getHeaders",value:function(){return[{sTitle:"ID",bVisible:!1},{sTitle:"Name"},{sTitle:"Data Import Definition"},{sTitle:"Status"}]}},{key:"getFormFields",value:function(){return[["id",{label:"ID",type:"hidden"}],["name",{label:"Name",type:"text",validation:""}],["data_import_definition",{label:"Data Import Definitions",type:"select","remote-source":["DataImport","id","name"]}],["file",{label:"File to Import",type:"fileupload",validation:"",filetypes:"csv,txt"}],["details",{label:"Last Export Result",type:"textarea",validation:"none"}]]}},{key:"getActionButtonsHtml",value:function(e,t){var a='
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_",""),a=(a=(a=(a="Not Processed"===t[3]?a.replace("_process_",'
'):a.replace("_process_","")).replace(/_id_/g,e)).replace(/_status_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"process",value:function(e){var t={id:e},a=JSON.stringify(t),l=[];l.callBackData=[],l.callBackSuccess="processSuccessCallBack",l.callBackFail="processFailCallBack",this.customAction("processDataFile","admin=data",a,l)}},{key:"processSuccessCallBack",value:function(e){this.showMessage("Success","File imported successfully."),this.get([])}},{key:"processFailCallBack",value:function(e){this.showMessage("Error","File import unsuccessful. Result:".concat(e))}}]),a}(i.default);t.exports={DataImportAdapter:p,DataImportFileAdapter:m}},{"../../../api/AdapterBase":4}],3:[function(e,t,a){"use strict";function l(e,t){for(var a=0;a
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=(a=(a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_","")).replace(/_id_/g,e)).replace(/_BASE_/g,this.baseUrl)}},{key:"generateRandom",value:function(e){for(var t=new Date,a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l="",i=e;i>0;--i)l+=a[Math.round(Math.random()*(a.length-1))];return l+t.getTime()}},{key:"checkFileType",value:function(e,t){var a=document.getElementById(e),l="";return a.value.lastIndexOf(".")>0&&(l=a.value.substring(a.value.lastIndexOf(".")+1,a.value.length)),l=l.toLowerCase(),!(t.split(",").indexOf(l)<0&&(a.value="",this.showMessage("File Type Error","Selected file type is not supported"),this.clearFileElement(e),1))}},{key:"clearFileElement",value:function(e){var t=$("#".concat(e));t.replaceWith(t=t.val("").clone(!0))}},{key:"fixJSON",value:function(e){return"1"===this.noJSONRequests&&(e=window.btoa(e)),e}},{key:"getClientDate",value:function(e){var t=this.getClientGMTOffset();return e.addMinutes(60*t)}},{key:"getClientGMTOffset",value:function(){var e=new Date,t=new Date(e.getFullYear(),0,1,0,0,0,0),a=t.toGMTString();return(t-new Date(a.substring(0,a.lastIndexOf(" ")-1)))/36e5}},{key:"getHelpLink",value:function(){return null}},{key:"showLoader",value:function(){$("#iceloader").show()}},{key:"hideLoader",value:function(){$("#iceloader").hide()}},{key:"generateOptions",value:function(e){var t="";for(var a in e)t+=''.replace("__val__",a).replace("__text__",e[a]);return t}},{key:"isModuleInstalled",value:function(e,t){return void 0!==modulesInstalled&&null!==modulesInstalled&&1===modulesInstalled["".concat(e,"_").concat(t)]}},{key:"setCustomFields",value:function(e){for(var t,a,l=0;l
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=(a=(a=(a=(a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_","")).replace("_download_",'
')).replace(/_id_/g,e)).replace(/_status_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"downloadTemplate",value:function(e){var t={t:this.table,sa:"downloadTemplate",mod:"admin=data"};t.req=JSON.stringify({id:e});var a=modJs.getCustomActionUrl("ca",t);window.open(a,"_blank")}}]),a}(i.default),m=function(e){c(a,e);var t=d(a);function a(){return o(this,a),t.apply(this,arguments)}return s(a,[{key:"getDataMapping",value:function(){return["id","name","data_import_definition","status"]}},{key:"getHeaders",value:function(){return[{sTitle:"ID",bVisible:!1},{sTitle:"Name"},{sTitle:"Data Import Definition"},{sTitle:"Status"}]}},{key:"getFormFields",value:function(){return[["id",{label:"ID",type:"hidden"}],["name",{label:"Name",type:"text",validation:""}],["data_import_definition",{label:"Data Import Definitions",type:"select","remote-source":["DataImport","id","name"]}],["file",{label:"File to Import",type:"fileupload",validation:"",filetypes:"csv,txt"}],["details",{label:"Last Export Result",type:"textarea",validation:"none"}]]}},{key:"getActionButtonsHtml",value:function(e,t){var a='
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_",""),a=(a=(a=(a="Not Processed"===t[3]?a.replace("_process_",'
'):a.replace("_process_","")).replace(/_id_/g,e)).replace(/_status_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"process",value:function(e){var t={id:e},a=JSON.stringify(t),l=[];l.callBackData=[],l.callBackSuccess="processSuccessCallBack",l.callBackFail="processFailCallBack",this.customAction("processDataFile","admin=data",a,l)}},{key:"processSuccessCallBack",value:function(e){this.showMessage("Success","File imported successfully."),this.get([])}},{key:"processFailCallBack",value:function(e){this.showMessage("Error","File import unsuccessful. Result:".concat(e))}}]),a}(i.default);t.exports={DataImportAdapter:p,DataImportFileAdapter:m}},{"../../../api/AdapterBase":4}],3:[function(e,t,a){"use strict";function l(e,t){for(var a=0;a
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=(a=(a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_","")).replace(/_id_/g,e)).replace(/_BASE_/g,this.baseUrl)}},{key:"generateRandom",value:function(e){for(var t=new Date,a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l="",i=e;i>0;--i)l+=a[Math.round(Math.random()*(a.length-1))];return l+t.getTime()}},{key:"checkFileType",value:function(e,t){var a=document.getElementById(e),l="";return a.value.lastIndexOf(".")>0&&(l=a.value.substring(a.value.lastIndexOf(".")+1,a.value.length)),l=l.toLowerCase(),!(t.split(",").indexOf(l)<0&&(a.value="",this.showMessage("File Type Error","Selected file type is not supported"),this.clearFileElement(e),1))}},{key:"clearFileElement",value:function(e){var t=$("#".concat(e));t.replaceWith(t=t.val("").clone(!0))}},{key:"fixJSON",value:function(e){return"1"===this.noJSONRequests&&(e=window.btoa(e)),e}},{key:"getClientDate",value:function(e){var t=this.getClientGMTOffset();return e.addMinutes(60*t)}},{key:"getClientGMTOffset",value:function(){var e=new Date,t=new Date(e.getFullYear(),0,1,0,0,0,0),a=t.toGMTString();return(t-new Date(a.substring(0,a.lastIndexOf(" ")-1)))/36e5}},{key:"getHelpLink",value:function(){return null}},{key:"showLoader",value:function(){$("#iceloader").show()}},{key:"hideLoader",value:function(){$("#iceloader").hide()}},{key:"generateOptions",value:function(e){var t="";for(var a in e)t+=''.replace("__val__",a).replace("__text__",e[a]);return t}},{key:"isModuleInstalled",value:function(e,t){return void 0!==modulesInstalled&&null!==modulesInstalled&&1===modulesInstalled["".concat(e,"_").concat(t)]}},{key:"setCustomFields",value:function(e){for(var t,a,l=0;l').concat(nl2br(e[3]),"
Start: ').concat(l,'
Completed: ').concat(i,'
')+' Institute: '.concat(e[3],"
Granted On: ').concat(l,'
Valid Thru: ').concat(i,'
Institute: ').concat(e[3],"
Reading: ').concat(e[3],'
Speaking: ').concat(e[4],'
Writing: ').concat(e[5],'
Understanding: ').concat(e[6],"
Relationship: ').concat(e[3],'
Name: ').concat(e[2],"
Relationship: ').concat(e[3],'
Name: ').concat(e[2],'
Home Phone: ').concat(e[4],'
Mobile Phone: ').concat(e[6],"
').concat(nl2br(e[3]),'
Expire On: ').concat(l,"
';return a=(a=(a=a.replace(/_id_/g,e)).replace(/_attachment_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"isSubProfileTable",value:function(){return"Admin"!==this.user.user_level&&"Restricted Admin"!==this.user.user_level}}]),a}(l.default);t.exports={EmployeeAdapter:w,TerminatedEmployeeAdapter:E,ArchivedEmployeeAdapter:T,EmployeeSkillAdapter:D,EmployeeEducationAdapter:F,EmployeeCertificationAdapter:M,EmployeeLanguageAdapter:A,EmployeeDependentAdapter:C,EmergencyContactAdapter:J,EmployeeImmigrationAdapter:N,EmployeeSubSkillsAdapter:h,EmployeeSubEducationAdapter:y,EmployeeSubCertificationAdapter:b,EmployeeSubLanguageAdapter:v,EmployeeSubDependentAdapter:g,EmployeeSubEmergencyContactAdapter:_,EmployeeSubDocumentAdapter:k,EmployeeDocumentAdapter:B}},{"../../../api/AdapterBase":4,"../../../api/SubAdapterBase":7}],3:[function(e,t,a){"use strict";function l(e,t){for(var a=0;a
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=(a=(a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_","")).replace(/_id_/g,e)).replace(/_BASE_/g,this.baseUrl)}},{key:"generateRandom",value:function(e){for(var t=new Date,a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l="",i=e;i>0;--i)l+=a[Math.round(Math.random()*(a.length-1))];return l+t.getTime()}},{key:"checkFileType",value:function(e,t){var a=document.getElementById(e),l="";return a.value.lastIndexOf(".")>0&&(l=a.value.substring(a.value.lastIndexOf(".")+1,a.value.length)),l=l.toLowerCase(),!(t.split(",").indexOf(l)<0&&(a.value="",this.showMessage("File Type Error","Selected file type is not supported"),this.clearFileElement(e),1))}},{key:"clearFileElement",value:function(e){var t=$("#".concat(e));t.replaceWith(t=t.val("").clone(!0))}},{key:"fixJSON",value:function(e){return"1"===this.noJSONRequests&&(e=window.btoa(e)),e}},{key:"getClientDate",value:function(e){var t=this.getClientGMTOffset();return e.addMinutes(60*t)}},{key:"getClientGMTOffset",value:function(){var e=new Date,t=new Date(e.getFullYear(),0,1,0,0,0,0),a=t.toGMTString();return(t-new Date(a.substring(0,a.lastIndexOf(" ")-1)))/36e5}},{key:"getHelpLink",value:function(){return null}},{key:"showLoader",value:function(){$("#iceloader").show()}},{key:"hideLoader",value:function(){$("#iceloader").hide()}},{key:"generateOptions",value:function(e){var t="";for(var a in e)t+=''.replace("__val__",a).replace("__text__",e[a]);return t}},{key:"isModuleInstalled",value:function(e,t){return void 0!==modulesInstalled&&null!==modulesInstalled&&1===modulesInstalled["".concat(e,"_").concat(t)]}},{key:"setCustomFields",value:function(e){for(var t,a,l=0;l').concat(nl2br(e[3]),"
Start: ').concat(l,'
Completed: ').concat(i,'
')+' Institute: '.concat(e[3],"
Granted On: ').concat(l,'
Valid Thru: ').concat(i,'
Institute: ').concat(e[3],"
Reading: ').concat(e[3],'
Speaking: ').concat(e[4],'
Writing: ').concat(e[5],'
Understanding: ').concat(e[6],"
Relationship: ').concat(e[3],'
Name: ').concat(e[2],"
Relationship: ').concat(e[3],'
Name: ').concat(e[2],'
Home Phone: ').concat(e[4],'
Mobile Phone: ').concat(e[6],"
').concat(nl2br(e[3]),'
Expire On: ').concat(l,"
';return a=(a=(a=a.replace(/_id_/g,e)).replace(/_attachment_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"isSubProfileTable",value:function(){return"Admin"!==this.user.user_level&&"Restricted Admin"!==this.user.user_level}}]),a}(l.default);t.exports={EmployeeAdapter:w,TerminatedEmployeeAdapter:E,ArchivedEmployeeAdapter:T,EmployeeSkillAdapter:D,EmployeeEducationAdapter:F,EmployeeCertificationAdapter:M,EmployeeLanguageAdapter:A,EmployeeDependentAdapter:C,EmergencyContactAdapter:J,EmployeeImmigrationAdapter:N,EmployeeSubSkillsAdapter:h,EmployeeSubEducationAdapter:y,EmployeeSubCertificationAdapter:b,EmployeeSubLanguageAdapter:v,EmployeeSubDependentAdapter:g,EmployeeSubEmergencyContactAdapter:_,EmployeeSubDocumentAdapter:k,EmployeeDocumentAdapter:B}},{"../../../api/AdapterBase":4,"../../../api/SubAdapterBase":7}],3:[function(e,t,a){"use strict";function l(e,t){for(var a=0;a
'):a.replace("_clone_",""),a=this.showDelete?a.replace("_delete_",'
'):a.replace("_delete_",""),a=(a=(a=this.showEdit?a.replace("_edit_",'
'):a.replace("_edit_","")).replace(/_id_/g,e)).replace(/_BASE_/g,this.baseUrl)}},{key:"generateRandom",value:function(e){for(var t=new Date,a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l="",i=e;i>0;--i)l+=a[Math.round(Math.random()*(a.length-1))];return l+t.getTime()}},{key:"checkFileType",value:function(e,t){var a=document.getElementById(e),l="";return a.value.lastIndexOf(".")>0&&(l=a.value.substring(a.value.lastIndexOf(".")+1,a.value.length)),l=l.toLowerCase(),!(t.split(",").indexOf(l)<0&&(a.value="",this.showMessage("File Type Error","Selected file type is not supported"),this.clearFileElement(e),1))}},{key:"clearFileElement",value:function(e){var t=$("#".concat(e));t.replaceWith(t=t.val("").clone(!0))}},{key:"fixJSON",value:function(e){return"1"===this.noJSONRequests&&(e=window.btoa(e)),e}},{key:"getClientDate",value:function(e){var t=this.getClientGMTOffset();return e.addMinutes(60*t)}},{key:"getClientGMTOffset",value:function(){var e=new Date,t=new Date(e.getFullYear(),0,1,0,0,0,0),a=t.toGMTString();return(t-new Date(a.substring(0,a.lastIndexOf(" ")-1)))/36e5}},{key:"getHelpLink",value:function(){return null}},{key:"showLoader",value:function(){$("#iceloader").show()}},{key:"hideLoader",value:function(){$("#iceloader").hide()}},{key:"generateOptions",value:function(e){var t="";for(var a in e)t+=''.replace("__val__",a).replace("__text__",e[a]);return t}},{key:"isModuleInstalled",value:function(e,t){return void 0!==modulesInstalled&&null!==modulesInstalled&&1===modulesInstalled["".concat(e,"_").concat(t)]}},{key:"setCustomFields",value:function(e){for(var t,a,l=0;l
'):n.replace("_clone_",""),n=this.showDelete?n.replace("_delete_",'
'):n.replace("_delete_",""),n=(n=(n=(n=(n=this.showEdit?n.replace("_edit_",'
'):n.replace("_edit_","")).replace("_process_",'
')).replace(/_id_/g,e)).replace(/_status_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"get",value:function(e){$("#PayrollData").hide(),$("#PayrollForm").hide(),$("#PayrollDataButtons").hide(),$("#Payroll").show(),modJsList.tabPayrollData.setCurrentPayroll(null),u(m(n.prototype),"get",this).call(this,e)}},{key:"getHelpLink",value:function(){return"https://icehrm.gitbook.io/icehrm/payroll-and-expenses/payroll-management"}}]),n}(r.default),b=function(e){d(n,e);var t=h(n);function n(e,r,i,o){var a;return l(this,n),(a=t.call(this,e,r,i,o)).cellDataUpdates={},a.payrollId=null,a}return c(n,[{key:"validateCellValue",value:function(e,t,n){return modJs.addCellDataUpdate(e.data("colId"),e.data("rowId"),n),!0}},{key:"setCurrentPayroll",value:function(e){this.payrollId=e}},{key:"addAdditionalRequestData",value:function(e,t){return("updateData"===e||"updateAllData"===e||"getAllData"===e)&&(t.payrollId=this.payrollId),t}},{key:"modifyCSVHeader",value:function(e){return e.unshift(""),e}},{key:"getCSVData",value:function(){for(var e="",t=0;t


'):n.replace("_clone_",""),n=this.showDelete?n.replace("_delete_",'
'):n.replace("_delete_",""),n=(n=(n=this.showEdit?n.replace("_edit_",'
'):n.replace("_edit_","")).replace(/_id_/g,e)).replace(/_BASE_/g,this.baseUrl)}},{key:"generateRandom",value:function(e){for(var t=new Date,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="",i=e;i>0;--i)r+=n[Math.round(Math.random()*(n.length-1))];return r+t.getTime()}},{key:"checkFileType",value:function(e,t){var n=document.getElementById(e),r="";return n.value.lastIndexOf(".")>0&&(r=n.value.substring(n.value.lastIndexOf(".")+1,n.value.length)),r=r.toLowerCase(),!(t.split(",").indexOf(r)<0&&(n.value="",this.showMessage("File Type Error","Selected file type is not supported"),this.clearFileElement(e),1))}},{key:"clearFileElement",value:function(e){var t=$("#".concat(e));t.replaceWith(t=t.val("").clone(!0))}},{key:"fixJSON",value:function(e){return"1"===this.noJSONRequests&&(e=window.btoa(e)),e}},{key:"getClientDate",value:function(e){var t=this.getClientGMTOffset();return e.addMinutes(60*t)}},{key:"getClientGMTOffset",value:function(){var e=new Date,t=new Date(e.getFullYear(),0,1,0,0,0,0),n=t.toGMTString();return(t-new Date(n.substring(0,n.lastIndexOf(" ")-1)))/36e5}},{key:"getHelpLink",value:function(){return null}},{key:"showLoader",value:function(){$("#iceloader").show()}},{key:"hideLoader",value:function(){$("#iceloader").hide()}},{key:"generateOptions",value:function(e){var t="";for(var n in e)t+=''.replace("__val__",n).replace("__text__",e[n]);return t}},{key:"isModuleInstalled",value:function(e,t){return void 0!==modulesInstalled&&null!==modulesInstalled&&1===modulesInstalled["".concat(e,"_").concat(t)]}},{key:"setCustomFields",value:function(e){for(var t,n,r=0;r
'):n.replace("_clone_",""),n=this.showDelete?n.replace("_delete_",'
'):n.replace("_delete_",""),n=(n=(n=(n=(n=this.showEdit?n.replace("_edit_",'
'):n.replace("_edit_","")).replace("_process_",'
')).replace(/_id_/g,e)).replace(/_status_/g,t[6])).replace(/_BASE_/g,this.baseUrl)}},{key:"get",value:function(e){$("#PayrollData").hide(),$("#PayrollForm").hide(),$("#PayrollDataButtons").hide(),$("#Payroll").show(),modJsList.tabPayrollData.setCurrentPayroll(null),u(m(n.prototype),"get",this).call(this,e)}},{key:"getHelpLink",value:function(){return"https://icehrm.gitbook.io/icehrm/payroll-and-expenses/payroll-management"}}]),n}(r.default),b=function(e){d(n,e);var t=h(n);function n(e,r,i,o){var a;return l(this,n),(a=t.call(this,e,r,i,o)).cellDataUpdates={},a.payrollId=null,a}return c(n,[{key:"validateCellValue",value:function(e,t,n){return modJs.addCellDataUpdate(e.data("colId"),e.data("rowId"),n),!0}},{key:"setCurrentPayroll",value:function(e){this.payrollId=e}},{key:"addAdditionalRequestData",value:function(e,t){return("updateData"===e||"updateAllData"===e||"getAllData"===e)&&(t.payrollId=this.payrollId),t}},{key:"modifyCSVHeader",value:function(e){return e.unshift(""),e}},{key:"getCSVData",value:function(){for(var e="",t=0;t


'):n.replace("_clone_",""),n=this.showDelete?n.replace("_delete_",'
'):n.replace("_delete_",""),n=(n=(n=this.showEdit?n.replace("_edit_",'
'):n.replace("_edit_","")).replace(/_id_/g,e)).replace(/_BASE_/g,this.baseUrl)}},{key:"generateRandom",value:function(e){for(var t=new Date,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r="",i=e;i>0;--i)r+=n[Math.round(Math.random()*(n.length-1))];return r+t.getTime()}},{key:"checkFileType",value:function(e,t){var n=document.getElementById(e),r="";return n.value.lastIndexOf(".")>0&&(r=n.value.substring(n.value.lastIndexOf(".")+1,n.value.length)),r=r.toLowerCase(),!(t.split(",").indexOf(r)<0&&(n.value="",this.showMessage("File Type Error","Selected file type is not supported"),this.clearFileElement(e),1))}},{key:"clearFileElement",value:function(e){var t=$("#".concat(e));t.replaceWith(t=t.val("").clone(!0))}},{key:"fixJSON",value:function(e){return"1"===this.noJSONRequests&&(e=window.btoa(e)),e}},{key:"getClientDate",value:function(e){var t=this.getClientGMTOffset();return e.addMinutes(60*t)}},{key:"getClientGMTOffset",value:function(){var e=new Date,t=new Date(e.getFullYear(),0,1,0,0,0,0),n=t.toGMTString();return(t-new Date(n.substring(0,n.lastIndexOf(" ")-1)))/36e5}},{key:"getHelpLink",value:function(){return null}},{key:"showLoader",value:function(){$("#iceloader").show()}},{key:"hideLoader",value:function(){$("#iceloader").hide()}},{key:"generateOptions",value:function(e){var t="";for(var n in e)t+=''.replace("__val__",n).replace("__text__",e[n]);return t}},{key:"isModuleInstalled",value:function(e,t){return void 0!==modulesInstalled&&null!==modulesInstalled&&1===modulesInstalled["".concat(e,"_").concat(t)]}},{key:"setCustomFields",value:function(e){for(var t,n,r=0;r