From 6a08b6652116cd1c68fd4b75d4bed692b4212120 Mon Sep 17 00:00:00 2001 From: Mateus Miranda Date: Thu, 9 Feb 2017 12:05:09 -0200 Subject: [PATCH] 1.0.2 --- dist/security-embedded.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/security-embedded.min.js b/dist/security-embedded.min.js index 7da4a6b..897c9d0 100644 --- a/dist/security-embedded.min.js +++ b/dist/security-embedded.min.js @@ -1,2 +1,2 @@ -!function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="/",n(0)}([function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(5),a=(o(r),t(3)),i=o(a),s=t(4),l=o(s),d=t(6),c=o(d),u=t(7),p=o(u),g=t(2),m=o(g),f="gumga.securityEmbedded",b=angular.module(f,["ngSanitize","ui.bootstrap",m.default]);b.directive("bindHtmlCompile",i.default),b.directive("securityEmbeddedUser",c.default),b.directive("securityEmbedded",l.default),b.service("SecurityEmbeddedUserService",p.default),b.run(["$window",function(e){e.securityEmbedded={}}]),n.default=b.name},function(e,n){!function(){"use strict";angular.module("ui.tree",[]).constant("treeConfig",{treeClass:"angular-ui-tree",emptyTreeClass:"angular-ui-tree-empty",hiddenClass:"angular-ui-tree-hidden",nodesClass:"angular-ui-tree-nodes",nodeClass:"angular-ui-tree-node",handleClass:"angular-ui-tree-handle",placeholderClass:"angular-ui-tree-placeholder",dragClass:"angular-ui-tree-drag",dragThreshold:3,defaultCollapsed:!1,appendChildOnHover:!0})}(),function(){"use strict";angular.module("ui.tree").controller("TreeHandleController",["$scope","$element",function(e,n){this.scope=e,e.$element=n,e.$nodeScope=null,e.$type="uiTreeHandle"}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element",function(e,n){function t(e){if(!e)return 0;var n,o,r,a=0,i=e.childNodes();if(!i||0===i.length)return 0;for(r=i.length-1;r>=0;r--)n=i[r],o=1+t(n),a=Math.max(a,o);return a}this.scope=e,e.$element=n,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$allowNodeDrop=!1,e.collapsed=!1,e.expandOnHover=!1,e.init=function(t){var o=t[0];e.$treeScope=t[1]?t[1].scope:null,e.$parentNodeScope=o.scope.$nodeScope,e.$modelValue=o.scope.$modelValue[e.$index],e.$parentNodesScope=o.scope,o.scope.initSubNode(e),n.on("$destroy",function(){o.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(n){return e.$parentNodesScope==n.$parentNodesScope},e.isChild=function(n){var t=e.childNodes();return t&&t.indexOf(n)>-1},e.prev=function(){var n=e.index();return n>0?e.siblings()[n-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(n,t){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(n,t)},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed,e.$treeScope.$callbacks.toggle(e.collapsed,e)},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var n=e.$parentNodeScope;return n?n.depth()+1:1},e.maxSubDepth=function(){return e.$childNodesScope?t(e.$childNodesScope):0}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodesController",["$scope","$element",function(e,n){this.scope=e,e.$element=n,e.$modelValue=null,e.$nodeScope=null,e.$treeScope=null,e.$type="uiTreeNodes",e.$nodesMap={},e.nodropEnabled=!1,e.maxDepth=0,e.cloneEnabled=!1,e.initSubNode=function(n){return n.$modelValue?void(e.$nodesMap[n.$modelValue.$$hashKey]=n):null},e.destroySubNode=function(n){return n.$modelValue?void(e.$nodesMap[n.$modelValue.$$hashKey]=null):null},e.accept=function(n,t){return e.$treeScope.$callbacks.accept(n,e,t)},e.beforeDrag=function(n){return e.$treeScope.$callbacks.beforeDrag(n)},e.isParent=function(n){return n.$parentNodesScope==e},e.hasChild=function(){return e.$modelValue.length>0},e.safeApply=function(e){var n=this.$root.$$phase;"$apply"==n||"$digest"==n?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(n){var t=e.$modelValue.indexOf(n.$modelValue);return t>-1?(e.safeApply(function(){e.$modelValue.splice(t,1)[0]}),e.$treeScope.$callbacks.removed(n)):null},e.insertNode=function(n,t){e.safeApply(function(){e.$modelValue.splice(n,0,t)})},e.childNodes=function(){var n,t=[];if(e.$modelValue)for(n=0;n0&&e.depth()+n.maxSubDepth()+1>t}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element",function(e,n){this.scope=e,e.$element=n,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceholderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.cloneEnabled=!1,e.nodropEnabled=!1,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(n){e.$nodesScope.$element.append(n),e.$emptyElm.remove()},this.resetEmptyElement=function(){e.$nodesScope.$modelValue&&0!==e.$nodesScope.$modelValue.length||!e.emptyPlaceholderEnabled?e.$emptyElm.remove():n.append(e.$emptyElm)},e.resetEmptyElement=this.resetEmptyElement}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTree",["treeConfig","$window",function(e,n){return{restrict:"A",scope:!0,controller:"TreeController",link:function(t,o,r,a){var i,s,l,d={accept:null,beforeDrag:null},c={};angular.extend(c,e),c.treeClass&&o.addClass(c.treeClass),"table"===o.prop("tagName").toLowerCase()?(t.$emptyElm=angular.element(n.document.createElement("tr")),s=o.find("tr"),l=s.length>0?angular.element(s).children().length:1e6,i=angular.element(n.document.createElement("td")).attr("colspan",l),t.$emptyElm.append(i)):t.$emptyElm=angular.element(n.document.createElement("div")),c.emptyTreeClass&&t.$emptyElm.addClass(c.emptyTreeClass),t.$watch("$nodesScope.$modelValue.length",function(e){angular.isNumber(e)&&a.resetEmptyElement()},!0),t.$watch(r.dragEnabled,function(e){"boolean"==typeof e&&(t.dragEnabled=e)}),t.$watch(r.emptyPlaceholderEnabled,function(e){"boolean"==typeof e&&(t.emptyPlaceholderEnabled=e,a.resetEmptyElement())}),t.$watch(r.nodropEnabled,function(e){"boolean"==typeof e&&(t.nodropEnabled=e)}),t.$watch(r.cloneEnabled,function(e){"boolean"==typeof e&&(t.cloneEnabled=e)}),t.$watch(r.maxDepth,function(e){"number"==typeof e&&(t.maxDepth=e)}),t.$watch(r.dragDelay,function(e){"number"==typeof e&&(t.dragDelay=e)}),d.accept=function(e,n,t){return!(n.nodropEnabled||n.$treeScope.nodropEnabled||n.outOfDepth(e))},d.beforeDrag=function(e){return!0},d.expandTimeoutStart=function(){},d.expandTimeoutCancel=function(){},d.expandTimeoutEnd=function(){},d.removed=function(e){},d.dropped=function(e){},d.dragStart=function(e){},d.dragMove=function(e){},d.dragStop=function(e){},d.beforeDrop=function(e){},d.toggle=function(e,n){},t.$watch(r.uiTree,function(e,n){angular.forEach(e,function(e,n){d[n]&&"function"==typeof e&&(d[n]=e)}),t.$callbacks=d},!0)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeHandle",["treeConfig",function(e){return{require:"^uiTreeNode",restrict:"A",scope:!0,controller:"TreeHandleController",link:function(n,t,o,r){var a={};angular.extend(a,e),a.handleClass&&t.addClass(a.handleClass),n!=r.scope&&(n.$nodeScope=r.scope,r.scope.$handleScope=n)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNode",["treeConfig","UiTreeHelper","$window","$document","$timeout","$q",function(e,n,t,o,r,a){return{require:["^uiTreeNodes","^uiTree"],restrict:"A",controller:"TreeNodeController",link:function(i,s,l,d){var c,u,p,g,m,f,b,h,v,x,y,$,w,S,N,z,E,C,T,k,O,M,U,V,H,A,D,I={},Y="ontouchstart"in window,X=null,B=document.body,P=document.documentElement;angular.extend(I,e),I.nodeClass&&s.addClass(I.nodeClass),i.init(d),i.collapsed=!!n.getNodeAttribute(i,"collapsed")||e.defaultCollapsed,i.expandOnHover=!!n.getNodeAttribute(i,"expandOnHover"),i.scrollContainer=n.getNodeAttribute(i,"scrollContainer")||l.scrollContainer||null,i.sourceOnly=i.nodropEnabled||i.$treeScope.nodropEnabled,i.$watch(l.collapsed,function(e){"boolean"==typeof e&&(i.collapsed=e)}),i.$watch("collapsed",function(e){n.setNodeAttribute(i,"collapsed",e),l.$set("collapsed",e)}),i.$watch(l.expandOnHover,function(e){"boolean"!=typeof e&&"number"!=typeof e||(i.expandOnHover=e)}),i.$watch("expandOnHover",function(e){n.setNodeAttribute(i,"expandOnHover",e),l.$set("expandOnHover",e)}),l.$observe("scrollContainer",function(e){"string"==typeof e&&(i.scrollContainer=e)}),i.$watch("scrollContainer",function(e){n.setNodeAttribute(i,"scrollContainer",e),l.$set("scrollContainer",e),b=document.querySelector(e)}),i.$on("angular-ui-tree:collapse-all",function(){i.collapsed=!0}),i.$on("angular-ui-tree:expand-all",function(){i.collapsed=!1}),$=function(e){if((Y||2!==e.button&&3!==e.which)&&!(e.uiTreeDragging||e.originalEvent&&e.originalEvent.uiTreeDragging)){var r,a,l,d,b,h,$,w,S,N=angular.element(e.target);if(r=n.treeNodeHandlerContainerOfElement(N),r&&(N=angular.element(r)),a=s.clone(),w=n.elementIsTreeNode(N),S=n.elementIsTreeNodeHandle(N),(w||S)&&!(w&&n.elementContainsTreeNodeHandler(N)||(l=N.prop("tagName").toLowerCase(),"input"==l||"textarea"==l||"button"==l||"select"==l))){for(H=angular.element(e.target);H&&H[0]&&H[0]!==s&&!A;){if(H[0].attributes&&(A=H[0].attributes["ui-tree"]),n.nodrag(H))return;H=H.parent()}i.beforeDrag(i)&&(e.uiTreeDragging=!0,e.originalEvent&&(e.originalEvent.uiTreeDragging=!0),e.preventDefault(),b=n.eventObj(e),c=!0,u=n.dragInfo(i),D=u.source.$treeScope.$id,d=s.prop("tagName"),"tr"===d.toLowerCase()?(g=angular.element(t.document.createElement(d)),h=angular.element(t.document.createElement("td")).addClass(I.placeholderClass).attr("colspan",s[0].children.length),g.append(h)):g=angular.element(t.document.createElement(d)).addClass(I.placeholderClass),m=angular.element(t.document.createElement(d)),I.hiddenClass&&m.addClass(I.hiddenClass),p=n.positionStarted(b,s),g.css("height",n.height(s)+"px"),f=angular.element(t.document.createElement(i.$parentNodesScope.$element.prop("tagName"))).addClass(i.$parentNodesScope.$element.attr("class")).addClass(I.dragClass),f.css("width",n.width(s)+"px"),f.css("z-index",9999),$=(s[0].querySelector(".angular-ui-tree-handle")||s[0]).currentStyle,$&&(document.body.setAttribute("ui-tree-cursor",o.find("body").css("cursor")||""),o.find("body").css({cursor:$.cursor+"!important"})),i.sourceOnly&&g.css("display","none"),s.after(g),s.after(m),u.isClone()&&i.sourceOnly?f.append(a):f.append(s),o.find("body").append(f),f.css({left:b.pageX-p.offsetX+"px",top:b.pageY-p.offsetY+"px"}),v={placeholder:g,dragging:f},O(),i.$apply(function(){i.$treeScope.$callbacks.dragStart(u.eventArgs(v,p))}),x=Math.max(B.scrollHeight,B.offsetHeight,P.clientHeight,P.scrollHeight,P.offsetHeight),y=Math.max(B.scrollWidth,B.offsetWidth,P.clientWidth,P.scrollWidth,P.offsetWidth))}}},w=function(e){var o,a,s,l,d,m,$,w,S,N,z,E,C,T,k,O,M,U,H,A,Y,B,P,R=n.eventObj(e);if(f){if(e.preventDefault(),t.getSelection?t.getSelection().removeAllRanges():t.document.selection&&t.document.selection.empty(),s=R.pageX-p.offsetX,l=R.pageY-p.offsetY,s<0&&(s=0),l<0&&(l=0),l+10>x&&(l=x-10),s+10>y&&(s=y-10),f.css({left:s+"px",top:l+"px"}),b?($=b.getBoundingClientRect(),d=b.scrollTop,m=d+b.clientHeight,$.bottomR.clientY&&d>0&&(O=Math.min(d,10),b.scrollTop-=O)):(d=window.pageYOffset||t.document.documentElement.scrollTop,m=d+(window.innerHeight||t.document.clientHeight||t.document.clientHeight),mR.pageY&&(O=Math.min(d,10),window.scrollBy(0,-O))),n.positionMoved(e,p,c),c)return void(c=!1);if(S=R.pageX-(t.pageXOffset||t.document.body.scrollLeft||t.document.documentElement.scrollLeft)-(t.document.documentElement.clientLeft||0),N=R.pageY-(t.pageYOffset||t.document.body.scrollTop||t.document.documentElement.scrollTop)-(t.document.documentElement.clientTop||0),angular.isFunction(f.hide)?f.hide():(z=f[0].style.display,f[0].style.display="none"),t.document.elementFromPoint(S,N),C=angular.element(t.document.elementFromPoint(S,N)),V=n.treeNodeHandlerContainerOfElement(C),V&&(C=angular.element(V)),angular.isFunction(f.show)?f.show():f[0].style.display=z,n.elementIsTree(C)?E=C.controller("uiTree").scope:n.elementIsTreeNodeHandle(C)?E=C.controller("uiTreeHandle").scope:n.elementIsTreeNode(C)?E=C.controller("uiTreeNode").scope:n.elementIsTreeNodes(C)?E=C.controller("uiTreeNodes").scope:n.elementIsPlaceholder(C)?E=C.controller("uiTreeNodes").scope:C.controller("uiTreeNode")&&(E=C.controller("uiTreeNode").scope),H=E&&E.$treeScope&&E.$treeScope.$id&&E.$treeScope.$id===D,H&&p.dirAx)p.distX>0&&(o=u.prev(),o&&!o.collapsed&&o.accept(i,o.childNodesCount())&&(o.$childNodesScope.$element.append(g),u.moveTo(o.$childNodesScope,o.childNodes(),o.childNodesCount()))),p.distX<0&&(a=u.next(),a||(w=u.parentNode(),w&&w.$parentNodesScope.accept(i,w.index()+1)&&(w.$element.after(g),u.moveTo(w.$parentNodesScope,w.siblings(),w.index()+1))));else{if(T=!1,!E)return;if(!E.$treeScope||E.$parent.nodropEnabled||E.$treeScope.nodropEnabled||g.css("display",""),"uiTree"===E.$type&&E.dragEnabled&&(T=E.isEmpty()),"uiTreeHandle"===E.$type&&(E=E.$nodeScope),"uiTreeNode"!==E.$type&&!T)return void(I.appendChildOnHover&&(a=u.next(),!a&&h&&(w=u.parentNode(),w.$element.after(g),u.moveTo(w.$parentNodesScope,w.siblings(),w.index()+1),h=!1)));X&&g.parent()[0]!=X.$element[0]&&(X.resetEmptyElement(),X=null),T?(X=E,E.$nodesScope.accept(i,0)&&(E.place(g),u.moveTo(E.$nodesScope,E.$nodesScope.childNodes(),0))):E.dragEnabled()&&(angular.isDefined(i.expandTimeoutOn)&&i.expandTimeoutOn!==E.id&&(r.cancel(i.expandTimeout),delete i.expandTimeout,delete i.expandTimeoutOn,i.$callbacks.expandTimeoutCancel()),E.collapsed&&(i.expandOnHover===!0||angular.isNumber(i.expandOnHover)&&0===i.expandOnHover?E.collapsed=!1:i.expandOnHover!==!1&&angular.isNumber(i.expandOnHover)&&i.expandOnHover>0&&angular.isUndefined(i.expandTimeoutOn)&&(i.expandTimeoutOn=E.$id,i.$callbacks.expandTimeoutStart(),i.expandTimeout=r(function(){i.$callbacks.expandTimeoutEnd(),E.collapsed=!1},i.expandOnHover))),C=E.$element,M=n.offset(C),Y=n.height(C),B=E.$childNodesScope?E.$childNodesScope.$element:null,P=B?n.height(B):0,Y-=P,A=I.appendChildOnHover?.25*Y:n.height(C)/2,U=R.pageY0?T.exec(function(){N(e)},i.dragDelay):N(e)}),s.bind("touchend touchcancel mouseup",function(){i.dragDelay>0&&T.cancel()})},k(),O=function(){angular.element(o).bind("touchend",E),angular.element(o).bind("touchcancel",E),angular.element(o).bind("touchmove",z),angular.element(o).bind("mouseup",E),angular.element(o).bind("mousemove",z),angular.element(o).bind("mouseleave",C),angular.element(o).bind("keydown",U)},M=function(){angular.element(o).unbind("touchend",E),angular.element(o).unbind("touchcancel",E),angular.element(o).unbind("touchmove",z),angular.element(o).unbind("mouseup",E),angular.element(o).unbind("mousemove",z),angular.element(o).unbind("mouseleave",C),angular.element(o).unbind("keydown",U)}}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNodes",["treeConfig","$window",function(e){return{require:["ngModel","?^uiTreeNode","^uiTree"],restrict:"A",scope:!0,controller:"TreeNodesController",link:function(n,t,o,r){var a={},i=r[0],s=r[1],l=r[2];angular.extend(a,e),a.nodesClass&&t.addClass(a.nodesClass),s?(s.scope.$childNodesScope=n,n.$nodeScope=s.scope):l.scope.$nodesScope=n,n.$treeScope=l.scope,i&&(i.$render=function(){n.$modelValue=i.$modelValue}),n.$watch(function(){return o.maxDepth},function(e){"number"==typeof e&&(n.maxDepth=e)}),n.$watch(function(){return o.nodropEnabled},function(e){"undefined"!=typeof e&&(n.nodropEnabled=!0)},!0)}}}])}(),function(){"use strict";function e(e,n){if(void 0===n)return null;for(var t=n.parentNode,o=1,r="function"==typeof t.setAttribute&&t.hasAttribute(e)?t:null;t&&"function"==typeof t.setAttribute&&!t.hasAttribute(e);){if(t=t.parentNode,r=t,t===document.documentElement){r=null;break}o++}return r}angular.module("ui.tree").factory("UiTreeHelper",["$document","$window","treeConfig",function(n,t,o){return{nodesData:{},setNodeAttribute:function(e,n,t){if(!e.$modelValue)return null;var o=this.nodesData[e.$modelValue.$$hashKey];o||(o={},this.nodesData[e.$modelValue.$$hashKey]=o),o[n]=t},getNodeAttribute:function(e,n){if(!e.$modelValue)return null;var t=this.nodesData[e.$modelValue.$$hashKey];return t?t[n]:null},nodrag:function(e){return"undefined"!=typeof e.attr("data-nodrag")&&"false"!==e.attr("data-nodrag")},eventObj:function(e){var n=e;return void 0!==e.targetTouches?n=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(n=e.originalEvent.targetTouches.item(0)),n},dragInfo:function(e){return{source:e,sourceInfo:{cloneModel:e.$treeScope.cloneEnabled===!0?angular.copy(e.$modelValue):void 0,nodeScope:e,index:e.index(),nodesScope:e.$parentNodesScope},index:e.index(),siblings:e.siblings().slice(0),parent:e.$parentNodesScope,resetParent:function(){this.parent=e.$parentNodesScope},moveTo:function(e,n,t){this.parent=e,this.siblings=n.slice(0);var o=this.siblings.indexOf(this.source);o>-1&&(this.siblings.splice(o,1),this.source.index()0?this.siblings[this.index-1]:null},next:function(){return this.index0&&(o=e.originalEvent.touches[0].pageX,r=e.originalEvent.touches[0].pageY),t.offsetX=o-this.offset(n).left,t.offsetY=r-this.offset(n).top,t.startX=t.lastX=o,t.startY=t.lastY=r,t.nowX=t.nowY=t.distX=t.distY=t.dirAx=0,t.dirX=t.dirY=t.lastDirX=t.lastDirY=t.distAxX=t.distAxY=0,t},positionMoved:function(e,n,t){var o,r=e.pageX,a=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(r=e.originalEvent.touches[0].pageX,a=e.originalEvent.touches[0].pageY),n.lastX=n.nowX,n.lastY=n.nowY,n.nowX=r,n.nowY=a,n.distX=n.nowX-n.lastX,n.distY=n.nowY-n.lastY,n.lastDirX=n.dirX,n.lastDirY=n.dirY,n.dirX=0===n.distX?0:n.distX>0?1:-1,n.dirY=0===n.distY?0:n.distY>0?1:-1,o=Math.abs(n.distX)>Math.abs(n.distY)?1:0,t?(n.dirAx=o,void(n.moving=!0)):(n.dirAx!==o?(n.distAxX=0,n.distAxY=0):(n.distAxX+=Math.abs(n.distX),0!==n.dirX&&n.dirX!==n.lastDirX&&(n.distAxX=0),n.distAxY+=Math.abs(n.distY),0!==n.dirY&&n.dirY!==n.lastDirY&&(n.distAxY=0)),void(n.dirAx=o))},elementIsTreeNode:function(e){return"undefined"!=typeof e.attr("ui-tree-node")},elementIsTreeNodeHandle:function(e){return"undefined"!=typeof e.attr("ui-tree-handle")},elementIsTree:function(e){return"undefined"!=typeof e.attr("ui-tree")},elementIsTreeNodes:function(e){return"undefined"!=typeof e.attr("ui-tree-nodes")},elementIsPlaceholder:function(e){return e.hasClass(o.placeholderClass)},elementContainsTreeNodeHandler:function(e){return e[0].querySelectorAll("[ui-tree-handle]").length>=1},treeNodeHandlerContainerOfElement:function(n){return e("ui-tree-handle",n[0])}}}])}()},function(e,n,t){t(1),e.exports="ui.tree"},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(e){return{restrict:"A",link:function(n,t,o){n.$watch(function(){return n.$eval(o.bindHtmlCompile)},function(r){t.html(r&&r.toString());var a=n;o.bindHtmlScope&&(a=n.$eval(o.bindHtmlScope)),e(t.contents())(a)})}}};t.$inject=["$compile"],n.default=t},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o='\n
\n
\n\n \n \n
\n
\n
\n\n
\n
\n',r=function(e,n){return{restrict:"E",template:o,scope:{configuration:"="},link:function(o,r,a){var i=o;i.initSuccess=!1;var s=function(){if(!i.configuration||"object"!=t(i.configuration))throw"Atenção, o SecurityEmbedded precisa do objeto de configuração acesse http://www.github.com/gumga/security-embedded para mais detalhes.";n.securityEmbedded.appURL=i.configuration.appURL,n.securityEmbedded.getToken=function(){if(i.configuration.eternalToken)return i.configuration.eternalToken;var e=JSON.parse(sessionStorage.getItem("user"));if(!e||!e.token)throw"Atenção, não encontramos token na configuração e nem na sessão, por fazer verifique e tente novamente.";return e.token},n.securityEmbedded.getToken(),n.securityEmbedded.getOrganizationHierarchyCode=function(){var e=JSON.parse(sessionStorage.getItem("user"));if(!e||!e.organizationHierarchyCode)throw"Atenção, o SecurityEmbedded precisa do código de hierarquia de uma organização, adicione no objeto de configuração ou insira na sua sessão.";return e.organizationHierarchyCode},n.securityEmbedded.getOrganizationHierarchyCode(),i.initSuccess=!0};s();var l=function(e,n){var t=!0;return"boolean"==typeof e&&(t=e),t},d=function(n){return e.trustAsHtml(n)};i.tabs=[{label:"Organizações e usuários",visible:l(i.configuration.user),template:d("")},{label:"Perfis",visible:l(i.configuration.perfil),template:"

Perfis

"}]}}};r.$inject=["$sce","$window"],n.default=r},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="\n.angular-ui-tree-empty{border:1px dashed #bbb;min-height:100px;background-color:#e5e5e5;background-image:-webkit-linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),-webkit-linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff);background-image:linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff);background-size:60px 60px;background-position:0 0,30px 30px;pointer-events:none}.angular-ui-tree-nodes{position:relative;margin:0;padding:0;list-style:none}.angular-ui-tree-nodes .angular-ui-tree-nodes{padding-left:20px}.angular-ui-tree-node,.angular-ui-tree-placeholder{position:relative;margin:0;padding:0;min-height:20px;line-height:20px}.angular-ui-tree-hidden{display:none}.angular-ui-tree-placeholder{margin:5px 0;padding:0;min-height:30px}.angular-ui-tree-handle{cursor:move;text-decoration:none;font-weight:700;box-sizing:border-box;min-height:20px;line-height:20px}.angular-ui-tree-drag{position:absolute;pointer-events:none;z-index:999;opacity:.8}\n\n.angular-ui-tree-handle {\n background: none repeat scroll 0 0 #f3f3f4;\n border: 1px dashed #e7eaec;\n color: inherit;\n padding: 10px;\n font-weight: normal;\n}\n\n.angular-ui-tree-handle:hover {\n font-weight: bold;\n cursor: pointer;\n}\n\n.angular-ui-tree-placeholder {\n background: #f0f9ff;\n border: 1px dashed #bed2db;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.group-title {\n background-color: #687074 !important;\n color: #FFF !important;\n}\n\n.tree-node {\n background: none repeat scroll 0 0 #f3f3f4;\n border: 1px dashed #e7eaec;\n color: inherit;\n padding: 10px;\n border-radius: 3px;\n}\n\n.tree-node .btn {\n min-width: 22px;\n margin-right: 4px;\n}\n\n.tree-node-content {\n margin: 5px 5px 5px 0;\n}\n\n.tree-handle {\n background: none repeat scroll 0 0 #f3f3f4;\n border: 1px dashed #e7eaec;\n color: inherit;\n padding: 10px;\n}\n\n.angular-ui-tree-handle:hover {\n}\n\n.angular-ui-tree-placeholder {\n background: #f0f9ff;\n border: 1px dashed #bed2db;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.dados-center {\n margin-left: 15%;\n}\n\n.ui-tree-button-arrow{\n padding: 0;\n padding-top: 5px;\n}\n\n.qs {\n /*background-color: #02bdda;*/\n border-radius: 16px;\n cursor: pointer;\n /*color: #e3fbff;*/\n display: inline-block;\n font-family: 'Helvetica',sans-serif;\n font-size: 18px;\n font-weight: bold;\n height: 30px;\n line-height: 30px;\n position: relative;\n text-align: center;\n width: 30px;\n}\n\n.qs:hover{\n color: #209F94;\n /*background: #209F94;*/\n}\n\n.qs .popover {\n background-color: rgba(0, 0, 0, 0.85);\n border-radius: 5px;\n bottom: 42px;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);\n color: #fff;\n display: none;\n text-align: center;\n font-size: 12px;\n font-family: 'Helvetica',sans-serif;\n top: -40px;\n left: -85px;\n padding: 7px 10px;\n position: absolute;\n width: 200px;\n z-index: 4;\n height: 33px;\n}\n.qs .popover:before {\n border-top: 7px solid rgba(0, 0, 0, 0.85);\n border-right: 7px solid transparent;\n border-left: 7px solid transparent;\n bottom: -7px;\n content: '';\n display: block;\n left: 50%;\n margin-left: -7px;\n position: absolute;\n}\n.qs:hover .popover {\n display: block;\n -webkit-animation: fade-in .3s linear 1, move-up .3s linear 1;\n -moz-animation: fade-in .3s linear 1, move-up .3s linear 1;\n -ms-animation: fade-in .3s linear 1, move-up .3s linear 1;\n}\n\n@-webkit-keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-moz-keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-ms-keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-webkit-keyframes move-up {\n from {\n bottom: 30px;\n }\n to {\n bottom: 42px;\n }\n}\n@-moz-keyframes move-up {\n from {\n bottom: 30px;\n }\n to {\n bottom: 42px;\n }\n}\n@-ms-keyframes move-up {\n from {\n bottom: 30px;\n }\n to {\n bottom: 42px;\n }\n}\n\n@media screen and (max-width: 992px) {\n .dados-center {\n margin-left: 15%;\n }\n}\n\n\n.breadcrumb-security-embedded > li > a{\n cursor : pointer;\n}\n\n",o=document.createElement("style"),r=document.head||document.getElementsByTagName("head")[0];o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),r.appendChild(o),n.default=t},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t='\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n\n
\n \n
\n \n \n
\n\n
\n
    \n
  1. \n
  2. \n
\n
\n
\n
\n
\n
\n\n \n\n
\n
\n
\n\n
\n
\n
\n \n\n
\n \n
\n \n \n
\n\n
\n
\n \n
\n
\n \n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n
NomeE-mailStatusAcões
{{user.name}}{{user.login}}{{user.status.value ? \'Ativo\': \'Inativo\'}}\n \n \n
\n
\n
\n
\n
\n\n
\n
\n
\n\n \n\n
\n \n
\n \n \n
\n\n
\n
\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n
Descrição
{{perfil.description}}\n \n \n
\n
\n
\n\n
\n
\n
\n \n \n Salvar\n
\n
\n\n
\n
\n\n
\n
\n
\n\n
\n
\n
\n\n \n\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n
\n Salvar\n
\n
\n\n
\n
\n
\n\n
\n',o=function(e,n){ +!function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="/",n(0)}([function(e,n,t){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=t(5),a=(o(r),t(3)),i=o(a),s=t(4),l=o(s),d=t(6),c=o(d),u=t(7),p=o(u),g=t(2),m=o(g),f="gumga.securityEmbedded",b=angular.module(f,["ngSanitize","ui.bootstrap",m.default]);b.directive("bindHtmlCompile",i.default),b.directive("securityEmbeddedUser",c.default),b.directive("securityEmbedded",l.default),b.service("SecurityEmbeddedUserService",p.default),b.run(["$window",function(e){e.securityEmbedded={}}]),n.default=b.name},function(e,n){!function(){"use strict";angular.module("ui.tree",[]).constant("treeConfig",{treeClass:"angular-ui-tree",emptyTreeClass:"angular-ui-tree-empty",hiddenClass:"angular-ui-tree-hidden",nodesClass:"angular-ui-tree-nodes",nodeClass:"angular-ui-tree-node",handleClass:"angular-ui-tree-handle",placeholderClass:"angular-ui-tree-placeholder",dragClass:"angular-ui-tree-drag",dragThreshold:3,defaultCollapsed:!1,appendChildOnHover:!0})}(),function(){"use strict";angular.module("ui.tree").controller("TreeHandleController",["$scope","$element",function(e,n){this.scope=e,e.$element=n,e.$nodeScope=null,e.$type="uiTreeHandle"}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element",function(e,n){function t(e){if(!e)return 0;var n,o,r,a=0,i=e.childNodes();if(!i||0===i.length)return 0;for(r=i.length-1;r>=0;r--)n=i[r],o=1+t(n),a=Math.max(a,o);return a}this.scope=e,e.$element=n,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$allowNodeDrop=!1,e.collapsed=!1,e.expandOnHover=!1,e.init=function(t){var o=t[0];e.$treeScope=t[1]?t[1].scope:null,e.$parentNodeScope=o.scope.$nodeScope,e.$modelValue=o.scope.$modelValue[e.$index],e.$parentNodesScope=o.scope,o.scope.initSubNode(e),n.on("$destroy",function(){o.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(n){return e.$parentNodesScope==n.$parentNodesScope},e.isChild=function(n){var t=e.childNodes();return t&&t.indexOf(n)>-1},e.prev=function(){var n=e.index();return n>0?e.siblings()[n-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(n,t){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(n,t)},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed,e.$treeScope.$callbacks.toggle(e.collapsed,e)},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var n=e.$parentNodeScope;return n?n.depth()+1:1},e.maxSubDepth=function(){return e.$childNodesScope?t(e.$childNodesScope):0}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodesController",["$scope","$element",function(e,n){this.scope=e,e.$element=n,e.$modelValue=null,e.$nodeScope=null,e.$treeScope=null,e.$type="uiTreeNodes",e.$nodesMap={},e.nodropEnabled=!1,e.maxDepth=0,e.cloneEnabled=!1,e.initSubNode=function(n){return n.$modelValue?void(e.$nodesMap[n.$modelValue.$$hashKey]=n):null},e.destroySubNode=function(n){return n.$modelValue?void(e.$nodesMap[n.$modelValue.$$hashKey]=null):null},e.accept=function(n,t){return e.$treeScope.$callbacks.accept(n,e,t)},e.beforeDrag=function(n){return e.$treeScope.$callbacks.beforeDrag(n)},e.isParent=function(n){return n.$parentNodesScope==e},e.hasChild=function(){return e.$modelValue.length>0},e.safeApply=function(e){var n=this.$root.$$phase;"$apply"==n||"$digest"==n?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(n){var t=e.$modelValue.indexOf(n.$modelValue);return t>-1?(e.safeApply(function(){e.$modelValue.splice(t,1)[0]}),e.$treeScope.$callbacks.removed(n)):null},e.insertNode=function(n,t){e.safeApply(function(){e.$modelValue.splice(n,0,t)})},e.childNodes=function(){var n,t=[];if(e.$modelValue)for(n=0;n0&&e.depth()+n.maxSubDepth()+1>t}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element",function(e,n){this.scope=e,e.$element=n,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceholderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.cloneEnabled=!1,e.nodropEnabled=!1,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(n){e.$nodesScope.$element.append(n),e.$emptyElm.remove()},this.resetEmptyElement=function(){e.$nodesScope.$modelValue&&0!==e.$nodesScope.$modelValue.length||!e.emptyPlaceholderEnabled?e.$emptyElm.remove():n.append(e.$emptyElm)},e.resetEmptyElement=this.resetEmptyElement}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTree",["treeConfig","$window",function(e,n){return{restrict:"A",scope:!0,controller:"TreeController",link:function(t,o,r,a){var i,s,l,d={accept:null,beforeDrag:null},c={};angular.extend(c,e),c.treeClass&&o.addClass(c.treeClass),"table"===o.prop("tagName").toLowerCase()?(t.$emptyElm=angular.element(n.document.createElement("tr")),s=o.find("tr"),l=s.length>0?angular.element(s).children().length:1e6,i=angular.element(n.document.createElement("td")).attr("colspan",l),t.$emptyElm.append(i)):t.$emptyElm=angular.element(n.document.createElement("div")),c.emptyTreeClass&&t.$emptyElm.addClass(c.emptyTreeClass),t.$watch("$nodesScope.$modelValue.length",function(e){angular.isNumber(e)&&a.resetEmptyElement()},!0),t.$watch(r.dragEnabled,function(e){"boolean"==typeof e&&(t.dragEnabled=e)}),t.$watch(r.emptyPlaceholderEnabled,function(e){"boolean"==typeof e&&(t.emptyPlaceholderEnabled=e,a.resetEmptyElement())}),t.$watch(r.nodropEnabled,function(e){"boolean"==typeof e&&(t.nodropEnabled=e)}),t.$watch(r.cloneEnabled,function(e){"boolean"==typeof e&&(t.cloneEnabled=e)}),t.$watch(r.maxDepth,function(e){"number"==typeof e&&(t.maxDepth=e)}),t.$watch(r.dragDelay,function(e){"number"==typeof e&&(t.dragDelay=e)}),d.accept=function(e,n,t){return!(n.nodropEnabled||n.$treeScope.nodropEnabled||n.outOfDepth(e))},d.beforeDrag=function(e){return!0},d.expandTimeoutStart=function(){},d.expandTimeoutCancel=function(){},d.expandTimeoutEnd=function(){},d.removed=function(e){},d.dropped=function(e){},d.dragStart=function(e){},d.dragMove=function(e){},d.dragStop=function(e){},d.beforeDrop=function(e){},d.toggle=function(e,n){},t.$watch(r.uiTree,function(e,n){angular.forEach(e,function(e,n){d[n]&&"function"==typeof e&&(d[n]=e)}),t.$callbacks=d},!0)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeHandle",["treeConfig",function(e){return{require:"^uiTreeNode",restrict:"A",scope:!0,controller:"TreeHandleController",link:function(n,t,o,r){var a={};angular.extend(a,e),a.handleClass&&t.addClass(a.handleClass),n!=r.scope&&(n.$nodeScope=r.scope,r.scope.$handleScope=n)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNode",["treeConfig","UiTreeHelper","$window","$document","$timeout","$q",function(e,n,t,o,r,a){return{require:["^uiTreeNodes","^uiTree"],restrict:"A",controller:"TreeNodeController",link:function(i,s,l,d){var c,u,p,g,m,f,b,h,v,x,y,$,w,S,N,z,E,C,T,k,O,M,U,V,H,A,D,I={},Y="ontouchstart"in window,X=null,B=document.body,P=document.documentElement;angular.extend(I,e),I.nodeClass&&s.addClass(I.nodeClass),i.init(d),i.collapsed=!!n.getNodeAttribute(i,"collapsed")||e.defaultCollapsed,i.expandOnHover=!!n.getNodeAttribute(i,"expandOnHover"),i.scrollContainer=n.getNodeAttribute(i,"scrollContainer")||l.scrollContainer||null,i.sourceOnly=i.nodropEnabled||i.$treeScope.nodropEnabled,i.$watch(l.collapsed,function(e){"boolean"==typeof e&&(i.collapsed=e)}),i.$watch("collapsed",function(e){n.setNodeAttribute(i,"collapsed",e),l.$set("collapsed",e)}),i.$watch(l.expandOnHover,function(e){"boolean"!=typeof e&&"number"!=typeof e||(i.expandOnHover=e)}),i.$watch("expandOnHover",function(e){n.setNodeAttribute(i,"expandOnHover",e),l.$set("expandOnHover",e)}),l.$observe("scrollContainer",function(e){"string"==typeof e&&(i.scrollContainer=e)}),i.$watch("scrollContainer",function(e){n.setNodeAttribute(i,"scrollContainer",e),l.$set("scrollContainer",e),b=document.querySelector(e)}),i.$on("angular-ui-tree:collapse-all",function(){i.collapsed=!0}),i.$on("angular-ui-tree:expand-all",function(){i.collapsed=!1}),$=function(e){if((Y||2!==e.button&&3!==e.which)&&!(e.uiTreeDragging||e.originalEvent&&e.originalEvent.uiTreeDragging)){var r,a,l,d,b,h,$,w,S,N=angular.element(e.target);if(r=n.treeNodeHandlerContainerOfElement(N),r&&(N=angular.element(r)),a=s.clone(),w=n.elementIsTreeNode(N),S=n.elementIsTreeNodeHandle(N),(w||S)&&!(w&&n.elementContainsTreeNodeHandler(N)||(l=N.prop("tagName").toLowerCase(),"input"==l||"textarea"==l||"button"==l||"select"==l))){for(H=angular.element(e.target);H&&H[0]&&H[0]!==s&&!A;){if(H[0].attributes&&(A=H[0].attributes["ui-tree"]),n.nodrag(H))return;H=H.parent()}i.beforeDrag(i)&&(e.uiTreeDragging=!0,e.originalEvent&&(e.originalEvent.uiTreeDragging=!0),e.preventDefault(),b=n.eventObj(e),c=!0,u=n.dragInfo(i),D=u.source.$treeScope.$id,d=s.prop("tagName"),"tr"===d.toLowerCase()?(g=angular.element(t.document.createElement(d)),h=angular.element(t.document.createElement("td")).addClass(I.placeholderClass).attr("colspan",s[0].children.length),g.append(h)):g=angular.element(t.document.createElement(d)).addClass(I.placeholderClass),m=angular.element(t.document.createElement(d)),I.hiddenClass&&m.addClass(I.hiddenClass),p=n.positionStarted(b,s),g.css("height",n.height(s)+"px"),f=angular.element(t.document.createElement(i.$parentNodesScope.$element.prop("tagName"))).addClass(i.$parentNodesScope.$element.attr("class")).addClass(I.dragClass),f.css("width",n.width(s)+"px"),f.css("z-index",9999),$=(s[0].querySelector(".angular-ui-tree-handle")||s[0]).currentStyle,$&&(document.body.setAttribute("ui-tree-cursor",o.find("body").css("cursor")||""),o.find("body").css({cursor:$.cursor+"!important"})),i.sourceOnly&&g.css("display","none"),s.after(g),s.after(m),u.isClone()&&i.sourceOnly?f.append(a):f.append(s),o.find("body").append(f),f.css({left:b.pageX-p.offsetX+"px",top:b.pageY-p.offsetY+"px"}),v={placeholder:g,dragging:f},O(),i.$apply(function(){i.$treeScope.$callbacks.dragStart(u.eventArgs(v,p))}),x=Math.max(B.scrollHeight,B.offsetHeight,P.clientHeight,P.scrollHeight,P.offsetHeight),y=Math.max(B.scrollWidth,B.offsetWidth,P.clientWidth,P.scrollWidth,P.offsetWidth))}}},w=function(e){var o,a,s,l,d,m,$,w,S,N,z,E,C,T,k,O,M,U,H,A,Y,B,P,R=n.eventObj(e);if(f){if(e.preventDefault(),t.getSelection?t.getSelection().removeAllRanges():t.document.selection&&t.document.selection.empty(),s=R.pageX-p.offsetX,l=R.pageY-p.offsetY,s<0&&(s=0),l<0&&(l=0),l+10>x&&(l=x-10),s+10>y&&(s=y-10),f.css({left:s+"px",top:l+"px"}),b?($=b.getBoundingClientRect(),d=b.scrollTop,m=d+b.clientHeight,$.bottomR.clientY&&d>0&&(O=Math.min(d,10),b.scrollTop-=O)):(d=window.pageYOffset||t.document.documentElement.scrollTop,m=d+(window.innerHeight||t.document.clientHeight||t.document.clientHeight),mR.pageY&&(O=Math.min(d,10),window.scrollBy(0,-O))),n.positionMoved(e,p,c),c)return void(c=!1);if(S=R.pageX-(t.pageXOffset||t.document.body.scrollLeft||t.document.documentElement.scrollLeft)-(t.document.documentElement.clientLeft||0),N=R.pageY-(t.pageYOffset||t.document.body.scrollTop||t.document.documentElement.scrollTop)-(t.document.documentElement.clientTop||0),angular.isFunction(f.hide)?f.hide():(z=f[0].style.display,f[0].style.display="none"),t.document.elementFromPoint(S,N),C=angular.element(t.document.elementFromPoint(S,N)),V=n.treeNodeHandlerContainerOfElement(C),V&&(C=angular.element(V)),angular.isFunction(f.show)?f.show():f[0].style.display=z,n.elementIsTree(C)?E=C.controller("uiTree").scope:n.elementIsTreeNodeHandle(C)?E=C.controller("uiTreeHandle").scope:n.elementIsTreeNode(C)?E=C.controller("uiTreeNode").scope:n.elementIsTreeNodes(C)?E=C.controller("uiTreeNodes").scope:n.elementIsPlaceholder(C)?E=C.controller("uiTreeNodes").scope:C.controller("uiTreeNode")&&(E=C.controller("uiTreeNode").scope),H=E&&E.$treeScope&&E.$treeScope.$id&&E.$treeScope.$id===D,H&&p.dirAx)p.distX>0&&(o=u.prev(),o&&!o.collapsed&&o.accept(i,o.childNodesCount())&&(o.$childNodesScope.$element.append(g),u.moveTo(o.$childNodesScope,o.childNodes(),o.childNodesCount()))),p.distX<0&&(a=u.next(),a||(w=u.parentNode(),w&&w.$parentNodesScope.accept(i,w.index()+1)&&(w.$element.after(g),u.moveTo(w.$parentNodesScope,w.siblings(),w.index()+1))));else{if(T=!1,!E)return;if(!E.$treeScope||E.$parent.nodropEnabled||E.$treeScope.nodropEnabled||g.css("display",""),"uiTree"===E.$type&&E.dragEnabled&&(T=E.isEmpty()),"uiTreeHandle"===E.$type&&(E=E.$nodeScope),"uiTreeNode"!==E.$type&&!T)return void(I.appendChildOnHover&&(a=u.next(),!a&&h&&(w=u.parentNode(),w.$element.after(g),u.moveTo(w.$parentNodesScope,w.siblings(),w.index()+1),h=!1)));X&&g.parent()[0]!=X.$element[0]&&(X.resetEmptyElement(),X=null),T?(X=E,E.$nodesScope.accept(i,0)&&(E.place(g),u.moveTo(E.$nodesScope,E.$nodesScope.childNodes(),0))):E.dragEnabled()&&(angular.isDefined(i.expandTimeoutOn)&&i.expandTimeoutOn!==E.id&&(r.cancel(i.expandTimeout),delete i.expandTimeout,delete i.expandTimeoutOn,i.$callbacks.expandTimeoutCancel()),E.collapsed&&(i.expandOnHover===!0||angular.isNumber(i.expandOnHover)&&0===i.expandOnHover?E.collapsed=!1:i.expandOnHover!==!1&&angular.isNumber(i.expandOnHover)&&i.expandOnHover>0&&angular.isUndefined(i.expandTimeoutOn)&&(i.expandTimeoutOn=E.$id,i.$callbacks.expandTimeoutStart(),i.expandTimeout=r(function(){i.$callbacks.expandTimeoutEnd(),E.collapsed=!1},i.expandOnHover))),C=E.$element,M=n.offset(C),Y=n.height(C),B=E.$childNodesScope?E.$childNodesScope.$element:null,P=B?n.height(B):0,Y-=P,A=I.appendChildOnHover?.25*Y:n.height(C)/2,U=R.pageY0?T.exec(function(){N(e)},i.dragDelay):N(e)}),s.bind("touchend touchcancel mouseup",function(){i.dragDelay>0&&T.cancel()})},k(),O=function(){angular.element(o).bind("touchend",E),angular.element(o).bind("touchcancel",E),angular.element(o).bind("touchmove",z),angular.element(o).bind("mouseup",E),angular.element(o).bind("mousemove",z),angular.element(o).bind("mouseleave",C),angular.element(o).bind("keydown",U)},M=function(){angular.element(o).unbind("touchend",E),angular.element(o).unbind("touchcancel",E),angular.element(o).unbind("touchmove",z),angular.element(o).unbind("mouseup",E),angular.element(o).unbind("mousemove",z),angular.element(o).unbind("mouseleave",C),angular.element(o).unbind("keydown",U)}}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNodes",["treeConfig","$window",function(e){return{require:["ngModel","?^uiTreeNode","^uiTree"],restrict:"A",scope:!0,controller:"TreeNodesController",link:function(n,t,o,r){var a={},i=r[0],s=r[1],l=r[2];angular.extend(a,e),a.nodesClass&&t.addClass(a.nodesClass),s?(s.scope.$childNodesScope=n,n.$nodeScope=s.scope):l.scope.$nodesScope=n,n.$treeScope=l.scope,i&&(i.$render=function(){n.$modelValue=i.$modelValue}),n.$watch(function(){return o.maxDepth},function(e){"number"==typeof e&&(n.maxDepth=e)}),n.$watch(function(){return o.nodropEnabled},function(e){"undefined"!=typeof e&&(n.nodropEnabled=!0)},!0)}}}])}(),function(){"use strict";function e(e,n){if(void 0===n)return null;for(var t=n.parentNode,o=1,r="function"==typeof t.setAttribute&&t.hasAttribute(e)?t:null;t&&"function"==typeof t.setAttribute&&!t.hasAttribute(e);){if(t=t.parentNode,r=t,t===document.documentElement){r=null;break}o++}return r}angular.module("ui.tree").factory("UiTreeHelper",["$document","$window","treeConfig",function(n,t,o){return{nodesData:{},setNodeAttribute:function(e,n,t){if(!e.$modelValue)return null;var o=this.nodesData[e.$modelValue.$$hashKey];o||(o={},this.nodesData[e.$modelValue.$$hashKey]=o),o[n]=t},getNodeAttribute:function(e,n){if(!e.$modelValue)return null;var t=this.nodesData[e.$modelValue.$$hashKey];return t?t[n]:null},nodrag:function(e){return"undefined"!=typeof e.attr("data-nodrag")&&"false"!==e.attr("data-nodrag")},eventObj:function(e){var n=e;return void 0!==e.targetTouches?n=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(n=e.originalEvent.targetTouches.item(0)),n},dragInfo:function(e){return{source:e,sourceInfo:{cloneModel:e.$treeScope.cloneEnabled===!0?angular.copy(e.$modelValue):void 0,nodeScope:e,index:e.index(),nodesScope:e.$parentNodesScope},index:e.index(),siblings:e.siblings().slice(0),parent:e.$parentNodesScope,resetParent:function(){this.parent=e.$parentNodesScope},moveTo:function(e,n,t){this.parent=e,this.siblings=n.slice(0);var o=this.siblings.indexOf(this.source);o>-1&&(this.siblings.splice(o,1),this.source.index()0?this.siblings[this.index-1]:null},next:function(){return this.index0&&(o=e.originalEvent.touches[0].pageX,r=e.originalEvent.touches[0].pageY),t.offsetX=o-this.offset(n).left,t.offsetY=r-this.offset(n).top,t.startX=t.lastX=o,t.startY=t.lastY=r,t.nowX=t.nowY=t.distX=t.distY=t.dirAx=0,t.dirX=t.dirY=t.lastDirX=t.lastDirY=t.distAxX=t.distAxY=0,t},positionMoved:function(e,n,t){var o,r=e.pageX,a=e.pageY;return e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length>0&&(r=e.originalEvent.touches[0].pageX,a=e.originalEvent.touches[0].pageY),n.lastX=n.nowX,n.lastY=n.nowY,n.nowX=r,n.nowY=a,n.distX=n.nowX-n.lastX,n.distY=n.nowY-n.lastY,n.lastDirX=n.dirX,n.lastDirY=n.dirY,n.dirX=0===n.distX?0:n.distX>0?1:-1,n.dirY=0===n.distY?0:n.distY>0?1:-1,o=Math.abs(n.distX)>Math.abs(n.distY)?1:0,t?(n.dirAx=o,void(n.moving=!0)):(n.dirAx!==o?(n.distAxX=0,n.distAxY=0):(n.distAxX+=Math.abs(n.distX),0!==n.dirX&&n.dirX!==n.lastDirX&&(n.distAxX=0),n.distAxY+=Math.abs(n.distY),0!==n.dirY&&n.dirY!==n.lastDirY&&(n.distAxY=0)),void(n.dirAx=o))},elementIsTreeNode:function(e){return"undefined"!=typeof e.attr("ui-tree-node")},elementIsTreeNodeHandle:function(e){return"undefined"!=typeof e.attr("ui-tree-handle")},elementIsTree:function(e){return"undefined"!=typeof e.attr("ui-tree")},elementIsTreeNodes:function(e){return"undefined"!=typeof e.attr("ui-tree-nodes")},elementIsPlaceholder:function(e){return e.hasClass(o.placeholderClass)},elementContainsTreeNodeHandler:function(e){return e[0].querySelectorAll("[ui-tree-handle]").length>=1},treeNodeHandlerContainerOfElement:function(n){return e("ui-tree-handle",n[0])}}}])}()},function(e,n,t){t(1),e.exports="ui.tree"},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=function(e){return{restrict:"A",link:function(n,t,o){n.$watch(function(){return n.$eval(o.bindHtmlCompile)},function(r){t.html(r&&r.toString());var a=n;o.bindHtmlScope&&(a=n.$eval(o.bindHtmlScope)),e(t.contents())(a)})}}};t.$inject=["$compile"],n.default=t},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o='\n
\n
\n\n \n \n
\n
\n
\n\n
\n
\n',r=function(e,n){return{restrict:"E",template:o,scope:{configuration:"="},link:function(o,r,a){var i=o;i.initSuccess=!1;var s=function(){if(!i.configuration||"object"!=t(i.configuration))throw"Atenção, o SecurityEmbedded precisa do objeto de configuração acesse http://www.github.com/gumga/security-embedded para mais detalhes.";n.securityEmbedded.appURL=i.configuration.appURL,n.securityEmbedded.getToken=function(){if(i.configuration.eternalToken)return i.configuration.eternalToken;var e=JSON.parse(sessionStorage.getItem("user"));if(!e||!e.token)throw"Atenção, não encontramos token na configuração e nem na sessão, por fazer verifique e tente novamente.";return e.token},n.securityEmbedded.getToken(),n.securityEmbedded.getOrganizationHierarchyCode=function(){var e=JSON.parse(sessionStorage.getItem("user"));if(!e||!e.organizationHierarchyCode)throw"Atenção, o SecurityEmbedded precisa do código de hierarquia de uma organização, adicione no objeto de configuração ou insira na sua sessão.";return e.organizationHierarchyCode},n.securityEmbedded.getOrganizationHierarchyCode(),i.initSuccess=!0};s();var l=function(e,n){var t=!0;return"boolean"==typeof e&&(t=e),t},d=function(n){return e.trustAsHtml(n)};i.tabs=[{label:"Organizações e usuários",visible:l(i.configuration.user),template:d("")},{label:"Perfis",visible:l(i.configuration.perfil),template:"

Perfis

"}]}}};r.$inject=["$sce","$window"],n.default=r},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t="\n.angular-ui-tree-empty{border:1px dashed #bbb;min-height:100px;background-color:#e5e5e5;background-image:-webkit-linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),-webkit-linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff);background-image:linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff);background-size:60px 60px;background-position:0 0,30px 30px;pointer-events:none}.angular-ui-tree-nodes{position:relative;margin:0;padding:0;list-style:none}.angular-ui-tree-nodes .angular-ui-tree-nodes{padding-left:20px}.angular-ui-tree-node,.angular-ui-tree-placeholder{position:relative;margin:0;padding:0;min-height:20px;line-height:20px}.angular-ui-tree-hidden{display:none}.angular-ui-tree-placeholder{margin:5px 0;padding:0;min-height:30px}.angular-ui-tree-handle{cursor:move;text-decoration:none;font-weight:700;box-sizing:border-box;min-height:20px;line-height:20px}.angular-ui-tree-drag{position:absolute;pointer-events:none;z-index:999;opacity:.8}\n\n.angular-ui-tree-handle {\n background: none repeat scroll 0 0 #f3f3f4;\n border: 1px dashed #e7eaec;\n color: inherit;\n padding: 10px;\n font-weight: normal;\n}\n\n.angular-ui-tree-handle:hover {\n font-weight: bold;\n cursor: pointer;\n}\n\n.angular-ui-tree-placeholder {\n background: #f0f9ff;\n border: 1px dashed #bed2db;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.group-title {\n background-color: #687074 !important;\n color: #FFF !important;\n}\n\n.tree-node {\n background: none repeat scroll 0 0 #f3f3f4;\n border: 1px dashed #e7eaec;\n color: inherit;\n padding: 10px;\n border-radius: 3px;\n}\n\n.tree-node .btn {\n min-width: 22px;\n margin-right: 4px;\n}\n\n.tree-node-content {\n margin: 5px 5px 5px 0;\n}\n\n.tree-handle {\n background: none repeat scroll 0 0 #f3f3f4;\n border: 1px dashed #e7eaec;\n color: inherit;\n padding: 10px;\n}\n\n.angular-ui-tree-handle:hover {\n}\n\n.angular-ui-tree-placeholder {\n background: #f0f9ff;\n border: 1px dashed #bed2db;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.dados-center {\n margin-left: 15%;\n}\n\n.ui-tree-button-arrow{\n padding: 0;\n padding-top: 5px;\n}\n\n.qs {\n /*background-color: #02bdda;*/\n border-radius: 16px;\n cursor: pointer;\n /*color: #e3fbff;*/\n display: inline-block;\n font-family: 'Helvetica',sans-serif;\n font-size: 18px;\n font-weight: bold;\n height: 30px;\n line-height: 30px;\n position: relative;\n text-align: center;\n width: 30px;\n}\n\n.qs:hover{\n color: #209F94;\n /*background: #209F94;*/\n}\n\n.qs .popover {\n background-color: rgba(0, 0, 0, 0.85);\n border-radius: 5px;\n bottom: 42px;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);\n color: #fff;\n display: none;\n text-align: center;\n font-size: 12px;\n font-family: 'Helvetica',sans-serif;\n top: -40px;\n left: -85px;\n padding: 7px 10px;\n position: absolute;\n width: 200px;\n z-index: 4;\n height: 33px;\n}\n.qs .popover:before {\n border-top: 7px solid rgba(0, 0, 0, 0.85);\n border-right: 7px solid transparent;\n border-left: 7px solid transparent;\n bottom: -7px;\n content: '';\n display: block;\n left: 50%;\n margin-left: -7px;\n position: absolute;\n}\n.qs:hover .popover {\n display: block;\n -webkit-animation: fade-in .3s linear 1, move-up .3s linear 1;\n -moz-animation: fade-in .3s linear 1, move-up .3s linear 1;\n -ms-animation: fade-in .3s linear 1, move-up .3s linear 1;\n}\n\n@-webkit-keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-moz-keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-ms-keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@-webkit-keyframes move-up {\n from {\n bottom: 30px;\n }\n to {\n bottom: 42px;\n }\n}\n@-moz-keyframes move-up {\n from {\n bottom: 30px;\n }\n to {\n bottom: 42px;\n }\n}\n@-ms-keyframes move-up {\n from {\n bottom: 30px;\n }\n to {\n bottom: 42px;\n }\n}\n\n@media screen and (max-width: 992px) {\n .dados-center {\n margin-left: 15%;\n }\n}\n\n\n.breadcrumb-security-embedded > li > a{\n cursor : pointer;\n}\n\n",o=document.createElement("style"),r=document.head||document.getElementsByTagName("head")[0];o.type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),r.appendChild(o),n.default=t},function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t='\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n\n
\n \n
\n \n \n
\n\n
\n
    \n
  1. \n
  2. \n
\n
\n
\n
\n
\n
\n\n \n\n
\n
\n
\n\n
\n
\n
\n \n\n
\n \n
\n \n \n
\n\n
\n
\n \n
\n
\n \n
\n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n
NomeE-mailStatusAcões
{{user.name}}{{user.login}}{{user.status.value ? \'Ativo\': \'Inativo\'}}\n \n \n
\n
\n
\n
\n
\n\n
\n
\n
\n\n \n\n
\n \n
\n \n \n
\n\n
\n
\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n
Descrição
{{perfil.description}}\n \n \n
\n
\n
\n\n
\n
\n
\n \n \n Salvar\n
\n
\n\n
\n
\n\n
\n
\n
\n\n
\n
\n
\n\n \n\n
\n
\n \n \n
\n
\n \n \n
\n
\n\n
\n
\n
\n Salvar\n
\n
\n\n
\n
\n
\n\n
\n',o=function(e,n){ return{restrict:"E",template:t,scope:{},link:function(t,o,r){var a=t;a.filterUser="",a.view="list-orgs",a.alterView=function(e){a.view=e},a.variables={organizationSelected:void 0,userSelected:void 0},a.initCollapsed=function(e,n){n||e.$nodeScope.toggle()},a.myToggle=function(e){e.$nodeScope.$modelValue,e.$nodeScope.toggle()},a.getUsersByOrganization=function(n){a.usersMessage={status:"loading",message:"Buscando os usuários, aguarde um momento..."},e.getUsersByOrganization(n).then(function(e){a.users=e.data,delete a.usersMessage},function(e){a.usersMessage={status:"error",message:"Não conseguimos buscar os usuários, verifique suas permissões e tente novamente."}})},a.getOrganization=function(){a.organizationMessage={status:"loading",message:"Buscando sua organização, aguarde um momento..."},e.getOrganization(n.securityEmbedded.getOrganizationHierarchyCode()).then(function(e){a.organtization=[e.data],delete a.organizationMessage},function(e){a.organizationMessage={status:"error",message:"Não conseguimos buscar as organizações, verifique suas permissões e tente novamente."}})},a.getUserByEmail=function(n){a.userMessage={status:"loading",message:"Buscando o usuário, aguarde um momento..."},e.getUserByEmail(n).then(function(e){e.data?(a.user=e.data,a.user.confirmPassword=angular.copy(a.user.password),delete a.userMessage):a.userMessage={status:"error",message:"Não conseguimos buscar o usuário, verifique suas permissões e tente novamente."}},function(e){a.userMessage={status:"error",message:"Não conseguimos buscar o usuário, verifique suas permissões e tente novamente."}})},a.getRolesByInstance=function(){e.getRolesByInstance().then(function(e){a.perfis=[],e.data.forEach(function(e){var n=e.users.filter(function(e){return e.id===a.variables.userSelected.id}).length>0,t={id:e.id,idUser:a.variables.userSelected.id,description:e.name,exists:n};a.perfis.push(t)})})},a.removeUserInOrganization=function(n){console.log(n),e.removeUserInOrganization(n.id,a.variables.organizationSelected.hierarchyCode).then(function(e){console.log(e)})},a.addUserInOrganization=function(n){a.addingUser=!0,n.organizations.push(a.variables.organizationSelected),e.saveUser(n).then(function(e){a.editUser(n),a.addingUser=!1},function(e){a.addingUser=!1})},a.addUserInRole=function(n){n.disabled=!0,e.addUserInRole(n.idUser,n.id).then(function(e){n.exists=!0,a.getRolesByInstance()},function(e){n.disabled=!1})},a.removeUserInRole=function(n){n.disabled=!0,e.removeUserInRole(n.idUser,n.id).then(function(e){n.exists=!0,a.getRolesByInstance()},function(e){n.disabled=!1})},a.listUsers=function(e){a.filterUser="",delete a.users,a.alterView("list-users"),a.variables.organizationSelected=angular.copy(e),a.getUsersByOrganization(a.variables.organizationSelected.id)},a.editUser=function(e){a.perfis=[],delete a.userExists,a.disabledSaveUser=!1,delete a.user,a.alterView("edit-user"),a.variables.userSelected=angular.copy(e),a.getUserByEmail(a.variables.userSelected.login),a.getRolesByInstance()},a.addNewUser=function(){a.perfis=[],a.disabledSaveUser=!1,a.user={},a.alterView("new-user"),a.variables.userSelected=angular.copy({})},a.saveUser=function(n){n.id||(n.organizations=[a.variables.organizationSelected]),e.saveUser(n).then(function(e){a.filterUser="",delete a.users,a.alterView("list-users"),a.getUsersByOrganization(a.variables.organizationSelected.id)})},a.validateUser=function(){a.disabledSaveUser=!0,delete a.userExists,e.getUserByEmail(a.user.login).then(function(e){return e.data&&e.data.id?void(a.userExists=e.data):void(a.disabledSaveUser=!1)},function(e){a.disabledSaveUser=!1})},a.userIsInTheOrganization=function(){var e=!0;return a.variables.userSelected&&a.variables.userSelected.id&&a.variables.organizationSelected&&a.variables.userSelected.organizations&&(e=a.variables.userSelected.organizations.filter(function(e){return e.id==a.variables.organizationSelected.id}).length>0),e},a.editOrg=function(e){a.variables.organizationSelected=void 0,a.organization=angular.copy(e),a.alterView("edit-org")},a.newOrg=function(e){a.variables.organizationSelected=e,a.organization=angular.copy({}),a.alterView("new-org"),delete a.disabledSaveOrganization},a.saveOrganization=function(n){n.subOrganizations=n.subOrganizations||[],a.disabledSaveOrganization=!0;var t;a.variables.organizationSelected?(n.mainOrganization={value:!1},a.variables.organizationSelected.subOrganizations.push(n),t=e.saveOrganization(a.variables.organizationSelected)):t=e.saveOrganization(n),t.then(function(e){a.alterView("list-orgs"),a.disabledSaveOrganization=!1,a.getOrganization()},function(e){a.disabledSaveOrganization=!1})},a.getOrganization()}}};o.$inject=["SecurityEmbeddedUserService","$window"],n.default=o},function(e,n){"use strict";function t(e,n){var t=n.securityEmbedded.appURL,o={_url:t+"/api/user"},r=function(){return{gumgaToken:n.securityEmbedded?n.securityEmbedded.getToken():0}};return o.getUsersByOrganization=function(n){return e.get(t+"/api/security-embedded/organization/"+n+"/users",{headers:r()})},o.getOrganization=function(n){return e.get(t+"/api/security-embedded/organization/"+n,{headers:r()})},o.getUserByEmail=function(n){return e.get(t+"/api/security/user-by-email/"+n+"/",{headers:r()})},o.getRolesByInstance=function(){return e.get(t+"/api/security/role-by-instance",{headers:r()})},o.addUserInOrganization=function(n){return e.get(t+"/api/security/add-user-organization/"+n,{headers:r()})},o.removeUserInOrganization=function(n,o){return e.get(t+"/api/security/remove-user-organization/"+n+"/"+o,{headers:r()})},o.addUserInOrganization=function(n){return e.get(t+"/api/security/add-user-organization/"+n,{headers:r()})},o.addUserInRole=function(n,o){return e.get(t+"/api/security/add-user-role/"+n+"/"+o,{headers:r()})},o.removeUserInRole=function(n,o){return e.get(t+"/api/security/remove-user-role/"+n+"/"+o,{headers:r()})},o.saveUser=function(n){return e.post(t+"/api/security-embedded/save-user",n,{headers:r()})},o.saveOrganization=function(n){return e.post(t+"/api/security-embedded/save-organization",n,{headers:r()})},o}Object.defineProperty(n,"__esModule",{value:!0}),n.default=t,t.$inject=["$http","$window"]}]); \ No newline at end of file