(()=>{function e(n,t,r,e){var c=r.dataFilePath("trackers/trackers.json"),a=null,o={category:"trackers",key:"supported.models"},u=null;function i(){var e;return a?t.when(a):((e=window.c8y&&window.c8y.collections&&window.c8y.collections.trackers)&&t.when(_.values(e))||n.get(c).then(r.getResData)).then(l).then(function(e){return a=e})}function l(r){return e.getSystemOptionValue(o,u).then(function(e){var t=e?[]:r;return _.forOwn(e,function(e,n){n=_.find(r,{name:n});t.push(_.merge(n,e))}),t})}return{list:i,modelByDevice:function(e){var n=e&&e.c8y_Hardware&&e.c8y_Hardware.model||e;return i().then(function(e){return _.find(e,{name:n})})}}}e.$inject=["$http","$q","c8yBase","c8ySettings"],angular.module("c8y.trackerModels").factory("trackerModelsSvc",e)})();