angular.module("c8y.qrCode").factory("qrCodeTemplate",["$cacheFactory","$http","c8yBase","c8yInventory",function(e,t,r,a){var n=e("QrCodeTemplatesCache");return{qrCodeTypes:{ROUTE:"c8y_RouteQrCodeTemplate",DEVICE:"c8y_DeviceQrCodeTemplate"},getTemplate:function(e){var t;return n.get(e)||(t=a.list({type:e,pageSize:1}).then(function(e){return 0<e.length?e[0].template:null}),n.put(e,t)),n.get(e)}}}]);