(()=>{function e(r,t){var n="identity",c={headers:t.contentHeaders("externalId")};return{createIdentity:function(e,t,n){e=o(e),n=_.assign(_.cloneDeep(c),n);return r.post(e,t,n)},deleteIdentity:function(e){e=a(e);return r.delete(e)},listExternalIds:function(e){e=o(e);return r.get(e).then(function(e){return e.data.externalIds})},getExternalId:function(e,t){e=a(e);return r.get(e,t)}};function o(e){return"".concat(t.url(n),"/globalIds/").concat(e.id||e,"/externalIds")}function a(e){return"".concat(t.url(n),"/externalIds/").concat(encodeURIComponent(e.type),"/").concat(encodeURIComponent(e.externalId))}}e.$inject=["$http","c8yBase"],angular.module("c8y.core").factory("c8yIdentity",e)})();