angular.module("c8y.deviceTitle",[]).config(["c8yTitleProvider",function(t){function i(e){return{title:e}}_.forEach(["/device/:deviceId","/service/:deviceId"],function(e){t.addTitle(e,{data:["$routeParams","c8yBase","c8yDevices",function(e,t,c){e=e.deviceId;return e?c.detailCached(e).then(t.getResData).then(c.properName).then(i):{}}]})})}]);