lhcAppControllers.controller("BrandCtrl",["$scope","$http","$location","$rootScope","$log","$window",function(e,t,s,n,i,r){this.members=[],this.departments=[],this.departmentsRoles={};this.makeid=function(e){for(var t="",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<e;n++)t+=s.charAt(Math.floor(Math.random()*s.length));return t},this.setConditions=function(){this.members=r.replaceConditions,this.departments=r.replaceDepartments,this.departmentsRoles=r.replaceDepartmentsRoles},this.deleteMember=function(e){confirm("Are you sure?")&&(this.members.splice(this.members.indexOf(e),1),void 0!==this.departmentsRoles[e]&&delete this.departmentsRoles[e])},this.addMember=function(e){this.addDepartment(e)},this.addDepartment=function(e){-1==this.members.indexOf(e.dep_id)&&(this.members.push(e.dep_id),this.departmentsRoles[e.dep_id]="")},setTimeout((function(){$(".btn-block-department").makeDropdown()}),1500)}]);
//# sourceMappingURL=405540944223b1427dad30b2229e5fb8.js.map
