angular.module("c8y.core").config(["$provide",function(e){e.decorator("$q",["$delegate",function(n){function l(e){return _.reduce(e,function(e,n,r){return e[r]=void 0,e},{})}return n.some=function(e,r){var o,t=n.defer(),i=0,c=0,u=_.size(e),f=_.isArray(e)?(o=[],[]):(o=l(e),l(e));return 0===r?t.resolve(_.clone(o)):_.forEach(e,function(e,n){e.then(function(e){i++,o[n]=e,t.notify({key:n,result:e}),i===r&&t.resolve(_.clone(o))},function(e){c++,f[n]=e,t.notify({key:n,reason:e}),c===u&&t.reject(_.clone(f))})}),t.promise},n.any=function(e){return n.some(e,1).then(function(e){return _.filter(e,_.identity)[0]})},n}])}]);