(()=>{function e(e,t,n){var a=e.url("service/actility");return{deprovisionDevice:function(e,c){var i=[],r="".concat(a,"/deprovision/");c.cascade&&0<e.childDevices.references.length&&_.forEach(e.childDevices.references,function(e){e=t.put(r+e.managedObject.id);i.push(e)});c=t.put(r+e.id);return i.push(c),n.all(i)}}}e.$inject=["c8yBase","$http","$q"],angular.module("c8y.core").factory("c8yActility",e)})();