YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/OSSEmployees/resources/Detail.min.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";Vtiger_Detail_Js("OSSEmployees_Detail_Js",{employeeHierarchyResponseCache:{},triggerEmployeeHierarchy:function triggerEmployeeHierarchy(HierarchyUrl){OSSEmployees_Detail_Js.getEmployeeHierarchyResponseData(HierarchyUrl).done(function(data){app.showModalWindow(data);});},getEmployeeHierarchyResponseData:function getEmployeeHierarchyResponseData(params){var aDeferred=jQuery.Deferred();return jQuery.isEmptyObject(OSSEmployees_Detail_Js.employeeHierarchyResponseCache)?AppConnector.request(params).done(function(data){OSSEmployees_Detail_Js.employeeHierarchyResponseCache=data,aDeferred.resolve(OSSEmployees_Detail_Js.employeeHierarchyResponseCache);}).fail(function(textStatus,errorThrown){aDeferred.reject(textStatus,errorThrown);}):aDeferred.resolve(OSSEmployees_Detail_Js.employeeHierarchyResponseCache),aDeferred.promise()}},{registerEvents:function registerEvents(){this._super();}});
//# sourceMappingURL=Detail.min.js.map