(()=>{function e(i,a){return{require:"ngModel",link:function(e,n,t,r){r.$asyncValidators.c8yUniqueExternalId=function(e,n){return n={type:t.c8yValidateUniqueExternalId,externalId:n},a.getExternalId(n,{silentError:!0}).then(function(){return i.reject("External ID already exists.")},function(){return!0})}}}}e.$inject=["$q","c8yIdentity"],angular.module("c8y.ui").directive("c8yValidateUniqueExternalId",e)})();